feat: theme integration
refactor: only apply updates if there is a change in the theme refactor: include theme in state cleanup: theme integration
This commit is contained in:
parent
c16b86d1bf
commit
abbe94e6e1
24 changed files with 409 additions and 139 deletions
|
|
@ -137,6 +137,8 @@ pub struct Common {
|
|||
pub clock: Clock<Monotonic>,
|
||||
pub should_stop: bool,
|
||||
|
||||
pub theme: cosmic::Theme,
|
||||
|
||||
#[cfg(feature = "debug")]
|
||||
pub egui: Egui,
|
||||
|
||||
|
|
@ -330,6 +332,8 @@ impl State {
|
|||
clock,
|
||||
should_stop: false,
|
||||
|
||||
theme: cosmic::theme::system_preference(),
|
||||
|
||||
#[cfg(feature = "debug")]
|
||||
egui: Egui {
|
||||
active: false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue