fix(baseline): 调整暗模式背景亮度计算,增加亮度比例至 1.2
This commit is contained in:
@@ -308,7 +308,7 @@ impl Baseline {
|
|||||||
let (foreground, background) = if is_dark {
|
let (foreground, background) = if is_dark {
|
||||||
// Dark mode: foreground = neutral_lightest, background = neutral_darkest with +10% lightness
|
// Dark mode: foreground = neutral_lightest, background = neutral_darkest with +10% lightness
|
||||||
let background_darkest = Oklch {
|
let background_darkest = Oklch {
|
||||||
l: (neutral_darkest.l * 1.1).min(1.0),
|
l: (neutral_darkest.l * 1.2).min(1.0),
|
||||||
..*neutral_darkest
|
..*neutral_darkest
|
||||||
};
|
};
|
||||||
(*neutral_lightest, background_darkest)
|
(*neutral_lightest, background_darkest)
|
||||||
|
|||||||
Reference in New Issue
Block a user