inital patch by Finnerale
This commit is contained in:
parent
d6c2b1121c
commit
b2344a852e
3 changed files with 259 additions and 42 deletions
|
|
@ -33,6 +33,8 @@ pub trait StyleSheet {
|
|||
|
||||
fn value_color(&self) -> Color;
|
||||
|
||||
fn selection_color(&self) -> Color;
|
||||
|
||||
/// Produces the style of an hovered text input.
|
||||
fn hovered(&self) -> Style {
|
||||
self.focused()
|
||||
|
|
@ -65,6 +67,10 @@ impl StyleSheet for Default {
|
|||
fn value_color(&self) -> Color {
|
||||
Color::from_rgb(0.3, 0.3, 0.3)
|
||||
}
|
||||
|
||||
fn selection_color(&self) -> Color {
|
||||
Color::from_rgb(0.8, 0.8, 1.0)
|
||||
}
|
||||
}
|
||||
|
||||
impl std::default::Default for Box<dyn StyleSheet> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue