Skip to content

Commit 41bef15

Browse files
committed
feat(appearance): reimplement whole snow feature
Signed-off-by: kaeeraa <kaeeraa@nebula-nook.ru>
1 parent 51289d4 commit 41bef15

13 files changed

Lines changed: 2129 additions & 220 deletions

launcher/Application.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@
132132
#include <FileSystem.h>
133133
#include <LocalPeer.h>
134134

135+
#include <qcontainerfwd.h>
135136
#include <stdlib.h>
136137
#include "SysInfo.h"
137138

@@ -662,6 +663,19 @@ Application::Application(int& argc, char** argv) : QApplication(argc, argv)
662663
m_settings->registerSetting("ApplicationTheme", QString("freesm"));
663664
m_settings->registerSetting("BackgroundCat", QString("typescript"));
664665
m_settings->registerSetting("Snow", isWinter);
666+
m_settings->registerSetting("BackgroundSnowflake", QString("builtin-snowflake"));
667+
m_settings->registerSetting("SnowColor", "white");
668+
m_settings->registerSetting("SnowCustomColor", "#ffffff");
669+
m_settings->registerSetting("SnowFallSpeedMin", 60);
670+
m_settings->registerSetting("SnowFallSpeedMax", 100);
671+
m_settings->registerSetting("SnowSizeMin", 2);
672+
m_settings->registerSetting("SnowSizeMax", 6);
673+
m_settings->registerSetting("SnowOpacityMin", 50);
674+
m_settings->registerSetting("SnowOpacityMax", 100);
675+
m_settings->registerSetting("WindStrengthMin", -1);
676+
m_settings->registerSetting("WindStrengthMax", 1);
677+
m_settings->registerSetting("SnowCount", 100);
678+
m_settings->registerSetting("SnowFps", 30);
665679

666680
// Remembered state
667681
m_settings->registerSetting("LastUsedGroupForNewInstance", QString());

launcher/Application.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
#pragma once
4141

42+
#include <qvariant.h>
4243
#include <memory>
4344

4445
#include <QApplication>

launcher/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -937,6 +937,7 @@ SET(LAUNCHER_SOURCES
937937
ui/themes/CatPack.h
938938
ui/themes/CatPainter.cpp
939939
ui/themes/CatPainter.h
940+
ui/themes/SnowflakePack.h
940941

941942
# Processes
942943
LaunchMode.h
@@ -1170,6 +1171,8 @@ SET(LAUNCHER_SOURCES
11701171
ui/dialogs/skins/draw/BoxGeometry.cpp
11711172

11721173
# GUI - widgets
1174+
ui/widgets/RangeSlider.h
1175+
ui/widgets/RangeSlider.cpp
11731176
ui/widgets/CheckComboBox.cpp
11741177
ui/widgets/CheckComboBox.h
11751178
ui/widgets/Common.cpp

0 commit comments

Comments
 (0)