mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-07 17:46:44 +02:00
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:
@@ -216,7 +216,7 @@ export const getTextObj = function () {
|
|||||||
const txt = {
|
const txt = {
|
||||||
x: 0,
|
x: 0,
|
||||||
y: 0,
|
y: 0,
|
||||||
'fill': 'black',
|
'fill': undefined,
|
||||||
'text-anchor': 'start',
|
'text-anchor': 'start',
|
||||||
style: '#666',
|
style: '#666',
|
||||||
width: 100,
|
width: 100,
|
||||||
|
@@ -27,7 +27,8 @@ $signalColor: $mainContrastColor;
|
|||||||
$signalTextColor: $mainContrastColor;
|
$signalTextColor: $mainContrastColor;
|
||||||
$labelBoxBkgColor: $actorBkg;
|
$labelBoxBkgColor: $actorBkg;
|
||||||
$labelBoxBorderColor: $actorBorder;
|
$labelBoxBorderColor: $actorBorder;
|
||||||
$labelTextColor: $mainContrastColor;
|
$labelTextColor: $darkTextColor;
|
||||||
|
$loopTextColor: $mainContrastColor;
|
||||||
$noteBorderColor: $border2;
|
$noteBorderColor: $border2;
|
||||||
$noteBkgColor: #fff5ad;
|
$noteBkgColor: #fff5ad;
|
||||||
$activationBorderColor: #666;
|
$activationBorderColor: #666;
|
||||||
|
@@ -26,6 +26,7 @@ $signalTextColor: #333;
|
|||||||
$labelBoxBkgColor: $actorBkg;
|
$labelBoxBkgColor: $actorBkg;
|
||||||
$labelBoxBorderColor: $actorBorder;
|
$labelBoxBorderColor: $actorBorder;
|
||||||
$labelTextColor: $actorTextColor;
|
$labelTextColor: $actorTextColor;
|
||||||
|
$loopTextColor: $actorTextColor;
|
||||||
$noteBorderColor: $border2;
|
$noteBorderColor: $border2;
|
||||||
$noteBkgColor: #fff5ad;
|
$noteBkgColor: #fff5ad;
|
||||||
$activationBorderColor: #666;
|
$activationBorderColor: #666;
|
||||||
|
@@ -27,6 +27,7 @@ $signalTextColor: #333;
|
|||||||
$labelBoxBkgColor: $actorBkg;
|
$labelBoxBkgColor: $actorBkg;
|
||||||
$labelBoxBorderColor: #326932;
|
$labelBoxBorderColor: #326932;
|
||||||
$labelTextColor: $actorTextColor;
|
$labelTextColor: $actorTextColor;
|
||||||
|
$loopTextColor: $actorTextColor;
|
||||||
$noteBorderColor: $border2;
|
$noteBorderColor: $border2;
|
||||||
$noteBkgColor: #fff5ad;
|
$noteBkgColor: #fff5ad;
|
||||||
$activationBorderColor: #666;
|
$activationBorderColor: #666;
|
||||||
|
@@ -30,7 +30,8 @@ $signalColor: $text;
|
|||||||
$signalTextColor: $text;
|
$signalTextColor: $text;
|
||||||
$labelBoxBkgColor: $actorBkg;
|
$labelBoxBkgColor: $actorBkg;
|
||||||
$labelBoxBorderColor: $actorBorder;
|
$labelBoxBorderColor: $actorBorder;
|
||||||
$labelTextColor: white;
|
$labelTextColor: $text;
|
||||||
|
$loopTextColor: $text;
|
||||||
$noteBorderColor: darken($note, 60%);
|
$noteBorderColor: darken($note, 60%);
|
||||||
$noteBkgColor: $note;
|
$noteBkgColor: $note;
|
||||||
$activationBorderColor: #666;
|
$activationBorderColor: #666;
|
||||||
|
@@ -49,7 +49,7 @@ text.actor {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.loopText {
|
.loopText {
|
||||||
fill: $labelTextColor;
|
fill: $loopTextColor;
|
||||||
stroke: none;
|
stroke: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user