diff options
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/desktop.cpp | 3 | ||||
-rw-r--r-- | src/gui/widgets/desktop.h | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp index 46bb3cba3..4aeea03b5 100644 --- a/src/gui/widgets/desktop.cpp +++ b/src/gui/widgets/desktop.cpp @@ -55,10 +55,11 @@ Desktop::Desktop(const Widget2 *const widget) : mVersionLabel(new BrowserBox(this, BrowserBoxMode::AUTO_WRAP, Opaque_false, "browserbox.xml")), mSkin(nullptr), - mBackgroundColor(getThemeColor(ThemeColorId::BACKGROUND, 128)), mBackgroundGrayColor(getThemeColor(ThemeColorId::BACKGROUND_GRAY)), mShowBackground(true) { + mBackgroundColor = getThemeColor(ThemeColorId::BACKGROUND, 128); + addWidgetListener(this); Wallpaper::loadWallpapers(); diff --git a/src/gui/widgets/desktop.h b/src/gui/widgets/desktop.h index 44f312c21..0a7ecf82d 100644 --- a/src/gui/widgets/desktop.h +++ b/src/gui/widgets/desktop.h @@ -79,7 +79,6 @@ class Desktop final : public Container, Image *mWallpaper; BrowserBox *mVersionLabel; Skin *mSkin; - Color mBackgroundColor; Color mBackgroundGrayColor; bool mShowBackground; }; |