Skip to content

Commit

Permalink
[Frontend] Fixing issues with theme coloring
Browse files Browse the repository at this point in the history
Fixes #933
  • Loading branch information
charlesh88 committed Aug 2, 2016
1 parent 573f1f9 commit ca5206d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 16 deletions.
10 changes: 0 additions & 10 deletions platform/commonUI/general/res/sass/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -268,16 +268,6 @@
text-shadow: rgba(black, $sVal) 0 3px 7px;
}

@function pullForward($c, $p: 20%) {
// For dark interfaces, lighter things come forward
@return lighten($c, $p);
}

@function pushBack($c, $p: 20%) {
// For dark interfaces, darker things move back
@return darken($c, $p);
}

@function percentToDecimal($p) {
@return $p / 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion platform/commonUI/themes/espresso/res/sass/_constants.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $colorCreateBtn: $colorKey;
$colorGridLines: rgba(#fff, 0.05);
$colorInvokeMenu: #fff;
$colorObjHdrTxt: $colorBodyFg;
$colorObjHdrIc: pullForward($colorObjHdrTxt, 20%);
$colorObjHdrIc: darken($colorObjHdrTxt, 20%);
$colorTick: pullForward($colorBodyBg, 20%);

// Menu colors
Expand Down
4 changes: 2 additions & 2 deletions platform/commonUI/themes/snow/res/sass/_constants.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ $colorCreateBtn: $colorKey;
$colorGridLines: rgba(#000, 0.05);
$colorInvokeMenu: #fff;
$colorObjHdrTxt: $colorBodyFg;
$colorObjHdrIc: pushBack($colorObjHdrTxt, 30%);
$colorTick: pullForward($colorBodyBg, 30%);
$colorObjHdrIc: lighten($colorObjHdrTxt, 20%);
$colorTick: lighten($colorBodyFg, 10%);

// Menu colors
$colorMenuBg: pushBack($colorBodyBg, 10%);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
top: 50%;
z-index: 2;
&:before {
background-color: $c;
background: $colorObjHdrIc;
content: '';
display: block;
position: absolute;
Expand All @@ -77,7 +77,6 @@
z-index: 2;
@include animation-duration(12s);
&:before {
//background: red;
height: ceil($handH * 0.7);
}
}
Expand Down Expand Up @@ -178,7 +177,7 @@
}

.l-time-conductor-inputs-and-ticks {
$c: $colorTick;
$c: $colorTimeCondTicks; //$colorTick;
height: $r1H;
mct-conductor-axis {
display: block;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
@import "constants";

// Thematic constants
$colorTimeCondTicks: pullForward($colorBodyBg, 30%);
$colorTimeCondKeyBg: #4e70dc;
$colorTimeCondKeyFg: #fff;
$colorTimeCondDataVisBg: pullForward($colorBodyBg, 10%);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
@import "constants";

// Thematic constants
$colorTimeCondTicks: pullForward($colorBodyBg, 30%);
$colorTimeCondKeyBg: #6178dc;
$colorTimeCondKeyFg: #fff;
$colorTimeCondDataVisBg: pullForward($colorBodyBg, 10%);
Expand Down

0 comments on commit ca5206d

Please sign in to comment.