2023-04-13 17:19:36 +02:00
|
|
|
/******************************************************************************
|
2024-01-17 14:31:45 +01:00
|
|
|
* QSkinny - Copyright (C) The authors
|
2023-04-13 17:19:36 +02:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
*****************************************************************************/
|
|
|
|
|
2023-06-17 12:23:34 +02:00
|
|
|
#ifndef QSK_FLUENT2_SKIN_H
|
|
|
|
#define QSK_FLUENT2_SKIN_H
|
2023-04-13 17:19:36 +02:00
|
|
|
|
2023-06-17 12:23:34 +02:00
|
|
|
#include "QskFluent2Global.h"
|
2023-05-06 15:46:12 +02:00
|
|
|
#include <QskSkin.h>
|
2023-04-13 17:19:36 +02:00
|
|
|
|
2023-07-02 12:18:47 +02:00
|
|
|
class QskFluent2Theme;
|
2023-04-13 17:19:36 +02:00
|
|
|
|
2023-06-17 12:23:34 +02:00
|
|
|
class QSK_FLUENT2_EXPORT QskFluent2Skin : public QskSkin
|
2023-04-13 17:19:36 +02:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
using Inherited = QskSkin;
|
|
|
|
|
|
|
|
public:
|
2023-07-03 17:50:57 +02:00
|
|
|
QskFluent2Skin( QObject* parent = nullptr );
|
2023-07-02 12:18:47 +02:00
|
|
|
~QskFluent2Skin() override;
|
2023-04-13 17:19:36 +02:00
|
|
|
|
|
|
|
enum GraphicRole
|
|
|
|
{
|
2023-05-08 17:35:14 +02:00
|
|
|
GraphicRoleFillColorTextDisabled,
|
2023-05-01 19:34:36 +02:00
|
|
|
GraphicRoleFillColorTextOnAccentDisabled,
|
|
|
|
GraphicRoleFillColorTextOnAccentPrimary,
|
|
|
|
GraphicRoleFillColorTextOnAccentSecondary,
|
2023-05-08 17:35:14 +02:00
|
|
|
GraphicRoleFillColorTextPrimary,
|
|
|
|
GraphicRoleFillColorTextSecondary,
|
2023-04-13 17:19:36 +02:00
|
|
|
};
|
|
|
|
|
2023-04-29 10:38:55 +02:00
|
|
|
static constexpr QskAspect::Variation Standard = QskAspect::NoVariation;
|
|
|
|
static constexpr QskAspect::Variation Accent = QskAspect::Large;
|
|
|
|
|
2024-01-30 14:52:40 +01:00
|
|
|
protected:
|
|
|
|
void initHints() override;
|
|
|
|
|
2023-04-13 17:19:36 +02:00
|
|
|
private:
|
2024-01-30 14:52:40 +01:00
|
|
|
void addTheme( QskAspect::Section, const QskFluent2Theme& );
|
|
|
|
|
2023-04-13 17:19:36 +02:00
|
|
|
void setupFonts();
|
2023-07-02 12:18:47 +02:00
|
|
|
void setupGraphicFilters( const QskFluent2Theme& );
|
2023-04-13 17:19:36 +02:00
|
|
|
void setGraphicColor( GraphicRole, QRgb );
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|