From dac7e82e0bff128097653fe05829b2d576fcdb2f Mon Sep 17 00:00:00 2001 From: pml68 Date: Mon, 28 Apr 2025 10:56:49 +0200 Subject: refactor(material_theme)!: make `Theme` an enum with `Custom` variant --- crates/material_theme/src/pane_grid.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'crates/material_theme/src/pane_grid.rs') diff --git a/crates/material_theme/src/pane_grid.rs b/crates/material_theme/src/pane_grid.rs index d66e475..fb69a32 100644 --- a/crates/material_theme/src/pane_grid.rs +++ b/crates/material_theme/src/pane_grid.rs @@ -20,18 +20,18 @@ pub fn default(theme: &Theme) -> Style { Style { hovered_region: Highlight { background: Background::Color(mix( - theme.colorscheme.tertiary.tertiary_container, - theme.colorscheme.surface.on_surface, + theme.colors().tertiary.tertiary_container, + theme.colors().surface.on_surface, HOVERED_LAYER_OPACITY, )), border: border::rounded(12), }, picked_split: Line { - color: theme.colorscheme.outline.variant, + color: theme.colors().outline.variant, width: 2.0, }, hovered_split: Line { - color: theme.colorscheme.surface.on_surface, + color: theme.colors().surface.on_surface, width: 6.0, }, } -- cgit v1.2.3