Fixes #1266 tabs too wide after zoom
This commit is contained in:
@@ -98,12 +98,12 @@ void AB_SETTINGS_CLASS::restoreSnapshot()
|
|||||||
|
|
||||||
float AB_SETTINGS_CLASS::getClampedUiScale() const
|
float AB_SETTINGS_CLASS::getClampedUiScale() const
|
||||||
{
|
{
|
||||||
return clamp<float>(this->uiScale.getValue(), 0.1, 10);
|
return clamp<float>(this->uiScale.getValue(), 0.2f, 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
void AB_SETTINGS_CLASS::setClampedUiScale(float value)
|
void AB_SETTINGS_CLASS::setClampedUiScale(float value)
|
||||||
{
|
{
|
||||||
this->uiScale.setValue(clamp<float>(value, 0.1, 10));
|
this->uiScale.setValue(clamp<float>(value, 0.2f, 10));
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef AB_CUSTOM_SETTINGS
|
#ifndef AB_CUSTOM_SETTINGS
|
||||||
|
|||||||
@@ -61,7 +61,12 @@ BaseWindow::BaseWindow(QWidget *parent, Flags _flags)
|
|||||||
this->init();
|
this->init();
|
||||||
|
|
||||||
getSettings()->uiScale.connect(
|
getSettings()->uiScale.connect(
|
||||||
[this]() { postToThread([this] { this->updateScale(); }); },
|
[this]() {
|
||||||
|
postToThread([this] {
|
||||||
|
this->updateScale();
|
||||||
|
this->updateScale();
|
||||||
|
});
|
||||||
|
},
|
||||||
this->connections_);
|
this->connections_);
|
||||||
|
|
||||||
this->updateScale();
|
this->updateScale();
|
||||||
|
|||||||
Reference in New Issue
Block a user