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
|
|
@ -3,7 +3,7 @@
|
|||
#[cfg(feature = "debug")]
|
||||
use crate::backend::render::element::AsGlowRenderer;
|
||||
use crate::{
|
||||
backend::render::{workspace_elements, CLEAR_COLOR},
|
||||
backend::render::workspace_elements,
|
||||
config::OutputConfig,
|
||||
shell::Shell,
|
||||
state::{BackendData, ClientState, Common, Fps, SurfaceDmabufFeedback},
|
||||
|
|
@ -1241,8 +1241,12 @@ impl Surface {
|
|||
})?;
|
||||
self.fps.elements();
|
||||
|
||||
let res =
|
||||
compositor.render_frame::<_, _, GlesTexture>(&mut renderer, &elements, CLEAR_COLOR);
|
||||
let theme = state.theme.cosmic();
|
||||
let res = compositor.render_frame::<_, _, GlesTexture>(
|
||||
&mut renderer,
|
||||
&elements,
|
||||
crate::theme::clear_color(&theme),
|
||||
);
|
||||
self.fps.render();
|
||||
|
||||
match res {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue