fix dark theme loop labels not visible

* fix loop label text forced to black, ignoring styles
* fix styles that were being ignored
This commit is contained in:
Jonathan Newnham 2019-05-14 11:23:37 +10:00
parent 7d3578b31a
commit c1d252afe0
6 changed files with 8 additions and 4 deletions

View File

@ -216,7 +216,7 @@ export const getTextObj = function () {
const txt = {
x: 0,
y: 0,
'fill': 'black',
'fill': undefined,
'text-anchor': 'start',
style: '#666',
width: 100,

View File

@ -27,7 +27,8 @@ $signalColor: $mainContrastColor;
$signalTextColor: $mainContrastColor;
$labelBoxBkgColor: $actorBkg;
$labelBoxBorderColor: $actorBorder;
$labelTextColor: $mainContrastColor;
$labelTextColor: $darkTextColor;
$loopTextColor: $mainContrastColor;
$noteBorderColor: $border2;
$noteBkgColor: #fff5ad;
$activationBorderColor: #666;

View File

@ -26,6 +26,7 @@ $signalTextColor: #333;
$labelBoxBkgColor: $actorBkg;
$labelBoxBorderColor: $actorBorder;
$labelTextColor: $actorTextColor;
$loopTextColor: $actorTextColor;
$noteBorderColor: $border2;
$noteBkgColor: #fff5ad;
$activationBorderColor: #666;

View File

@ -27,6 +27,7 @@ $signalTextColor: #333;
$labelBoxBkgColor: $actorBkg;
$labelBoxBorderColor: #326932;
$labelTextColor: $actorTextColor;
$loopTextColor: $actorTextColor;
$noteBorderColor: $border2;
$noteBkgColor: #fff5ad;
$activationBorderColor: #666;

View File

@ -30,7 +30,8 @@ $signalColor: $text;
$signalTextColor: $text;
$labelBoxBkgColor: $actorBkg;
$labelBoxBorderColor: $actorBorder;
$labelTextColor: white;
$labelTextColor: $text;
$loopTextColor: $text;
$noteBorderColor: darken($note, 60%);
$noteBkgColor: $note;
$activationBorderColor: #666;

View File

@ -49,7 +49,7 @@ text.actor {
}
.loopText {
fill: $labelTextColor;
fill: $loopTextColor;
stroke: none;
}