mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
35 lines
737 B
C++
35 lines
737 B
C++
/*
|
|
* SPDX-FileCopyrightText: 2022 by Devin Lin <devin@kde.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <QObject>
|
|
|
|
#include "colorcorrectinterface.h"
|
|
#include "nightcolorsettings.h"
|
|
|
|
class NightColorUtil : public QObject
|
|
{
|
|
Q_OBJECT
|
|
Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
|
|
|
|
public:
|
|
NightColorUtil(QObject *parent = nullptr);
|
|
|
|
bool enabled();
|
|
void setEnabled(bool enabled);
|
|
|
|
Q_SIGNALS:
|
|
void enabledChanged();
|
|
|
|
public Q_SLOTS:
|
|
void enabledUpdated(const QString &name, const QVariantMap &map, const QStringList &list);
|
|
|
|
private:
|
|
bool m_enabled;
|
|
OrgKdeKwinColorCorrectInterface *m_ccInterface;
|
|
NightColorSettings *m_settings;
|
|
};
|