From 5fa7a8a53825ec4b760f834fd543054b8b2e42db Mon Sep 17 00:00:00 2001 From: Matteo Paonessa Date: Wed, 23 Oct 2024 08:07:37 +0200 Subject: [PATCH] UI tweaks for dark theme --- Info.plist | 4 +-- resources/icons.rc | 4 +-- resources/icons/ui/chevron_down.svg | 4 +++ resources/icons/ui/chevron_up.svg | 4 +++ resources/resources.qrc | 50 +++++++++++++++-------------- setup.iss | 2 +- src/main.cpp | 4 +-- views/MainWindow.ui | 4 +-- 8 files changed, 43 insertions(+), 33 deletions(-) create mode 100644 resources/icons/ui/chevron_down.svg create mode 100644 resources/icons/ui/chevron_up.svg diff --git a/Info.plist b/Info.plist index fc3a8a05..f200ebd7 100644 --- a/Info.plist +++ b/Info.plist @@ -19,9 +19,9 @@ NSSupportsAutomaticGraphicsSwitching CFBundleShortVersionString - 2.7.2 + 2.8.0 CFBundleVersion - 2.7.2 + 2.8.0 SUFeedURL https://saerasoft.com/repository/com.saerasoft.caesium/osx/appcast.xml SUEnableAutomaticChecks diff --git a/resources/icons.rc b/resources/icons.rc index 2f3d40e0..e889ef26 100644 --- a/resources/icons.rc +++ b/resources/icons.rc @@ -4,7 +4,7 @@ IDI_ICON1 ICON "icons/icon.ico" 1 VERSIONINFO FILEVERSION 1,0,0,0 - PRODUCTVERSION 2,7,2,0 + PRODUCTVERSION 2,8,0,0 BEGIN BLOCK "StringFileInfo" BEGIN @@ -15,7 +15,7 @@ BEGIN VALUE "FileVersion", "1.0.0\0" VALUE "InternalName", "Cs-133\0" VALUE "ProductName", "Caesium Image Compressor\0" - VALUE "ProductVersion", "2.7.2\0" + VALUE "ProductVersion", "2.8.0\0" END END diff --git a/resources/icons/ui/chevron_down.svg b/resources/icons/ui/chevron_down.svg new file mode 100644 index 00000000..0fe15a3d --- /dev/null +++ b/resources/icons/ui/chevron_down.svg @@ -0,0 +1,4 @@ + + + \ No newline at end of file diff --git a/resources/icons/ui/chevron_up.svg b/resources/icons/ui/chevron_up.svg new file mode 100644 index 00000000..cb74f18c --- /dev/null +++ b/resources/icons/ui/chevron_up.svg @@ -0,0 +1,4 @@ + + + \ No newline at end of file diff --git a/resources/resources.qrc b/resources/resources.qrc index 6474d94f..adafe51a 100644 --- a/resources/resources.qrc +++ b/resources/resources.qrc @@ -1,26 +1,28 @@ - - icons/logo.png - icons/logo_mono.png - icons/compression_statuses/compressed.svg - icons/compression_statuses/uncompressed.svg - icons/compression_statuses/compressing.svg - icons/compression_statuses/error.svg - icons/ui/language.svg - icons/ui/settings.svg - ssl/win_dsa_pub.pem - icons/compression_statuses/warning.svg - icons/ui/add_files.svg - icons/ui/add_folder.svg - icons/ui/donate.svg - icons/ui/preferences.svg - icons/ui/remove.svg - icons/ui/trash.svg - icons/ui/compress.svg - icons/ui/preview.svg - icons/ui/help.svg - icons/ui/loader.webp - icons/ui/v_handle.png - icons/ui/h_handle.png - + + icons/ui/chevron_down.svg + icons/ui/chevron_up.svg + icons/logo.png + icons/logo_mono.png + icons/compression_statuses/compressed.svg + icons/compression_statuses/uncompressed.svg + icons/compression_statuses/compressing.svg + icons/compression_statuses/error.svg + icons/ui/language.svg + icons/ui/settings.svg + ssl/win_dsa_pub.pem + icons/compression_statuses/warning.svg + icons/ui/add_files.svg + icons/ui/add_folder.svg + icons/ui/donate.svg + icons/ui/preferences.svg + icons/ui/remove.svg + icons/ui/trash.svg + icons/ui/compress.svg + icons/ui/preview.svg + icons/ui/help.svg + icons/ui/loader.webp + icons/ui/v_handle.png + icons/ui/h_handle.png + diff --git a/setup.iss b/setup.iss index 38727743..6d14b8bb 100644 --- a/setup.iss +++ b/setup.iss @@ -2,7 +2,7 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "Caesium Image Compressor" -#define MyAppVersion "2.7.2" +#define MyAppVersion "2.8.0" #define MyAppPublisher "SaeraSoft" #define MyAppURL "https://saerasoft.com/caesium" #define MyAppExeName "Caesium Image Compressor.exe" diff --git a/src/main.cpp b/src/main.cpp index 8fc58c40..5b47b385 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -30,7 +30,7 @@ void loadTheme(QApplication& a) #ifdef Q_OS_WIN if (themeIndex == 0) { - a.setStyleSheet("QSplitter::handle:horizontal{image:url(:/icons/ui/v_handle.png);}QSplitter::handle:vertical{image:url(:/icons/ui/h_handle.png);}QStatusBar::item{border: none;}"); + a.setStyleSheet("QSplitter::handle:horizontal{image:url(:/icons/ui/v_handle.png);}QSplitter::handle:vertical{image:url(:/icons/ui/h_handle.png);}QStatusBar::item{border: none;}QHeaderView::up-arrow{image: url(:/icons/ui/chevron_up.svg);width: 16px;height:16px;}QHeaderView::down-arrow{image: url(:/icons/ui/chevron_down.svg);width: 16px;height:16px;}"); } #endif @@ -74,7 +74,7 @@ int main(int argc, char* argv[]) QCoreApplication::setOrganizationName("SaeraSoft"); QCoreApplication::setOrganizationDomain("saerasoft.com"); QCoreApplication::setApplicationName("Caesium Image Compressor"); - QCoreApplication::setApplicationVersion("2.7.2"); + QCoreApplication::setApplicationVersion("2.8.0"); #ifdef NDEBUG qInstallMessageHandler(Logger::messageHandler); diff --git a/views/MainWindow.ui b/views/MainWindow.ui index d2142d36..275214ea 100644 --- a/views/MainWindow.ui +++ b/views/MainWindow.ui @@ -12,8 +12,8 @@ - 800 - 600 + 500 + 500