summaryrefslogtreecommitdiff
path: root/crates/material_theme/src/rule.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-04-28 10:56:49 +0200
committerpml68 <contact@pml68.dev>2025-04-28 10:56:49 +0200
commitdac7e82e0bff128097653fe05829b2d576fcdb2f (patch)
tree6f36736e79eecd6904933c6876af1df58e6b605b /crates/material_theme/src/rule.rs
parentfeat(material_theme): implement `image::Catalog` (under feature flag) (diff)
downloadiced-builder-dac7e82e0bff128097653fe05829b2d576fcdb2f.tar.gz
refactor(material_theme)!: make `Theme` an enum with `Custom` variant
Diffstat (limited to 'crates/material_theme/src/rule.rs')
-rw-r--r--crates/material_theme/src/rule.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/material_theme/src/rule.rs b/crates/material_theme/src/rule.rs
index e433005..36e4dd4 100644
--- a/crates/material_theme/src/rule.rs
+++ b/crates/material_theme/src/rule.rs
@@ -17,7 +17,7 @@ impl Catalog for Theme {
pub fn inset(theme: &Theme) -> Style {
Style {
- color: theme.colorscheme.outline.variant,
+ color: theme.colors().outline.variant,
fill_mode: FillMode::Padded(8),
width: 1,
radius: Radius::default(),
@@ -25,7 +25,7 @@ pub fn inset(theme: &Theme) -> Style {
}
pub fn full_width(theme: &Theme) -> Style {
Style {
- color: theme.colorscheme.outline.variant,
+ color: theme.colors().outline.variant,
fill_mode: FillMode::Full,
width: 1,
radius: Radius::default(),