1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dominik Riebeling 2020-12-08 21:53:05 +01:00
parent 792f05f82a
commit d148afca3b

View file

@ -21,26 +21,35 @@
<layout class="QGridLayout" name="gridLayout_3"> <layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0"> <item row="0" column="0">
<widget class="QLabel" name="logoLabel"> <widget class="QLabel" name="logoLabel">
<property name="sizePolicy"> <property name="minimumSize">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <size>
<horstretch>0</horstretch> <width>200</width>
<verstretch>0</verstretch> <height>62</height>
</sizepolicy> </size>
</property>
<property name="maximumSize">
<size>
<width>200</width>
<height>62</height>
</size>
</property> </property>
<property name="baseSize"> <property name="baseSize">
<size> <size>
<width>0</width> <width>200</width>
<height>0</height> <height>62</height>
</size> </size>
</property> </property>
<property name="text"> <property name="text">
<string comment="Welcome to Rockbox Utility, the installation and housekeeping tool for Rockbox."/> <string comment="Welcome to Rockbox Utility, the installation and housekeeping tool for Rockbox."/>
</property> </property>
<property name="pixmap"> <property name="pixmap">
<pixmap resource="rbutilqt.qrc">:/icons/rblogo.png</pixmap> <pixmap resource="rbutilqt.qrc">:/icons/rockbox-logo.svg</pixmap>
</property> </property>
<property name="scaledContents"> <property name="scaledContents">
<bool>false</bool> <bool>true</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
@ -473,7 +482,7 @@
</action> </action>
<action name="actionComplete_Installation"> <action name="actionComplete_Installation">
<property name="icon"> <property name="icon">
<iconset resource="rbutilqt.qrc"> <iconset>
<normaloff>:/icons/bootloader_btn.png</normaloff>:/icons/bootloader_btn.png</iconset> <normaloff>:/icons/bootloader_btn.png</normaloff>:/icons/bootloader_btn.png</iconset>
</property> </property>
<property name="text"> <property name="text">
@ -482,7 +491,7 @@
</action> </action>
<action name="actionSmall_Installation"> <action name="actionSmall_Installation">
<property name="icon"> <property name="icon">
<iconset resource="rbutilqt.qrc"> <iconset>
<normaloff>:/icons/rbinstall_btn.png</normaloff>:/icons/rbinstall_btn.png</iconset> <normaloff>:/icons/rbinstall_btn.png</normaloff>:/icons/rbinstall_btn.png</iconset>
</property> </property>
<property name="text"> <property name="text">
@ -491,7 +500,7 @@
</action> </action>
<action name="actionInstall_Bootloader"> <action name="actionInstall_Bootloader">
<property name="icon"> <property name="icon">
<iconset resource="rbutilqt.qrc"> <iconset>
<normaloff>:/icons/bootloader_btn.png</normaloff>:/icons/bootloader_btn.png</iconset> <normaloff>:/icons/bootloader_btn.png</normaloff>:/icons/bootloader_btn.png</iconset>
</property> </property>
<property name="text"> <property name="text">
@ -500,7 +509,7 @@
</action> </action>
<action name="actionInstall_Rockbox"> <action name="actionInstall_Rockbox">
<property name="icon"> <property name="icon">
<iconset resource="rbutilqt.qrc"> <iconset>
<normaloff>:/icons/rbinstall_btn.png</normaloff>:/icons/rbinstall_btn.png</iconset> <normaloff>:/icons/rbinstall_btn.png</normaloff>:/icons/rbinstall_btn.png</iconset>
</property> </property>
<property name="text"> <property name="text">
@ -509,7 +518,7 @@
</action> </action>
<action name="actionFonts_Package"> <action name="actionFonts_Package">
<property name="icon"> <property name="icon">
<iconset resource="rbutilqt.qrc"> <iconset>
<normaloff>:/icons/font_btn.png</normaloff>:/icons/font_btn.png</iconset> <normaloff>:/icons/font_btn.png</normaloff>:/icons/font_btn.png</iconset>
</property> </property>
<property name="text"> <property name="text">