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
|
|
@ -25,6 +25,7 @@ pub mod shell;
|
|||
pub mod state;
|
||||
#[cfg(feature = "systemd")]
|
||||
pub mod systemd;
|
||||
pub mod theme;
|
||||
pub mod utils;
|
||||
pub mod wayland;
|
||||
pub mod xwayland;
|
||||
|
|
@ -55,6 +56,10 @@ fn main() -> Result<()> {
|
|||
// potentially tell the session we are setup now
|
||||
session::setup_socket(event_loop.handle(), &state)?;
|
||||
|
||||
if let Err(err) = theme::watch_theme(event_loop.handle()) {
|
||||
warn!(?err, "Failed to watch theme");
|
||||
}
|
||||
|
||||
// run the event loop
|
||||
event_loop.run(None, &mut state, |state| {
|
||||
// shall we shut down?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue