跳转至

cf::ui::gallery::ThemePageWidget

Base class for all content pages in the Material Gallery. More...

#include <ThemePageWidget.h>

Inherits from QWidget

Inherited by cf::ui::gallery::ColorSchemePage, cf::ui::gallery::MotionSpecPage, cf::ui::gallery::RadiusScalePage, cf::ui::gallery::TypographyPage

Public Functions

Name
ThemePageWidget(QWidget * parent =nullptr)
~ThemePageWidget() override =default
virtual QString pageTitle() const =0
Get the display title of this page.
virtual void applyTheme(constcf::ui::core::ICFTheme & theme) =0
Apply a new theme to this page.

Detailed Description

class cf::ui::gallery::ThemePageWidget;

Base class for all content pages in the Material Gallery.

Provides a common interface for all pages that can be switched via the sidebar. Each page is responsible for displaying its own content and responding to theme changes.

Public Functions Documentation

function ThemePageWidget

explicit ThemePageWidget(
    QWidget * parent =nullptr
)

function ~ThemePageWidget

~ThemePageWidget() override =default

function pageTitle

virtual QString pageTitle() const =0

Get the display title of this page.

Return: Page title for display purposes

Reimplemented by: cf::ui::gallery::ColorSchemePage::pageTitle, cf::ui::gallery::MotionSpecPage::pageTitle, cf::ui::gallery::RadiusScalePage::pageTitle, cf::ui::gallery::TypographyPage::pageTitle

function applyTheme

virtual void applyTheme(
    constcf::ui::core::ICFTheme & theme
) =0

Apply a new theme to this page.

Parameters:

  • theme The theme to apply

Reimplemented by: cf::ui::gallery::ColorSchemePage::applyTheme, cf::ui::gallery::MotionSpecPage::applyTheme, cf::ui::gallery::RadiusScalePage::applyTheme, cf::ui::gallery::TypographyPage::applyTheme


Updated on 2026-03-09 at 10:14:00 +0000