Skip to content

Commit

Permalink
Merge pull request #837 from jnnnnn/master
Browse files Browse the repository at this point in the history
fix dark theme loop labels not visible
  • Loading branch information
knsv authored May 28, 2019
2 parents 9191663 + c1d252a commit d742211
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/diagrams/sequence/svgDraw.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion src/themes/dark/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ $signalColor: $mainContrastColor;
$signalTextColor: $mainContrastColor;
$labelBoxBkgColor: $actorBkg;
$labelBoxBorderColor: $actorBorder;
$labelTextColor: $mainContrastColor;
$labelTextColor: $darkTextColor;
$loopTextColor: $mainContrastColor;
$noteBorderColor: $border2;
$noteBkgColor: #fff5ad;
$activationBorderColor: #666;
Expand Down
1 change: 1 addition & 0 deletions src/themes/default/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ $signalTextColor: #333;
$labelBoxBkgColor: $actorBkg;
$labelBoxBorderColor: $actorBorder;
$labelTextColor: $actorTextColor;
$loopTextColor: $actorTextColor;
$noteBorderColor: $border2;
$noteBkgColor: #fff5ad;
$activationBorderColor: #666;
Expand Down
1 change: 1 addition & 0 deletions src/themes/forest/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ $signalTextColor: #333;
$labelBoxBkgColor: $actorBkg;
$labelBoxBorderColor: #326932;
$labelTextColor: $actorTextColor;
$loopTextColor: $actorTextColor;
$noteBorderColor: $border2;
$noteBkgColor: #fff5ad;
$activationBorderColor: #666;
Expand Down
3 changes: 2 additions & 1 deletion src/themes/neutral/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/themes/sequence.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ text.actor {
}

.loopText {
fill: $labelTextColor;
fill: $loopTextColor;
stroke: none;
}

Expand Down

0 comments on commit d742211

Please sign in to comment.