test: use default dark theme, not real system theme
This commit is contained in:
parent
9a72fe6c2d
commit
c33455e9ad
2 changed files with 15 additions and 12 deletions
|
|
@ -94,6 +94,9 @@ impl Theme {
|
||||||
let complementary_colors = {
|
let complementary_colors = {
|
||||||
let dark = if self.is_dark {
|
let dark = if self.is_dark {
|
||||||
self.clone()
|
self.clone()
|
||||||
|
} else if cfg!(test) {
|
||||||
|
// For reproducible results in tests, use the default dark theme
|
||||||
|
Theme::dark_default()
|
||||||
} else {
|
} else {
|
||||||
Theme::dark_config()
|
Theme::dark_config()
|
||||||
.ok()
|
.ok()
|
||||||
|
|
|
||||||
|
|
@ -39,18 +39,18 @@ ForegroundPositive=0,87,44
|
||||||
ForegroundVisited=0,82,90
|
ForegroundVisited=0,82,90
|
||||||
|
|
||||||
[Colors:Complementary]
|
[Colors:Complementary]
|
||||||
BackgroundAlternate=129,196,88
|
BackgroundAlternate=99,208,223
|
||||||
BackgroundNormal=12,17,6
|
BackgroundNormal=27,27,27
|
||||||
DecorationFocus=129,196,88
|
DecorationFocus=99,208,223
|
||||||
DecorationHover=129,196,88
|
DecorationHover=99,208,223
|
||||||
ForegroundActive=129,196,88
|
ForegroundActive=99,208,223
|
||||||
ForegroundInactive=191,198,186
|
ForegroundInactive=211,211,211
|
||||||
ForegroundLink=129,196,88
|
ForegroundLink=99,208,223
|
||||||
ForegroundNegative=253,161,160
|
ForegroundNegative=255,160,154
|
||||||
ForegroundNeutral=247,224,98
|
ForegroundNeutral=255,163,125
|
||||||
ForegroundNormal=211,218,206
|
ForegroundNormal=231,231,231
|
||||||
ForegroundPositive=146,207,156
|
ForegroundPositive=94,219,140
|
||||||
ForegroundVisited=129,196,88
|
ForegroundVisited=99,208,223
|
||||||
|
|
||||||
[Colors:Header]
|
[Colors:Header]
|
||||||
BackgroundAlternate=204,208,209
|
BackgroundAlternate=204,208,209
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue