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
qwindows11style.cpp File Reference

(392c5fab815cbe41df9e25e50e4d296e7e1606f6)

#include "qwindows11style_p.h"
#include <qstylehints.h>
#include <private/qstyleanimation_p.h>
#include <private/qstylehelper_p.h>
#include <private/qapplication_p.h>
#include <qstyleoption.h>
#include <qpainter.h>
#include <QGraphicsDropShadowEffect>
#include <QtWidgets/qcombobox.h>
#include <QtWidgets/qcommandlinkbutton.h>
#include <QtWidgets/qgraphicsview.h>
#include <QtWidgets/qlistview.h>
#include <QtWidgets/qmenu.h>
#include <QtWidgets/qmdiarea.h>
#include <QtWidgets/qtextedit.h>
#include <QtWidgets/qtreeview.h>
#include "qdrawutil.h"
#include <chrono>
+ Include dependency graph for qwindows11style.cpp:

Go to the source code of this file.

Macros

#define SET_IF_UNRESOLVED(GROUP, ROLE, VALUE)
 

Enumerations

enum  WINUI3Color {
  subtleHighlightColor , subtlePressedColor , frameColorLight , frameColorStrong ,
  controlStrongFill , controlStrokeSecondary , controlStrokePrimary , controlFillTertiary ,
  controlFillSecondary , menuPanelFill , textOnAccentPrimary , textOnAccentSecondary ,
  controlTextSecondary , controlStrokeOnAccentSecondary , controlFillSolid , surfaceStroke
}
 

Functions

static void populateLightSystemBasePalette (QPalette &result)
 

Variables

QT_BEGIN_NAMESPACE static const int topLevelRoundingRadius = 8
 
static const int secondLevelRoundingRadius = 4
 
static const QColor WINUI3ColorsLight []
 
static const QColor WINUI3ColorsDark []
 
static const QColorWINUI3Colors []
 
const QColor shellCloseButtonColor (0xC4, 0x2B, 0x1C, 0xFF)
 

Macro Definition Documentation

◆ SET_IF_UNRESOLVED

#define SET_IF_UNRESOLVED ( GROUP,
ROLE,
VALUE )
Value:
if (!result.isBrushSet(QPalette::Inactive, ROLE) || styleSheetChanged) \
result.setColor(GROUP, ROLE, VALUE)
@ Inactive
Definition qpalette.h:49
GLuint64EXT * result
[6]

Definition at line 2080 of file qwindows11style.cpp.

Referenced by QWindows11Style::polish(), and populateLightSystemBasePalette().

Enumeration Type Documentation

◆ WINUI3Color

Enumerator
subtleHighlightColor 
subtlePressedColor 
frameColorLight 
frameColorStrong 
controlStrongFill 
controlStrokeSecondary 
controlStrokePrimary 
controlFillTertiary 
controlFillSecondary 
menuPanelFill 
textOnAccentPrimary 
textOnAccentSecondary 
controlTextSecondary 
controlStrokeOnAccentSecondary 
controlFillSolid 
surfaceStroke 

Definition at line 29 of file qwindows11style.cpp.

Function Documentation

◆ populateLightSystemBasePalette()

static void populateLightSystemBasePalette ( QPalette & result)
static

Definition at line 2084 of file qwindows11style.cpp.

References QPalette::All, QPalette::Base, Qt::black, QPalette::BrightText, QPalette::Button, QPalette::ButtonText, QPalette::Dark, QPalette::Highlight, QPalette::Light, QPalette::Mid, QPalette::Midlight, qApp, SET_IF_UNRESOLVED, QPalette::Shadow, QPalette::Text, QPalette::ToolTipBase, QPalette::ToolTipText, QPalette::Window, and QPalette::WindowText.

Referenced by QWindows11Style::polish().

+ Here is the caller graph for this function:

Variable Documentation

◆ secondLevelRoundingRadius

const int secondLevelRoundingRadius = 4
static

◆ shellCloseButtonColor

const QColor shellCloseButtonColor(0xC4, 0x2B, 0x1C, 0xFF) ( 0xC4 ,
0x2B ,
0x1C ,
0xFF  )

◆ topLevelRoundingRadius

QT_BEGIN_NAMESPACE static const int topLevelRoundingRadius = 8
static

◆ WINUI3Colors

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

Definition at line 86 of file qwindows11style.cpp.

Referenced by QWindows11Style::drawComplexControl(), QWindows11Style::drawControl(), and QWindows11Style::drawPrimitive().

◆ WINUI3ColorsDark

const QColor WINUI3ColorsDark[]
static
Initial value:
{
QColor(0xFF,0xFF,0xFF,0x0F),
QColor(0xFF,0xFF,0xFF,0x0A),
QColor(0xFF,0xFF,0xFF,0x12),
QColor(0xFF,0xFF,0xFF,0x8B),
QColor(0xFF,0xFF,0xFF,0x8B),
QColor(0xFF,0xFF,0xFF,0x18),
QColor(0xFF,0xFF,0xFF,0x12),
QColor(0xF9,0xF9,0xF9,0x00),
QColor(0xF9,0xF9,0xF9,0x80),
QColor(0x0F,0x0F,0x0F,0xFF),
QColor(0x00,0x00,0x00,0xFF),
QColor(0x00,0x00,0x00,0x80),
QColor(0xFF,0xFF,0xFF,0x87),
QColor(0xFF,0xFF,0xFF,0x14),
QColor(0x45,0x45,0x45,0xFF),
QColor(0x75,0x75,0x75,0x66),
}
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31

Definition at line 67 of file qwindows11style.cpp.

◆ WINUI3ColorsLight

const QColor WINUI3ColorsLight[]
static
Initial value:
{
QColor(0x00,0x00,0x00,0x09),
QColor(0x00,0x00,0x00,0x06),
QColor(0x00,0x00,0x00,0x0F),
QColor(0x00,0x00,0x00,0x9c),
QColor(0x00,0x00,0x00,0x72),
QColor(0x00,0x00,0x00,0x29),
QColor(0x00,0x00,0x00,0x14),
QColor(0xF9,0xF9,0xF9,0x00),
QColor(0xF9,0xF9,0xF9,0x80),
QColor(0xFF,0xFF,0xFF,0xFF),
QColor(0xFF,0xFF,0xFF,0xFF),
QColor(0xFF,0xFF,0xFF,0x7F),
QColor(0x00,0x00,0x00,0x7F),
QColor(0x00,0x00,0x00,0x66),
QColor(0xFF,0xFF,0xFF,0xFF),
QColor(0x75,0x75,0x75,0x66),
}

Definition at line 48 of file qwindows11style.cpp.