mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-28 11:50:25 -07:00
* [PaletteEditor] Ensure directory is writeable, don't fall back to alternate palette. Took 17 minutes * [ThemeManager] Extract system theme dir path resolution to helper, use it in default palette fetching Took 8 minutes * [ThemeManager] Expose styling again Took 3 minutes * [ThemeManager] Capture app palette before theme is applied for reverting * [ThemeManager] Simply delete custom palette instead of reverting to default * [ThemeManager] Generate and apply immediately on change. * [PaletteEditor] Block grid signals during initial loading. Took 5 minutes * Address comments Took 8 minutes * Seed accent from scheme on reset and revert Took 2 minutes --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
81 lines
2.6 KiB
C++
81 lines
2.6 KiB
C++
#ifndef COCKATRICE_APPEARANCE_SETTINGS_PAGE_H
|
|
#define COCKATRICE_APPEARANCE_SETTINGS_PAGE_H
|
|
|
|
#include "abstract_settings_page.h"
|
|
|
|
#include <QCheckBox>
|
|
#include <QComboBox>
|
|
#include <QGroupBox>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QSpinBox>
|
|
#include <libcockatrice/utility/macros.h>
|
|
|
|
class AppearanceSettingsPage : public AbstractSettingsPage
|
|
{
|
|
Q_OBJECT
|
|
private slots:
|
|
void themeBoxChanged(int index);
|
|
void openThemeLocation();
|
|
void editPalette();
|
|
void updateHomeTabSettingsVisibility();
|
|
void showShortcutsChanged(QT_STATE_CHANGED_T enabled);
|
|
void overrideAllCardArtWithPersonalPreferenceToggled(QT_STATE_CHANGED_T enabled);
|
|
|
|
void cardViewInitialRowsMaxChanged(int value);
|
|
void cardViewExpandedRowsMaxChanged(int value);
|
|
|
|
private:
|
|
QLabel themeLabel;
|
|
QComboBox themeBox;
|
|
QPushButton openThemeButton;
|
|
QLabel schemeComboLabel;
|
|
QComboBox schemeCombo;
|
|
QLabel styleComboLabel;
|
|
QComboBox styleCombo;
|
|
QPushButton editPaletteButton;
|
|
QLabel homeTabBackgroundSourceLabel;
|
|
QComboBox homeTabBackgroundSourceBox;
|
|
QLabel homeTabBackgroundShuffleFrequencyLabel;
|
|
QSpinBox homeTabBackgroundShuffleFrequencySpinBox;
|
|
QCheckBox homeTabDisplayCardNameCheckBox;
|
|
QCheckBox styleUserListCheckBox;
|
|
QLabel minPlayersForMultiColumnLayoutLabel;
|
|
QLabel maxFontSizeForCardsLabel;
|
|
QCheckBox showShortcutsCheckBox;
|
|
QCheckBox showGameSelectorFilterToolbarCheckBox;
|
|
QCheckBox overrideAllCardArtWithPersonalPreferenceCheckBox;
|
|
QCheckBox bumpSetsWithCardsInDeckToTopCheckBox;
|
|
QCheckBox displayCardNamesCheckBox;
|
|
QCheckBox autoRotateSidewaysLayoutCardsCheckBox;
|
|
QCheckBox cardScalingCheckBox;
|
|
QCheckBox roundCardCornersCheckBox;
|
|
QLabel verticalCardOverlapPercentLabel;
|
|
QSpinBox verticalCardOverlapPercentBox;
|
|
QLabel cardViewInitialRowsMaxLabel;
|
|
QSpinBox cardViewInitialRowsMaxBox;
|
|
QLabel cardViewExpandedRowsMaxLabel;
|
|
QSpinBox cardViewExpandedRowsMaxBox;
|
|
QCheckBox horizontalHandCheckBox;
|
|
QCheckBox leftJustifiedHandCheckBox;
|
|
QCheckBox invertVerticalCoordinateCheckBox;
|
|
QGroupBox *themeGroupBox;
|
|
QGroupBox *homeTabGroupBox;
|
|
QGroupBox *stylingGroupBox;
|
|
QGroupBox *menuGroupBox;
|
|
QGroupBox *printingsGroupBox;
|
|
QGroupBox *cardsGroupBox;
|
|
QGroupBox *cardLayoutGroupBox;
|
|
QGroupBox *handGroupBox;
|
|
QGroupBox *tableGroupBox;
|
|
QGroupBox *cardCountersGroupBox;
|
|
QList<QLabel *> cardCounterNames;
|
|
QSpinBox minPlayersForMultiColumnLayoutEdit;
|
|
QSpinBox maxFontSizeForCardsEdit;
|
|
|
|
public:
|
|
AppearanceSettingsPage();
|
|
void retranslateUi() override;
|
|
};
|
|
|
|
#endif // COCKATRICE_APPEARANCE_SETTINGS_PAGE_H
|