Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickfluentwinui3theme.cpp File Reference

(43d3dc5a4c134692f344a93772042931cd5597e4)

#include "qquickfluentwinui3theme_p.h"
#include <QtGui/qguiapplication.h>
#include <QtGui/qstylehints.h>
#include <QtGui/qcolor.h>
#include <QtGui/qfontdatabase.h>
#include <QtQuickTemplates2/private/qquicktheme_p.h>
+ Include dependency graph for qquickfluentwinui3theme.cpp:

Go to the source code of this file.

Enumerations

enum  WinUI3Color {
  solidBackground , textPrimary , textSecondary , textDisabled ,
  textOnAccentPrimary , textOnAccentSecondary , textOnAccentDisabled , controlDefault ,
  controlDisabled , controlStrokeDefault , controlStrokeSecondary , accentDefault ,
  accentDisabled , accentSecondary
}
 

Functions

static void populateSystemPalette (QPalette &palette)
 
static void populateThemeFont (QQuickTheme *theme)
 

Variables

static const QColor WINUI3ColorsLight []
 
static const QColor WINUI3ColorsDark []
 
static const QColorWINUI3Colors []
 

Enumeration Type Documentation

◆ WinUI3Color

Enumerator
solidBackground 
textPrimary 
textSecondary 
textDisabled 
textOnAccentPrimary 
textOnAccentSecondary 
textOnAccentDisabled 
controlDefault 
controlDisabled 
controlStrokeDefault 
controlStrokeSecondary 
accentDefault 
accentDisabled 
accentSecondary 

Definition at line 20 of file qquickfluentwinui3theme.cpp.

Function Documentation

◆ populateSystemPalette()

static void populateSystemPalette ( QPalette & palette)
static

Definition at line 76 of file qquickfluentwinui3theme.cpp.

References QPalette::Accent, accentDefault, accentDisabled, QPalette::All, QPalette::BrightText, QPalette::Button, QPalette::ButtonText, controlDefault, controlDisabled, QPalette::Disabled, QPalette::Highlight, QPalette::HighlightedText, Qt::Light, palette, QPalette::PlaceholderText, solidBackground, QGuiApplication::styleHints(), QPalette::Text, textDisabled, textOnAccentDisabled, textOnAccentPrimary, textPrimary, textSecondary, QPalette::Window, QPalette::WindowText, and WINUI3Colors.

Referenced by QQuickFluentWinUI3Theme::updatePalette().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ populateThemeFont()

static void populateThemeFont ( QQuickTheme * theme)
static

Definition at line 106 of file qquickfluentwinui3theme.cpp.

References contains(), QFontDatabase::families(), QFont::Normal, QFont::setFamilies(), QQuickTheme::setFont(), QFont::setPixelSize(), QFont::setWeight(), QQuickTheme::System, and QQuickTheme::ToolBar.

Referenced by QQuickFluentWinUI3Theme::initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ WINUI3Colors

const QColor* WINUI3Colors[]
static
Initial value:
{
}
static const QColor WINUI3ColorsDark[]
static const QColor WINUI3ColorsLight[]

Definition at line 71 of file qquickfluentwinui3theme.cpp.

Referenced by populateSystemPalette().

◆ WINUI3ColorsDark

const QColor WINUI3ColorsDark[]
static
Initial value:
{
QColor(0x20,0x20,0x20,0xFF),
QColor(0xFF,0xFF,0xFF,0xFF),
QColor(0xFF,0xFF,0xFF,0xC5),
QColor(0xFF,0xFF,0xFF,0x5D),
QColor(0x00,0x00,0x00,0xFF),
QColor(0x00,0x00,0x00,0x80),
QColor(0xFF,0xFF,0xFF,0x87),
QColor(0xFF,0xFF,0xFF,0x0F),
QColor(0xFF,0xFF,0xFF,0x11),
QColor(0xFF,0xFF,0xFF,0x12),
QColor(0xFF,0xFF,0xFF,0x18),
QColor(0x60,0xCD,0xFF,0xFF),
QColor(0xFF,0xFF,0xFF,0x28),
QColor(0x60,0xCD,0xFF,0xE6)
}
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31

Definition at line 54 of file qquickfluentwinui3theme.cpp.

◆ WINUI3ColorsLight

const QColor WINUI3ColorsLight[]
static
Initial value:
{
QColor(0xF3,0xF3,0xF3,0xFF),
QColor(0x00,0x00,0x00,0xE4),
QColor(0x00,0x00,0x00,0x9E),
QColor(0x00,0x00,0x00,0x5C),
QColor(0xFF,0xFF,0xFF,0xFF),
QColor(0xFF,0xFF,0xFF,0x7F),
QColor(0xFF,0xFF,0xFF,0xFF),
QColor(0xFF,0xFF,0xFF,0xB3),
QColor(0xF9,0xF9,0xF9,0x4D),
QColor(0x00,0x00,0x00,0x0F),
QColor(0x00,0x00,0x00,0x29),
QColor(0x00,0x5F,0xB8,0xFF),
QColor(0x00,0x00,0x00,0x37),
QColor(0x00,0x5F,0xB8,0xE6),
}

Definition at line 37 of file qquickfluentwinui3theme.cpp.