Skip to content

Commit 6ba3e73

Browse files
committed
fix(Dashboard): improved light theme colors for graph and "..." dropdowns
Signed-off-by: Jean-Baptiste Bianchi <[email protected]>
1 parent e7c6310 commit 6ba3e73

File tree

4 files changed

+29
-14
lines changed

4 files changed

+29
-14
lines changed

src/dashboard/Synapse.Dashboard/wwwroot/css/app.css

+17-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dashboard/Synapse.Dashboard/wwwroot/css/app.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/dashboard/Synapse.Dashboard/wwwroot/css/graph.scss

+9-4
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,20 @@ $viridisScale: // generated with 13 steps, using 12 to exclude the last yellow
4949
cursor: grabbing;
5050
}
5151
}
52-
52+
:root {
53+
--graph-symbol-color: #{$body-color-dark};
54+
}
5355
[data-bs-theme="dark"] {
56+
--graph-symbol-color: #{$body-color-dark};
5457
.graph-container, .graph-canvas {
58+
--stroke-color: #{$mute};
5559
--fill-color: #{$dark-bg-subtle-dark};
5660
}
5761
}
5862

5963
.graph-container, .graph-canvas {
60-
--stroke-color: #{$mute};
61-
--fill-color: #{$body-bg};
64+
--stroke-color: #{$dark};
65+
--fill-color: #{$gray-700};
6266
display: flex;
6367
flex-direction: column;
6468

@@ -124,6 +128,7 @@ $viridisScale: // generated with 13 steps, using 12 to exclude the last yellow
124128
white-space: nowrap;
125129
text-overflow: ellipsis;
126130
overflow: hidden;
131+
color: #{$body-color-dark};
127132

128133
h3 {
129134
margin-bottom: calc($spacer / 4);
@@ -208,7 +213,7 @@ $viridisScale: // generated with 13 steps, using 12 to exclude the last yellow
208213
}
209214

210215
.symbol {
211-
fill: var(--bs-body-color);
216+
fill: var(--graph-symbol-color);
212217
}
213218

214219
.start-node circle {

src/dashboard/Synapse.Dashboard/wwwroot/css/theme/theme.scss

+2-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ header.header.navbar {
8080
$value: map-get($theme-colors,"light");
8181
@include button-variant(
8282
transparent,
83-
$value,
83+
transparent,
84+
$color: $body-color,
8485
$hover-background: shade-color($value, $btn-hover-bg-shade-amount),
8586
$hover-border: shade-color($value, $btn-hover-border-shade-amount),
8687
$active-background: shade-color($value, $btn-active-bg-shade-amount),

0 commit comments

Comments
 (0)