Skip to content

Commit

Permalink
Fix compilation errors with applet feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed Aug 15, 2023
1 parent c2be970 commit 6b883a9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/applet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ impl CosmicAppletHelper {
let (width, height) = self.suggested_size();
let width = u32::from(width);
let height = u32::from(height);
let settings = super::Settings::default()
let mut settings = super::Settings::default()
.size((width + APPLET_PADDING * 2, height + APPLET_PADDING * 2))
.size_limits(
Limits::NONE
Expand All @@ -118,7 +118,7 @@ impl CosmicAppletHelper {
.default_font(crate::font::FONT)
.transparent(true);
if let Some(theme) = self.theme() {
settings.theme(theme);
settings = settings.theme(theme);
}
settings
}
Expand Down Expand Up @@ -204,8 +204,8 @@ impl CosmicAppletHelper {
#[must_use]
pub fn theme(&self) -> Option<theme::Theme> {
match self.background {
CosmicPanelBackground::Dark => theme::Theme::dark(),
CosmicPanelBackground::Light => theme::Theme::light(),
CosmicPanelBackground::Dark => Some(theme::Theme::dark()),
CosmicPanelBackground::Light => Some(theme::Theme::light()),
_ => None,
}
}
Expand Down

0 comments on commit 6b883a9

Please sign in to comment.