First-run theme step. Reuses the same building blocks as Appearance settings and the Palette Editor (ThemeManager, PaletteConfig, PaletteGenerator, and the QuickSetupPanel widget itself) rather than reimplementing palette generation or preview here.
More...
#include <theme_setup_page.h>
|
| | ThemeSetupPage (QWidget *parent=nullptr) |
| void | initializePage () override |
| | Called every time the page becomes visible, including navigating back to it.
|
| bool | validatePage () override |
| | Called before advancing past this page. Return false to block navigation; the page itself is responsible for telling the user why.
|
| bool | isSkippable () const override |
| | Whether the wizard's "Skip" button should be offered on this page.
|
| QString | stepTitle () const override |
| QString | stepSubtitle () const override |
| void | retranslateUi () override |
| | FirstRunWizardPage (QWidget *parent=nullptr) |
| virtual bool | isComplete () const |
| | Whether Next/Finish should currently be enabled. Pages doing async work can flip this mid-step; emit completeChanged() when they do.
|
| virtual QString | nextButtonText () const |
| | Override to replace the "Next"/"Finish" button text on this page. Return an empty string to use the default label.
|
| virtual bool | handleNextClick () |
| | Called when the user presses the Next button. Return true to allow advancing to the next page, false to stay on this page (e.g. to trigger an async action first).
|
First-run theme step. Reuses the same building blocks as Appearance settings and the Palette Editor (ThemeManager, PaletteConfig, PaletteGenerator, and the QuickSetupPanel widget itself) rather than reimplementing palette generation or preview here.
Behavior specific to this page (deliberately not pushed down into ThemeManager, to avoid changing app-wide behaviour for existing installs):
- Opening the page never changes the running palette; previews and auto-generation only happen when the user actually changes a control.
- If a theme+scheme the user selects has no saved palette and no shipped default, one is generated from the QuickSetupPanel's current accent so the preview doesn't fall back to a flat, unstyled look.
◆ ThemeSetupPage()
| ThemeSetupPage::ThemeSetupPage |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
◆ currentScheme()
| QString ThemeSetupPage::currentScheme |
( |
| ) |
const |
|
private |
◆ initializePage()
| void ThemeSetupPage::initializePage |
( |
| ) |
|
|
overridevirtual |
Called every time the page becomes visible, including navigating back to it.
Reimplemented from FirstRunWizardPage.
◆ isSkippable()
| bool ThemeSetupPage::isSkippable |
( |
| ) |
const |
|
overridevirtual |
Whether the wizard's "Skip" button should be offered on this page.
Reimplemented from FirstRunWizardPage.
◆ maybeAutoGeneratePalette()
| void ThemeSetupPage::maybeAutoGeneratePalette |
( |
| ) |
|
|
private |
◆ onGenerateFromAccent
| void ThemeSetupPage::onGenerateFromAccent |
( |
const QColor & | accent, |
|
|
int | intensity ) |
|
privateslot |
◆ onHomeTabBackgroundChanged
| void ThemeSetupPage::onHomeTabBackgroundChanged |
( |
int | index | ) |
|
|
privateslot |
◆ onSchemeChanged
| void ThemeSetupPage::onSchemeChanged |
( |
| ) |
|
|
privateslot |
◆ onThemeChanged
| void ThemeSetupPage::onThemeChanged |
( |
int | index | ) |
|
|
privateslot |
◆ resolvedScheme()
| QString ThemeSetupPage::resolvedScheme |
( |
| ) |
const |
|
private |
◆ retranslateUi()
| void ThemeSetupPage::retranslateUi |
( |
| ) |
|
|
overridevirtual |
◆ stepSubtitle()
| QString ThemeSetupPage::stepSubtitle |
( |
| ) |
const |
|
overridevirtual |
◆ stepTitle()
| QString ThemeSetupPage::stepTitle |
( |
| ) |
const |
|
overridevirtual |
◆ validatePage()
| bool ThemeSetupPage::validatePage |
( |
| ) |
|
|
overridevirtual |
Called before advancing past this page. Return false to block navigation; the page itself is responsible for telling the user why.
Reimplemented from FirstRunWizardPage.
◆ writableThemeDir()
| QString ThemeSetupPage::writableThemeDir |
( |
| ) |
const |
|
private |
◆ accentGroup
| QGroupBox* ThemeSetupPage::accentGroup |
|
private |
◆ homeTabBackgroundCombo
| QComboBox* ThemeSetupPage::homeTabBackgroundCombo |
|
private |
◆ paletteDirty
| bool ThemeSetupPage::paletteDirty = false |
|
private |
◆ quickSetupPanel
◆ schemeCombo
| QComboBox* ThemeSetupPage::schemeCombo |
|
private |
◆ themeCombo
| QComboBox* ThemeSetupPage::themeCombo |
|
private |
The documentation for this class was generated from the following files: