chore: small fixes

This commit is contained in:
reya
2025-03-12 16:44:44 +07:00
parent 8156d9d046
commit 0a7f0475a4
8 changed files with 217 additions and 81 deletions
+5 -2
View File
@@ -293,7 +293,10 @@ impl ColorScaleSet {
}
}
pub fn darken(&self, _cx: &App) -> Hsla {
self.light.step_12()
pub fn darken(&self, cx: &App) -> Hsla {
match cx.theme().appearance {
Appearance::Light => self.light.step_12(),
Appearance::Dark => self.dark.step_1(),
}
}
}