mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 07:35:12 +00:00
Use window widget's devicePixelRatio when displaying interface scale value
This is less confusing in multi-monitor environments
This commit is contained in:
@@ -474,7 +474,8 @@ void SetupInterfaceScale(
|
|||||||
if constexpr (Platform::IsMac()) {
|
if constexpr (Platform::IsMac()) {
|
||||||
return QString::number(scale) + '%';
|
return QString::number(scale) + '%';
|
||||||
} else {
|
} else {
|
||||||
return QString::number(scale * ratio) + '%';
|
const auto ratio = window->widget()->devicePixelRatioF();
|
||||||
|
return QString::number(int(scale * ratio)) + '%';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
label->setText(labelText(cEvalScale(scale)));
|
label->setText(labelText(cEvalScale(scale)));
|
||||||
|
Reference in New Issue
Block a user