feat(overlay): inherit zoom and add zoom factor (#6016)
This commit is contained in:
@@ -285,6 +285,16 @@ void Settings::setClampedUiScale(float value)
|
||||
this->uiScale.setValue(std::clamp(value, 0.2F, 10.F));
|
||||
}
|
||||
|
||||
float Settings::getClampedOverlayScale() const
|
||||
{
|
||||
return std::clamp(this->overlayScaleFactor.getValue(), 0.2F, 10.F);
|
||||
}
|
||||
|
||||
void Settings::setClampedOverlayScale(float value)
|
||||
{
|
||||
this->overlayScaleFactor.setValue(std::clamp(value, 0.2F, 10.F));
|
||||
}
|
||||
|
||||
Settings &Settings::instance()
|
||||
{
|
||||
assert(instance_ != nullptr);
|
||||
|
||||
@@ -190,6 +190,7 @@ public:
|
||||
// BoolSetting useCustomWindowFrame = {"/appearance/useCustomWindowFrame",
|
||||
// false};
|
||||
|
||||
FloatSetting overlayScaleFactor = {"/appearance/overlay/scaleFactor", 1};
|
||||
IntSetting overlayBackgroundOpacity = {
|
||||
"/appearance/overlay/backgroundOpacity", 50};
|
||||
BoolSetting enableOverlayShadow = {"/appearance/overlay/shadow", true};
|
||||
@@ -202,6 +203,9 @@ public:
|
||||
IntSetting overlayShadowOffsetY = {"/appearance/overlay/shadowOffsetY", 2};
|
||||
IntSetting overlayShadowRadius = {"/appearance/overlay/shadowRadius", 8};
|
||||
|
||||
float getClampedOverlayScale() const;
|
||||
void setClampedOverlayScale(float value);
|
||||
|
||||
// Badges
|
||||
BoolSetting showBadgesGlobalAuthority = {
|
||||
"/appearance/badges/GlobalAuthority", true};
|
||||
|
||||
Reference in New Issue
Block a user