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