summaryrefslogtreecommitdiff
path: root/material_theme/src/dialog.rs
diff options
context:
space:
mode:
authorpml68 <contact@pml68.dev>2025-04-13 03:40:38 +0200
committerpml68 <contact@pml68.dev>2025-04-15 23:52:42 +0200
commit495985f449e46b24e6b734d3aa9e135a779a8b77 (patch)
treef2908b3a1776458e81de63c6d2461b9fc4cec13f /material_theme/src/dialog.rs
parentfeat(material_theme): implement `pick_list::Catalog` (diff)
downloadiced-builder-495985f449e46b24e6b734d3aa9e135a779a8b77.tar.gz
refactor: move `material_theme` and `iced_drop` into separate crates dir
Diffstat (limited to 'material_theme/src/dialog.rs')
-rw-r--r--material_theme/src/dialog.rs25
1 files changed, 0 insertions, 25 deletions
diff --git a/material_theme/src/dialog.rs b/material_theme/src/dialog.rs
deleted file mode 100644
index 68c61b5..0000000
--- a/material_theme/src/dialog.rs
+++ /dev/null
@@ -1,25 +0,0 @@
-use iced_widget::container::Style;
-use iced_widget::core::{Background, border};
-
-use super::{Theme, text};
-
-impl iced_dialog::dialog::Catalog for Theme {
- fn default_container<'a>()
- -> <Self as iced_widget::container::Catalog>::Class<'a> {
- Box::new(default_container)
- }
-
- fn default_title<'a>() -> <Self as iced_widget::text::Catalog>::Class<'a> {
- Box::new(text::surface)
- }
-}
-
-pub fn default_container(theme: &Theme) -> Style {
- let colors = theme.colorscheme.surface;
- Style {
- background: Some(Background::Color(colors.surface_container.high)),
- text_color: Some(colors.on_surface_variant),
- border: border::rounded(28),
- ..Style::default()
- }
-}