diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-05-01 08:08:15 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-08-12 12:26:44 +0200 |
commit | 6773f3a2cdd5db4ee161b7eb9d2fd9bba4b73783 (patch) | |
tree | aeaab1e3d1ead74e0187cfcb3537ed7c3b781d36 /src/resources | |
parent | a67947441fa5f486ad5a460133f2b43808d09423 (diff) | |
download | mana-master.tar.gz mana-master.tar.bz2 mana-master.tar.xz mana-master.zip |
Replaces the default login wallpaper. The wallpaper can still be set
either through branding or in the client data.
This also fixes the scaling of the Manasource logo when using the Mana
theme.
Closes #99
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/theme.cpp | 1 | ||||
-rw-r--r-- | src/resources/theme.h | 1 | ||||
-rw-r--r-- | src/resources/wallpaper.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/theme.cpp b/src/resources/theme.cpp index 0c332902..ea2cef45 100644 --- a/src/resources/theme.cpp +++ b/src/resources/theme.cpp @@ -529,6 +529,7 @@ static std::optional<SkinType> readSkinType(std::string_view type) if (type == "ToolWindow") return SkinType::ToolWindow; if (type == "Popup") return SkinType::Popup; if (type == "SpeechBubble") return SkinType::SpeechBubble; + if (type == "Desktop") return SkinType::Desktop; if (type == "Button") return SkinType::Button; if (type == "ButtonUp") return SkinType::ButtonUp; if (type == "ButtonDown") return SkinType::ButtonDown; diff --git a/src/resources/theme.h b/src/resources/theme.h index fbcb263b..80b78fdd 100644 --- a/src/resources/theme.h +++ b/src/resources/theme.h @@ -71,6 +71,7 @@ enum class SkinType ToolWindow, Popup, SpeechBubble, + Desktop, Button, ButtonUp, ButtonDown, diff --git a/src/resources/wallpaper.cpp b/src/resources/wallpaper.cpp index 2bdcd656..ece3e950 100644 --- a/src/resources/wallpaper.cpp +++ b/src/resources/wallpaper.cpp @@ -87,6 +87,7 @@ bool wallpaperCompare(const WallpaperData &a, const WallpaperData &b) void Wallpaper::loadWallpapers() { wallpaperData.clear(); + haveBackup = false; initWallpaperPaths(); |