Remove leftover debug_color in styling example
This commit is contained in:
parent
5e018965ee
commit
775500cf1f
1 changed files with 1 additions and 8 deletions
|
|
@ -135,7 +135,7 @@ impl Sandbox for Styling {
|
||||||
mod style {
|
mod style {
|
||||||
use iced::{
|
use iced::{
|
||||||
button, checkbox, container, progress_bar, radio, scrollable, slider,
|
button, checkbox, container, progress_bar, radio, scrollable, slider,
|
||||||
text_input, Color,
|
text_input,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
|
|
@ -146,13 +146,6 @@ mod style {
|
||||||
|
|
||||||
impl Theme {
|
impl Theme {
|
||||||
pub const ALL: [Theme; 2] = [Theme::Light, Theme::Dark];
|
pub const ALL: [Theme; 2] = [Theme::Light, Theme::Dark];
|
||||||
|
|
||||||
pub fn debug_color(&self) -> Color {
|
|
||||||
match self {
|
|
||||||
Theme::Light => Color::BLACK,
|
|
||||||
Theme::Dark => Color::WHITE,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Theme {
|
impl Default for Theme {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue