more unfinished changes, process tab for dashboard

This commit is contained in:
2026-09-30 14:26:50 +02:00
parent 0bfda04e91
commit 359f832609
98 changed files with 8633 additions and 2983 deletions
+16 -18
View File
@@ -1,31 +1,29 @@
#pragma once
#include "configobject.hpp"
#include "common.hpp"
#include <qqmlintegration.h>
namespace ZShell::config {
class Presets : public ConfigObject {
Q_OBJECT
QML_ANONYMOUS
class Presets : public settings::ObjectNode {
CONFIG_NODE(Presets, settings::ObjectNode)
CFG_PROPERTY(QString, accent, QString())
CFG_PROPERTY(QString, name, QStringLiteral("Catppuccin"))
CFG_PROPERTY(QString, variant, QStringLiteral("latte"))
public:
explicit Presets(QObject* parent = nullptr) : ConfigObject(parent) {}
CONFIG_PROPERTY(QString, accent, QString())
CONFIG_PROPERTY(QString, name, QStringLiteral("Catppuccin"))
CONFIG_PROPERTY(QString, variant, QStringLiteral("latte"))
};
class Colors : public ConfigObject {
Q_OBJECT
QML_ANONYMOUS
class Colors : public settings::ObjectNode {
CONFIG_NODE(Colors, settings::ObjectNode)
CONFIG_SUBOBJECT(Presets, presets)
CFG_PROPERTY(QString, schemeType, QStringLiteral("fidelity"))
public:
explicit Colors(QObject* parent = nullptr)
: ConfigObject(parent), m_presets(new Presets(this)) {}
CONFIG_PROPERTY(QString, schemeType, QStringLiteral("fidelity"))
CONFIG_PROPERTY(bool, scheduleDark, false)
CONFIG_PROPERTY(int, scheduleDarkEnd, 600)
CONFIG_PROPERTY(int, scheduleDarkStart, 1140)
CONFIG_PROPERTY(bool, schemeGen, true)
CONFIG_PROPERTY(bool, neovimColors, false)
CONFIG_PROPERTY(QString, mode, QStringLiteral("dark"))
CONFIG_PROPERTY(bool, smart, false)
};
} // namespace ZShell::config