2021-04-29 05:49:08 +00:00
|
|
|
/******************************************************************************
|
|
|
|
* Copyright (C) 2021 Edelhirsch Software GmbH
|
|
|
|
* This file may be used under the terms of the 3-clause BSD License
|
|
|
|
*****************************************************************************/
|
2021-04-26 04:22:35 +00:00
|
|
|
|
2021-08-04 08:11:12 +00:00
|
|
|
#pragma once
|
2021-04-26 04:22:35 +00:00
|
|
|
|
|
|
|
#include <QskGradient.h>
|
|
|
|
#include <QskSkin.h>
|
|
|
|
|
|
|
|
class Skin : public QskSkin
|
|
|
|
{
|
2021-08-04 07:31:16 +00:00
|
|
|
public:
|
2022-10-26 08:50:11 +00:00
|
|
|
struct Palette
|
2021-08-04 07:31:16 +00:00
|
|
|
{
|
2022-10-26 15:02:06 +00:00
|
|
|
QColor menuBar;
|
|
|
|
QColor mainContent;
|
|
|
|
QColor box;
|
|
|
|
QColor roundButton;
|
2022-12-17 10:06:47 +00:00
|
|
|
QColor roundButtonPressed;
|
2021-08-04 07:31:16 +00:00
|
|
|
QColor weekdayBox;
|
|
|
|
QColor text;
|
|
|
|
QColor shadow;
|
2022-12-20 15:05:44 +00:00
|
|
|
QColor lightDisplayKnobBorder;
|
|
|
|
QskGradient lightDisplayColdAndWarmArc;
|
2021-08-24 06:46:26 +00:00
|
|
|
QskGradient circularProgressBarGroove;
|
2022-12-17 10:26:26 +00:00
|
|
|
QRgb deviceGraphic;
|
2021-08-04 07:31:16 +00:00
|
|
|
};
|
2021-04-26 04:22:35 +00:00
|
|
|
|
2021-08-04 07:31:16 +00:00
|
|
|
Skin( const Palette& palette, QObject* parent = nullptr );
|
|
|
|
~Skin() override;
|
2021-04-26 04:22:35 +00:00
|
|
|
|
2021-08-04 07:31:16 +00:00
|
|
|
enum SkinFontRole
|
|
|
|
{
|
|
|
|
TitleFont = QskSkin::HugeFont + 1,
|
|
|
|
};
|
2021-04-26 04:22:35 +00:00
|
|
|
|
2021-08-04 07:31:16 +00:00
|
|
|
private:
|
|
|
|
void initHints( const Palette& palette );
|
2021-04-26 04:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class DaytimeSkin : public Skin
|
|
|
|
{
|
2021-08-04 07:31:16 +00:00
|
|
|
public:
|
|
|
|
DaytimeSkin( QObject* parent = nullptr )
|
2022-10-26 08:50:11 +00:00
|
|
|
: Skin( palette(), parent )
|
2021-08-04 07:31:16 +00:00
|
|
|
{
|
|
|
|
}
|
2022-10-26 08:50:11 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Palette palette() const;
|
2021-04-26 04:22:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class NighttimeSkin : public Skin
|
|
|
|
{
|
2021-08-04 07:31:16 +00:00
|
|
|
public:
|
|
|
|
NighttimeSkin( QObject* parent = nullptr )
|
2022-10-26 08:50:11 +00:00
|
|
|
: Skin( palette(), parent )
|
2021-08-04 07:31:16 +00:00
|
|
|
{
|
|
|
|
}
|
2022-10-26 08:50:11 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
Palette palette() const;
|
2021-04-26 04:22:35 +00:00
|
|
|
};
|