more unfinished changes, process tab for dashboard
C++ / fmt (pull_request) Failing after 5s
C++ / build (pull_request) Failing after 10s
C++ / clang-tidy (pull_request) Failing after 11s
JS/TS / fmt (pull_request) Successful in 9s
JS/TS / lint (pull_request) Successful in 10s
Python / static (pull_request) Successful in 34s
Rust / build (pull_request) Successful in 59s
Python / verify (pull_request) Successful in 1m48s
Rust / fmt (pull_request) Successful in 47s
Rust / clippy (pull_request) Successful in 1m6s
C++ / fmt (pull_request) Failing after 5s
C++ / build (pull_request) Failing after 10s
C++ / clang-tidy (pull_request) Failing after 11s
JS/TS / fmt (pull_request) Successful in 9s
JS/TS / lint (pull_request) Successful in 10s
Python / static (pull_request) Successful in 34s
Rust / build (pull_request) Successful in 59s
Python / verify (pull_request) Successful in 1m48s
Rust / fmt (pull_request) Successful in 47s
Rust / clippy (pull_request) Successful in 1m6s
This commit is contained in:
@@ -1,33 +1,24 @@
|
||||
#pragma once
|
||||
#include "configobject.hpp"
|
||||
#include "common.hpp"
|
||||
#include <qqmlintegration.h>
|
||||
|
||||
namespace ZShell::config {
|
||||
|
||||
class Nightlight : public ConfigObject {
|
||||
Q_OBJECT
|
||||
QML_ANONYMOUS
|
||||
class Nightlight : public settings::ObjectNode {
|
||||
CONFIG_NODE(Nightlight, settings::ObjectNode)
|
||||
|
||||
CFG_PROPERTY(bool, schedule, true)
|
||||
CFG_PROPERTY(int, scheduleStart, 1200)
|
||||
CFG_PROPERTY(int, scheduleEnd, 570)
|
||||
CFG_PROPERTY(bool, useNative, true)
|
||||
CFG_PROPERTY(int, fadeDuration, 2000)
|
||||
CFG_PROPERTY(int, temp, 2600)
|
||||
|
||||
public:
|
||||
explicit Nightlight(QObject* parent = nullptr) : ConfigObject(parent) {}
|
||||
CONFIG_PROPERTY(bool, schedule, true)
|
||||
CONFIG_PROPERTY(int, scheduleStart, 1200)
|
||||
CONFIG_PROPERTY(int, scheduleEnd, 570)
|
||||
CONFIG_PROPERTY(bool, useNative, true)
|
||||
CONFIG_PROPERTY(int, fadeDuration, 2000)
|
||||
CONFIG_PROPERTY(int, temp, 2600)
|
||||
};
|
||||
|
||||
class Display : public ConfigObject {
|
||||
Q_OBJECT
|
||||
QML_ANONYMOUS
|
||||
class Display : public settings::ObjectNode {
|
||||
CONFIG_NODE(Display, settings::ObjectNode)
|
||||
|
||||
CONFIG_SUBOBJECT(Nightlight, nightlight)
|
||||
|
||||
public:
|
||||
explicit Display(QObject* parent = nullptr)
|
||||
: ConfigObject(parent), m_nightlight(new Nightlight(this)) {}
|
||||
};
|
||||
|
||||
} // namespace ZShell::config
|
||||
|
||||
Reference in New Issue
Block a user