32 lines
909 B
C++
32 lines
909 B
C++
#pragma once
|
|
#include "ConfigSection.hpp"
|
|
#include <qqmlregistration.h>
|
|
|
|
class LockSizes : public ConfigSection {
|
|
Q_OBJECT
|
|
QML_UNCREATABLE("Instantiated internally by Config")
|
|
|
|
CFG_PROPERTY(int, centerWidth, CenterWidth)
|
|
CFG_PROPERTY(qreal, heightMult, HeightMult)
|
|
CFG_PROPERTY(qreal, ratio, Ratio)
|
|
|
|
public:
|
|
explicit LockSizes(QObject *parent = nullptr);
|
|
};
|
|
|
|
class Lock : public ConfigSection {
|
|
Q_OBJECT
|
|
QML_UNCREATABLE("Instantiated internally by Config")
|
|
|
|
CFG_PROPERTY(int, blurAmount, BlurAmount)
|
|
CFG_PROPERTY(bool, enableFprint, EnableFprint)
|
|
CFG_PROPERTY(int, maxFprintTries, MaxFprintTries)
|
|
CFG_PROPERTY(bool, recolorLogo, RecolorLogo)
|
|
CFG_PROPERTY(bool, showNotifContent, ShowNotifContent)
|
|
CFG_PROPERTY(bool, showNotifIcon, ShowNotifIcon)
|
|
CFG_SECTION(LockSizes, sizes, Sizes)
|
|
|
|
public:
|
|
explicit Lock(QObject *parent = nullptr);
|
|
};
|