2023-04-13 15:19:36 +00:00
|
|
|
/******************************************************************************
|
2023-05-12 12:26:24 +00:00
|
|
|
* QSkinny - Copyright (C) 2023 Edelhirsch Software GmbH
|
2023-04-13 15:19:36 +00:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2023-06-17 10:23:34 +00:00
|
|
|
#ifndef QSK_FLUENT2_SKIN_H
|
|
|
|
#define QSK_FLUENT2_SKIN_H
|
2023-04-13 15:19:36 +00:00
|
|
|
|
2023-06-17 10:23:34 +00:00
|
|
|
#include "QskFluent2Global.h"
|
2023-05-06 13:46:12 +00:00
|
|
|
#include <QskSkin.h>
|
2023-04-13 15:19:36 +00:00
|
|
|
|
2023-07-02 10:18:47 +00:00
|
|
|
class QskFluent2Theme;
|
2023-04-13 15:19:36 +00:00
|
|
|
|
2023-06-17 10:23:34 +00:00
|
|
|
class QSK_FLUENT2_EXPORT QskFluent2Skin : public QskSkin
|
2023-04-13 15:19:36 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
using Inherited = QskSkin;
|
|
|
|
|
|
|
|
public:
|
2023-06-17 10:23:34 +00:00
|
|
|
QskFluent2Skin( const QskFluent2Theme&, QObject* parent = nullptr );
|
2023-07-02 10:18:47 +00:00
|
|
|
~QskFluent2Skin() override;
|
2023-04-13 15:19:36 +00:00
|
|
|
|
|
|
|
enum GraphicRole
|
|
|
|
{
|
2023-05-08 15:35:14 +00:00
|
|
|
GraphicRoleFillColorTextDisabled,
|
2023-05-01 17:34:36 +00:00
|
|
|
GraphicRoleFillColorTextOnAccentDisabled,
|
|
|
|
GraphicRoleFillColorTextOnAccentPrimary,
|
|
|
|
GraphicRoleFillColorTextOnAccentSecondary,
|
2023-05-08 15:35:14 +00:00
|
|
|
GraphicRoleFillColorTextPrimary,
|
|
|
|
GraphicRoleFillColorTextSecondary,
|
2023-04-13 15:19:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
enum FontRole
|
|
|
|
{
|
2023-05-12 13:35:16 +00:00
|
|
|
Caption = TinyFont,
|
|
|
|
Body = DefaultFont,
|
|
|
|
BodyStrong = SmallFont,
|
|
|
|
BodyLarge = MediumFont,
|
|
|
|
Subtitle = LargeFont,
|
|
|
|
Title = HugeFont,
|
2023-04-13 15:19:36 +00:00
|
|
|
TitleLarge,
|
2023-05-12 13:35:16 +00:00
|
|
|
Display,
|
2023-04-13 15:19:36 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 08:38:55 +00:00
|
|
|
static constexpr QskAspect::Variation Standard = QskAspect::NoVariation;
|
|
|
|
static constexpr QskAspect::Variation Accent = QskAspect::Large;
|
|
|
|
|
2023-04-13 15:19:36 +00:00
|
|
|
private:
|
|
|
|
void setupFonts();
|
2023-07-02 10:18:47 +00:00
|
|
|
void setupGraphicFilters( const QskFluent2Theme& );
|
2023-04-13 15:19:36 +00:00
|
|
|
void setGraphicColor( GraphicRole, QRgb );
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|