2021-05-13 09:23:56 +03:00
|
|
|
// SPDX-FileCopyrightText: 2021 Nheko Contributors
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QPalette>
|
|
|
|
|
|
|
|
class Nheko : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Q_PROPERTY(QPalette colors READ colors NOTIFY colorsChanged)
|
|
|
|
Q_PROPERTY(QPalette inactiveColors READ inactiveColors NOTIFY colorsChanged)
|
|
|
|
|
|
|
|
public:
|
|
|
|
Nheko();
|
|
|
|
|
|
|
|
QPalette colors() const;
|
|
|
|
QPalette inactiveColors() const;
|
|
|
|
|
2021-05-13 09:52:02 +03:00
|
|
|
Q_INVOKABLE void openLink(QString link) const;
|
|
|
|
|
2021-05-13 09:23:56 +03:00
|
|
|
signals:
|
|
|
|
void colorsChanged();
|
|
|
|
};
|
2021-05-13 09:52:02 +03:00
|
|
|
|