4#ifndef QFUSIONSTYLE_P_P_H
5#define QFUSIONSTYLE_P_P_H
18#include <QtWidgets/private/qtwidgetsglobal_p.h>
21#include <qpa/qplatformtheme.h>
22#include "private/qguiapplication_p.h"
24#if QT_CONFIG(style_fusion)
30 Q_DECLARE_PUBLIC(QFusionStyle)
33 QFusionStylePrivate();
36 QColor lightShade()
const {
37 return QColor(255, 255, 255, 90);
40 return QColor(0, 0, 0, 60);
44 return QColor(0, 0, 0, 18);
47 QColor innerContrastLine()
const {
48 return QColor(255, 255, 255, 30);
52 bool isMacSystemPalette(
const QPalette &pal)
const {
54#if defined(Q_OS_MACOS)
66 if (isMacSystemPalette(pal))
67 return QColor(60, 140, 230);
72 if (isMacSystemPalette(pal))
79 return QColor(0, 0, 0, 160);
85 if (highlightedOutline.
value() > 160)
87 return highlightedOutline;
92 return QColor(255, 255, 255, 8);
93 return buttonColor(pal).lighter(104);
106 menuArrowHMargin = 6,
107 menuRightBorder = 15,
108 menuCheckMarkWidth = 12
const QColor & color() const
Returns the brush color.
Qt::BrushStyle style() const
Returns the brush style.
The QColor class provides colors based on RGB, HSV or CMYK values.
int saturation() const noexcept
Returns the HSV saturation color component of this color.
QColor darker(int f=200) const noexcept
void setHsl(int h, int s, int l, int a=255)
QRgb rgb() const noexcept
Returns the RGB value of the color.
int hue() const noexcept
Returns the HSV hue color component of this color.
void setHsv(int h, int s, int v, int a=255)
Sets a HSV color value; h is the hue, s is the saturation, v is the value and a is the alpha componen...
int value() const noexcept
Returns the value color component of this color.
QColor lighter(int f=150) const noexcept
static QPlatformTheme * platformTheme()
The QPalette class contains color groups for each widget state.
const QBrush & button() const
Returns the button brush of the current color group.
const QColor & color(ColorGroup cg, ColorRole cr) const
Returns the color in the specified color group, used for the given color role.
const QBrush & window() const
Returns the window (general background) brush of the current color group.
Combined button and popup list for selecting options.
constexpr const T & qMax(const T &a, const T &b)
constexpr int qGray(int r, int g, int b)