summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-12-08 21:53:05 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-12-08 22:13:48 +0100
commitd148afca3ba07b273525829781ee703f2197738a (patch)
tree6182150aef1ceacd427c4533f160ec9af113d3e2
parent792f05f82a85eeba6196da7b2d2aa34c6bbbaa2a (diff)
downloadrockbox-d148afca3ba07b273525829781ee703f2197738a.tar.gz
rockbox-d148afca3ba07b273525829781ee703f2197738a.zip
rbutil: Improve HiDPI support.
Replace the Rockbox logo with an svg version. Since the file size (i.e. the page size in the svg) that isn't intended for use as icon we need to enable scaling, and since scaling the label content doesn't keep the aspect ratio we need to explicitly set the desired values. Notably improves representation on HiDPI monitors. Now only the player icons are still raster images. Change-Id: I03216391a4b0ac982b16f5bec2b48c073369a3f6
-rw-r--r--rbutil/rbutilqt/rbutilqtfrm.ui37
1 files changed, 23 insertions, 14 deletions
diff --git a/rbutil/rbutilqt/rbutilqtfrm.ui b/rbutil/rbutilqt/rbutilqtfrm.ui
index 4bdd929a93..af47fea72c 100644
--- a/rbutil/rbutilqt/rbutilqtfrm.ui
+++ b/rbutil/rbutilqt/rbutilqtfrm.ui
@@ -21,26 +21,35 @@
21 <layout class="QGridLayout" name="gridLayout_3"> 21 <layout class="QGridLayout" name="gridLayout_3">
22 <item row="0" column="0"> 22 <item row="0" column="0">
23 <widget class="QLabel" name="logoLabel"> 23 <widget class="QLabel" name="logoLabel">
24 <property name="sizePolicy"> 24 <property name="minimumSize">
25 <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> 25 <size>
26 <horstretch>0</horstretch> 26 <width>200</width>
27 <verstretch>0</verstretch> 27 <height>62</height>
28 </sizepolicy> 28 </size>
29 </property>
30 <property name="maximumSize">
31 <size>
32 <width>200</width>
33 <height>62</height>
34 </size>
29 </property> 35 </property>
30 <property name="baseSize"> 36 <property name="baseSize">
31 <size> 37 <size>
32 <width>0</width> 38 <width>200</width>
33 <height>0</height> 39 <height>62</height>
34 </size> 40 </size>
35 </property> 41 </property>
36 <property name="text"> 42 <property name="text">
37 <string comment="Welcome to Rockbox Utility, the installation and housekeeping tool for Rockbox."/> 43 <string comment="Welcome to Rockbox Utility, the installation and housekeeping tool for Rockbox."/>
38 </property> 44 </property>
39 <property name="pixmap"> 45 <property name="pixmap">
40 <pixmap resource="rbutilqt.qrc">:/icons/rblogo.png</pixmap> 46 <pixmap resource="rbutilqt.qrc">:/icons/rockbox-logo.svg</pixmap>
41 </property> 47 </property>
42 <property name="scaledContents"> 48 <property name="scaledContents">
43 <bool>false</bool> 49 <bool>true</bool>
50 </property>
51 <property name="alignment">
52 <set>Qt::AlignCenter</set>
44 </property> 53 </property>
45 </widget> 54 </widget>
46 </item> 55 </item>
@@ -473,7 +482,7 @@
473 </action> 482 </action>
474 <action name="actionComplete_Installation"> 483 <action name="actionComplete_Installation">
475 <property name="icon"> 484 <property name="icon">
476 <iconset resource="rbutilqt.qrc"> 485 <iconset>
477 <normaloff>:/icons/bootloader_btn.png</normaloff>:/icons/bootloader_btn.png</iconset> 486 <normaloff>:/icons/bootloader_btn.png</normaloff>:/icons/bootloader_btn.png</iconset>
478 </property> 487 </property>
479 <property name="text"> 488 <property name="text">
@@ -482,7 +491,7 @@
482 </action> 491 </action>
483 <action name="actionSmall_Installation"> 492 <action name="actionSmall_Installation">
484 <property name="icon"> 493 <property name="icon">
485 <iconset resource="rbutilqt.qrc"> 494 <iconset>
486 <normaloff>:/icons/rbinstall_btn.png</normaloff>:/icons/rbinstall_btn.png</iconset> 495 <normaloff>:/icons/rbinstall_btn.png</normaloff>:/icons/rbinstall_btn.png</iconset>
487 </property> 496 </property>
488 <property name="text"> 497 <property name="text">
@@ -491,7 +500,7 @@
491 </action> 500 </action>
492 <action name="actionInstall_Bootloader"> 501 <action name="actionInstall_Bootloader">
493 <property name="icon"> 502 <property name="icon">
494 <iconset resource="rbutilqt.qrc"> 503 <iconset>
495 <normaloff>:/icons/bootloader_btn.png</normaloff>:/icons/bootloader_btn.png</iconset> 504 <normaloff>:/icons/bootloader_btn.png</normaloff>:/icons/bootloader_btn.png</iconset>
496 </property> 505 </property>
497 <property name="text"> 506 <property name="text">
@@ -500,7 +509,7 @@
500 </action> 509 </action>
501 <action name="actionInstall_Rockbox"> 510 <action name="actionInstall_Rockbox">
502 <property name="icon"> 511 <property name="icon">
503 <iconset resource="rbutilqt.qrc"> 512 <iconset>
504 <normaloff>:/icons/rbinstall_btn.png</normaloff>:/icons/rbinstall_btn.png</iconset> 513 <normaloff>:/icons/rbinstall_btn.png</normaloff>:/icons/rbinstall_btn.png</iconset>
505 </property> 514 </property>
506 <property name="text"> 515 <property name="text">
@@ -509,7 +518,7 @@
509 </action> 518 </action>
510 <action name="actionFonts_Package"> 519 <action name="actionFonts_Package">
511 <property name="icon"> 520 <property name="icon">
512 <iconset resource="rbutilqt.qrc"> 521 <iconset>
513 <normaloff>:/icons/font_btn.png</normaloff>:/icons/font_btn.png</iconset> 522 <normaloff>:/icons/font_btn.png</normaloff>:/icons/font_btn.png</iconset>
514 </property> 523 </property>
515 <property name="text"> 524 <property name="text">