Introduce Custom variants for every style in the built-in Theme
This commit is contained in:
parent
8102f96f12
commit
18fb74f200
34 changed files with 576 additions and 286 deletions
|
|
@ -4,13 +4,13 @@ use iced_core::Color;
|
|||
|
||||
/// A set of rules that dictate the style of a container.
|
||||
pub trait StyleSheet {
|
||||
type Style: Default + Copy;
|
||||
type Style: Default;
|
||||
|
||||
/// The [`Line`] to draw when a split is picked.
|
||||
fn picked_split(&self, style: Self::Style) -> Option<Line>;
|
||||
fn picked_split(&self, style: &Self::Style) -> Option<Line>;
|
||||
|
||||
/// The [`Line`] to draw when a split is hovered.
|
||||
fn hovered_split(&self, style: Self::Style) -> Option<Line>;
|
||||
fn hovered_split(&self, style: &Self::Style) -> Option<Line>;
|
||||
}
|
||||
|
||||
/// A line.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue