From d148afca3ba07b273525829781ee703f2197738a Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Tue, 8 Dec 2020 21:53:05 +0100 Subject: [PATCH] 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 --- rbutil/rbutilqt/rbutilqtfrm.ui | 37 +++++++++++++++++++++------------- 1 file 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 @@ - - - 0 - 0 - + + + 200 + 62 + + + + + 200 + 62 + - 0 - 0 + 200 + 62 - :/icons/rblogo.png + :/icons/rockbox-logo.svg - false + true + + + Qt::AlignCenter @@ -473,7 +482,7 @@ - + :/icons/bootloader_btn.png:/icons/bootloader_btn.png @@ -482,7 +491,7 @@ - + :/icons/rbinstall_btn.png:/icons/rbinstall_btn.png @@ -491,7 +500,7 @@ - + :/icons/bootloader_btn.png:/icons/bootloader_btn.png @@ -500,7 +509,7 @@ - + :/icons/rbinstall_btn.png:/icons/rbinstall_btn.png @@ -509,7 +518,7 @@ - + :/icons/font_btn.png:/icons/font_btn.png