|
QtCanpool 3.3.0
|
命名空间 | |
| namespace | QxTheme |
| Copyright (C) 2026 maminjie canpo.nosp@m.ol@1.nosp@m.63.co.nosp@m.m SPDX-License-Identifier: MulanPSL-2.0 | |
宏定义 | |
| #define | QX_THEME_STYLESHEET_PREFIX ":/qxribbon/res/stylesheets/" |
| Where the built-in style sheets are looked up. | |
函数 | |
| QString | QxTheme::themeId (Theme theme) |
| Stable identifier written to the configuration. | |
| QString | QxTheme::themeName (Theme theme) |
| Human readable name, suitable for a settings dialog. | |
| Theme | QxTheme::themeFromId (const QString &id, Theme fallback=LightYellow) |
| Resolves an id produced by themeId(); fallback is returned for unknown ids. | |
| bool | QxTheme::isDarkTheme (Theme theme) |
| True for the themes that draw on a dark background. | |
| QString | QxTheme::themeStyleSheetPath (Theme theme) |
| Resource path of the style sheet shipped with theme, empty for Custom. | |
| QString | QxTheme::themeStyleSheet (Theme theme) |
| Content of the built-in style sheet, empty when the resource is missing. | |
| #define QX_THEME_STYLESHEET_PREFIX ":/qxribbon/res/stylesheets/" |
Where the built-in style sheets are looked up.
They are shipped by the qxribbon resource bundle; the prefix is overridable at build time so a downstream product can relocate its own copies without patching the source.
在文件 qxtheme.cpp 第 17 行定义.
| bool dark |
在文件 qxtheme.cpp 第 27 行定义.
| const char* fileName |
在文件 qxtheme.cpp 第 26 行定义.
| const char* id |
在文件 qxtheme.cpp 第 24 行定义.
| const char* name |
在文件 qxtheme.cpp 第 25 行定义.