fix(appearance): Synchronize Roundness between dark & light mode
This commit is contained in:
parent
bd46f92215
commit
e24a109fb0
2 changed files with 7 additions and 8 deletions
|
|
@ -297,14 +297,7 @@ impl Page {
|
||||||
self.roundness = r;
|
self.roundness = r;
|
||||||
|
|
||||||
let radii = self.roundness.into();
|
let radii = self.roundness.into();
|
||||||
|
theme_staged = self.theme_manager.set_corner_radii(radii);
|
||||||
if let None = self
|
|
||||||
.theme_manager
|
|
||||||
.selected_customizer_mut()
|
|
||||||
.set_corner_radii(radii)
|
|
||||||
{
|
|
||||||
return Task::none();
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "wayland")]
|
#[cfg(feature = "wayland")]
|
||||||
tokio::task::spawn(async move {
|
tokio::task::spawn(async move {
|
||||||
|
|
|
||||||
|
|
@ -319,6 +319,12 @@ impl Manager {
|
||||||
Some(ThemeStaged::Both)
|
Some(ThemeStaged::Both)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub fn set_corner_radii(&mut self, radii: CornerRadii) -> Option<ThemeStaged> {
|
||||||
|
self.dark.set_corner_radii(radii)?;
|
||||||
|
self.light.set_corner_radii(radii)?;
|
||||||
|
Some(ThemeStaged::Both)
|
||||||
|
}
|
||||||
|
|
||||||
pub fn set_gap_size(&mut self, gap: u32) -> Option<ThemeStaged> {
|
pub fn set_gap_size(&mut self, gap: u32) -> Option<ThemeStaged> {
|
||||||
self.dark.set_gap_size(gap)?;
|
self.dark.set_gap_size(gap)?;
|
||||||
self.light.set_gap_size(gap)?;
|
self.light.set_gap_size(gap)?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue