// SPDX-License-Identifier: GPL-3.0-only /* * Prism Launcher - Minecraft Launcher * Copyright (C) 2025 TheKodeToad * Copyright (C) 2022 Tayou * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ #pragma once #include #include #include #include #include #include "java/JavaChecker.h" #include "ui/pages/BasePage.h" class QTextCharFormat; class SettingsObject; namespace Ui { class AppearanceWidget; } class AppearanceWidget : public QWidget { Q_OBJECT public: explicit AppearanceWidget(bool simple, QWidget* parent = 0); virtual ~AppearanceWidget(); public: void applySettings(); void loadSettings(); void retranslateUi(); private: void applyIconTheme(int index); void applyWidgetTheme(int index); void applyCatTheme(int index); void loadThemeSettings(); void updateConsolePreview(); void updateCatPreview(); Ui::AppearanceWidget* m_ui; QTextCharFormat m_defaultFormat; bool m_themesOnly; };