Skip to content

Commit d5b1e6b

Browse files
cdlmsapk
authored andcommitted
Theme arc-green: reverse heatmap colors (#8840)
* Theme arc-green: reverse heatmap colors This uses the same colors as the updated palette in the base theme. See #8709 and #5864, in particular [my comment showing the problem](#5864 (comment)) * Rebuild CSS * Use link color as hot, interpolate between hot and cold colors * Use color from a:hover
1 parent f05cd3e commit d5b1e6b

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

public/css/theme-arc-green.css

+5
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ a.ui.label:hover,a.ui.labels .label:hover{background-color:#505667!important;col
249249
.xdsoft_datetimepicker .xdsoft_datepicker .xdsoft_calendar td,.xdsoft_datetimepicker .xdsoft_datepicker .xdsoft_calendar th{border-color:#4c505c;background-color:#2a2e39}
250250
.xdsoft_datetimepicker .xdsoft_datepicker .xdsoft_calendar td.xdsoft_disabled,.xdsoft_datetimepicker .xdsoft_datepicker .xdsoft_calendar td.xdsoft_other_month{opacity:.8;background:#a0cc75;color:#000}
251251
.heatmap-color-0{background-color:#2d303b}
252+
.heatmap-color-1{background-color:#444f47}
253+
.heatmap-color-2{background-color:#5b6e52}
254+
.heatmap-color-3{background-color:#728e5e}
255+
.heatmap-color-4{background-color:#89ad69}
256+
.heatmap-color-5{background-color:#a0cc75}
252257
.CodeMirror{color:#9daccc;background-color:#2b2b2b;border-top:0}
253258
.CodeMirror div.CodeMirror-cursor{border-left:1px solid #9e9e9e}
254259
.CodeMirror .CodeMirror-gutters{background-color:#2b2b2b}

public/less/themes/arc-green.less

+27-1
Original file line numberDiff line numberDiff line change
@@ -1294,8 +1294,34 @@ a.ui.labels .label:hover {
12941294
}
12951295
}
12961296

1297+
.heatmap(@heat) {
1298+
@heatmap-cold: #2d303b;
1299+
@heatmap-hot: #a0cc75;
1300+
background-color: mix(@heatmap-hot, @heatmap-cold, @heat);
1301+
}
1302+
12971303
.heatmap-color-0 {
1298-
background-color: #2d303b;
1304+
.heatmap(0%);
1305+
}
1306+
1307+
.heatmap-color-1 {
1308+
.heatmap(20%);
1309+
}
1310+
1311+
.heatmap-color-2 {
1312+
.heatmap(40%);
1313+
}
1314+
1315+
.heatmap-color-3 {
1316+
.heatmap(60%);
1317+
}
1318+
1319+
.heatmap-color-4 {
1320+
.heatmap(80%);
1321+
}
1322+
1323+
.heatmap-color-5 {
1324+
.heatmap(100%);
12991325
}
13001326

13011327
/* code mirror dark theme */

0 commit comments

Comments
 (0)