add popover

This commit is contained in:
2026-10-29 18:13:39 +07:00
parent 2ecde30ae2
commit 8fffbdcecb
9 changed files with 198 additions and 5 deletions
+5
View File
@@ -29,6 +29,7 @@ pub struct ThemeDefinition {
pub input: Option<String>,
pub ring: Option<String>,
pub selection: Option<String>,
pub overlay: Option<String>,
}
impl ThemeDefinition {
@@ -107,6 +108,10 @@ impl ThemeDefinition {
pub fn selection(&self) -> Option<Hsla> {
parse_hex(self.selection.as_deref()?)
}
pub fn overlay(&self) -> Option<Hsla> {
parse_hex(self.overlay.as_deref()?)
}
}
/// Parses `#rgb` or `#rrggbb` into an opaque color.