/
Shymer123
/
Messenger
Обзор
Документация
Войти
/
Shymer123
/
Messenger
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
UI_Client/SourceFiles/applicationStyle.h
30 строк
707 B
Shymer123
The architecture has been completely changed and a white theme has been added.
04 фев 2025, 14:32
04 фев 2025, 14:32
d5e24f4
Код
Авторство
О чём код?
#ifndef APPLICATIONSTYLE_H #define APPLICATIONSTYLE_H #include <QApplication> #include <QString> class ApplicationStyle { public: static ApplicationStyle& instance(); void applyStyles(); void setApp(QApplication* app); void setNightMode(); void setLightMode(); private: QString loadStyleSheet(const QString& path); QApplication* app; ApplicationStyle() = default; ~ApplicationStyle() = default; ApplicationStyle(const ApplicationStyle&) = delete; ApplicationStyle& operator=(const ApplicationStyle&) = delete; ApplicationStyle(ApplicationStyle&&) = delete; ApplicationStyle& operator=(ApplicationStyle&&) = delete; }; #endif // APPLICATIONSTYLE_H