Browse Source

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.
QGC4.4
Beat Küng 8 years ago committed by Beat Küng
parent
commit
e738f2519b
  1. 3
      src/FlightDisplay/FlightDisplayViewWidgets.qml

3
src/FlightDisplay/FlightDisplayViewWidgets.qml

@ -42,8 +42,7 @@ Item {
if(ScreenTools.isMobile) { if(ScreenTools.isMobile) {
return ScreenTools.isTinyScreen ? mainWindow.width * 0.2 : mainWindow.width * 0.15 return ScreenTools.isTinyScreen ? mainWindow.width * 0.2 : mainWindow.width * 0.15
} }
var w = mainWindow.width * 0.15 return ScreenTools.defaultFontPixelWidth * 30
return Math.min(w, 200)
} }
function _setInstrumentWidget() { function _setInstrumentWidget() {

Loading…
Cancel
Save