qskinny/designsystems/fluent2/QskFluent2Skin.h

49 lines
1.3 KiB
C
Raw Normal View History

2023-04-13 15:19:36 +00:00
/******************************************************************************
2024-01-17 13:31:45 +00:00
* QSkinny - Copyright (C) The authors
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-07-03 15:50:57 +00:00
QskFluent2Skin( QObject* parent = nullptr );
2023-07-02 10:18:47 +00:00
~QskFluent2Skin() override;
2023-04-13 15:19:36 +00:00
enum GraphicRole
{
GraphicRoleFillColorTextDisabled,
2023-05-01 17:34:36 +00:00
GraphicRoleFillColorTextOnAccentDisabled,
GraphicRoleFillColorTextOnAccentPrimary,
GraphicRoleFillColorTextOnAccentSecondary,
GraphicRoleFillColorTextPrimary,
GraphicRoleFillColorTextSecondary,
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;
protected:
void initHints() override;
2023-04-13 15:19:36 +00:00
private:
void addTheme( QskAspect::Section, const QskFluent2Theme& );
2023-04-13 15:19:36 +00:00
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