From e738f2519bdcf33a020536fb6318419d46b16a77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=83=C2=BCng?= Date: Mon, 18 Sep 2017 19:47:53 +0200 Subject: [PATCH] FlightDisplayViewWidgets: Scale instrument size with the configured font size On large/high DPI screens, the whole UI scales nicely when increasing the font size, except for the attitude widget, that was limited to 200 pixels. --- src/FlightDisplay/FlightDisplayViewWidgets.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/FlightDisplay/FlightDisplayViewWidgets.qml b/src/FlightDisplay/FlightDisplayViewWidgets.qml index fcd04dfdf..4caab475f 100644 --- a/src/FlightDisplay/FlightDisplayViewWidgets.qml +++ b/src/FlightDisplay/FlightDisplayViewWidgets.qml @@ -42,8 +42,7 @@ Item { if(ScreenTools.isMobile) { return ScreenTools.isTinyScreen ? mainWindow.width * 0.2 : mainWindow.width * 0.15 } - var w = mainWindow.width * 0.15 - return Math.min(w, 200) + return ScreenTools.defaultFontPixelWidth * 30 } function _setInstrumentWidget() { -- 2.22.0