Another Asia bug - red/green

In Asia, red means up, and green means down. What’s the easiest way of putting in a config switch to opengamma to change this?

There is a solution that can be put in the pom.xml. By tweaking the css when maven package runs (ie during the stage where the web directory is copied across).

This will create a one off change that will allow you to switch the colours/directions around but not add any logic to special case the Asia colour situation.

By adding this to the pom, you can swap the arrows around.

          <!-- Replace at end of file-->
          <!-- Add in the replacement text that we need-->
            .OG-icon.og-icon-tick-up:after {
              background-position: -43px -47px;
            .OG-icon.og-icon-tick-down:after {
              background-position: -53px -47px;

You will also need to invert the images, but as they are in a css sprite you may need to adjust the positions a few pixels. The css below can be added and should cover all cross browser issues, but possibly not older IE

-moz-transform: scaleX(-1);
-o-transform: scaleX(-1);
-webkit-transform: scaleX(-1);
transform: scaleX(-1);
filter: FlipH;
-ms-filter: "FlipH";

Thanks. I’ll take a look at doing that.