Improved Dark theme, search bar and icon theme (#830)

* Improved Dark theme, search bar and icon theme

* Update FR translation
This commit is contained in:
¥IGA 2024-09-08 22:39:48 +02:00 committed by GitHub
parent 446d8c4ff1
commit 9101bd7ad4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 34 additions and 33 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -8,13 +8,13 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
switch (theme) { switch (theme) {
case Theme::Dark: case Theme::Dark:
mw_searchbar->setStyleSheet("background-color: #1e1e1e; /* Dark background */" mw_searchbar->setStyleSheet("background-color: #1e1e1e;" // Dark background
"color: #ffffff; /* White text */" "color: #ffffff;" // White text
"border: 1px solid #ffffff; /* White border */" "border: 2px solid #ffffff;" // White border
"padding: 5px;"); "padding: 5px;");
themePalette.setColor(QPalette::Window, QColor(53, 53, 53)); themePalette.setColor(QPalette::Window, QColor(50, 50, 50));
themePalette.setColor(QPalette::WindowText, Qt::white); themePalette.setColor(QPalette::WindowText, Qt::white);
themePalette.setColor(QPalette::Base, QColor(25, 25, 25)); themePalette.setColor(QPalette::Base, QColor(20, 20, 20));
themePalette.setColor(QPalette::AlternateBase, QColor(25, 25, 25)); themePalette.setColor(QPalette::AlternateBase, QColor(25, 25, 25));
themePalette.setColor(QPalette::AlternateBase, QColor(53, 53, 53)); themePalette.setColor(QPalette::AlternateBase, QColor(53, 53, 53));
themePalette.setColor(QPalette::ToolTipBase, Qt::white); themePalette.setColor(QPalette::ToolTipBase, Qt::white);
@ -30,8 +30,9 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
break; break;
case Theme::Light: case Theme::Light:
mw_searchbar->setStyleSheet("background-color: #ffffff; /* Light gray background */" mw_searchbar->setStyleSheet("background-color: #ffffff;" // Light gray background
"color: #000000; /* Black text */" "color: #000000;" // Black text
"border: 2px solid #000000;" // Black border
"padding: 5px;"); "padding: 5px;");
themePalette.setColor(QPalette::Window, QColor(240, 240, 240)); // Light gray themePalette.setColor(QPalette::Window, QColor(240, 240, 240)); // Light gray
themePalette.setColor(QPalette::WindowText, Qt::black); // Black themePalette.setColor(QPalette::WindowText, Qt::black); // Black
@ -49,9 +50,9 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
break; break;
case Theme::Green: case Theme::Green:
mw_searchbar->setStyleSheet("background-color: #354535; /* Dark green background */" mw_searchbar->setStyleSheet("background-color: #1e1e1e;" // Dark background
"color: #ffffff; /* White text */" "color: #ffffff;" // White text
"border: 1px solid #ffffff; /* White border */" "border: 2px solid #ffffff;" // White border
"padding: 5px;"); "padding: 5px;");
themePalette.setColor(QPalette::Window, QColor(53, 69, 53)); // Dark green background themePalette.setColor(QPalette::Window, QColor(53, 69, 53)); // Dark green background
themePalette.setColor(QPalette::WindowText, Qt::white); // White text themePalette.setColor(QPalette::WindowText, Qt::white); // White text
@ -72,9 +73,9 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
break; break;
case Theme::Blue: case Theme::Blue:
mw_searchbar->setStyleSheet("background-color: #283c5a; /* Dark blue background */" mw_searchbar->setStyleSheet("background-color: #1e1e1e;" // Dark background
"color: #ffffff; /* White text */" "color: #ffffff;" // White text
"border: 1px solid #ffffff; /* White border */" "border: 2px solid #ffffff;" // White border
"padding: 5px;"); "padding: 5px;");
themePalette.setColor(QPalette::Window, QColor(40, 60, 90)); // Dark blue background themePalette.setColor(QPalette::Window, QColor(40, 60, 90)); // Dark blue background
themePalette.setColor(QPalette::WindowText, Qt::white); // White text themePalette.setColor(QPalette::WindowText, Qt::white); // White text
@ -95,9 +96,9 @@ void WindowThemes::SetWindowTheme(Theme theme, QLineEdit* mw_searchbar) {
break; break;
case Theme::Violet: case Theme::Violet:
mw_searchbar->setStyleSheet("background-color: #643278; /* Violet background */" mw_searchbar->setStyleSheet("background-color: #1e1e1e;" // Dark background
"color: #ffffff; /* White text */" "color: #ffffff;" // White text
"border: 1px solid #ffffff; /* White border */" "border: 2px solid #ffffff;" // White border
"padding: 5px;"); "padding: 5px;");
themePalette.setColor(QPalette::Window, QColor(100, 50, 120)); // Violet background themePalette.setColor(QPalette::Window, QColor(100, 50, 120)); // Violet background
themePalette.setColor(QPalette::WindowText, Qt::white); // White text themePalette.setColor(QPalette::WindowText, Qt::white); // White text

View file

@ -267,8 +267,8 @@ public:
menuView->addAction(menuGame_List_Mode->menuAction()); menuView->addAction(menuGame_List_Mode->menuAction());
menuView->addAction(menuGame_List_Icons->menuAction()); menuView->addAction(menuGame_List_Icons->menuAction());
menuView->addAction(menuThemes->menuAction()); menuView->addAction(menuThemes->menuAction());
menuThemes->addAction(setThemeLight);
menuThemes->addAction(setThemeDark); menuThemes->addAction(setThemeDark);
menuThemes->addAction(setThemeLight);
menuThemes->addAction(setThemeGreen); menuThemes->addAction(setThemeGreen);
menuThemes->addAction(setThemeBlue); menuThemes->addAction(setThemeBlue);
menuThemes->addAction(setThemeViolet); menuThemes->addAction(setThemeViolet);

View file

@ -21,7 +21,7 @@
<message> <message>
<location filename="../about_dialog.ui" line="99"/> <location filename="../about_dialog.ui" line="99"/>
<source>This software should not be used to play games you have not legally obtained.</source> <source>This software should not be used to play games you have not legally obtained.</source>
<translation>Ce logiciel ne doit pas être utilisé pour jouer à des jeux que vous n&apos;avez pas obtenus légalement.</translation> <translation>Ce logiciel ne doit pas être utilisé pour jouer à des jeux que vous n'avez pas obtenus légalement.</translation>
</message> </message>
</context> </context>
<context> <context>
@ -60,7 +60,7 @@
<message> <message>
<location filename="../game_install_dialog.cpp" line="31"/> <location filename="../game_install_dialog.cpp" line="31"/>
<source>Directory to install games</source> <source>Directory to install games</source>
<translation>Répertoire d&apos;installation des jeux</translation> <translation>Répertoire d'installation des jeux</translation>
</message> </message>
<message> <message>
<location filename="../game_install_dialog.cpp" line="50"/> <location filename="../game_install_dialog.cpp" line="50"/>
@ -75,7 +75,7 @@
<message> <message>
<location filename="../game_install_dialog.cpp" line="75"/> <location filename="../game_install_dialog.cpp" line="75"/>
<source>The value for location to install games is not valid.</source> <source>The value for location to install games is not valid.</source>
<translation>Le répertoire d'installation des jeux n&apos;est pas valide.</translation> <translation>Le répertoire d'installation des jeux n'est pas valide.</translation>
</message> </message>
</context> </context>
<context> <context>
@ -118,7 +118,7 @@
<message> <message>
<location filename="../gui_context_menus.h" line="61"/> <location filename="../gui_context_menus.h" line="61"/>
<source>Copy Serial</source> <source>Copy Serial</source>
<translation>Copier le numéro de série</translation> <translation>Copier le N° de série</translation>
</message> </message>
<message> <message>
<location filename="../gui_context_menus.h" line="62"/> <location filename="../gui_context_menus.h" line="62"/>
@ -201,7 +201,7 @@
<message> <message>
<location filename="../main_window_ui.h" line="327"/> <location filename="../main_window_ui.h" line="327"/>
<source>Exit the application.</source> <source>Exit the application.</source>
<translation>Fermer l&apos;application.</translation> <translation>Fermer l'application.</translation>
</message> </message>
<message> <message>
<location filename="../main_window_ui.h" line="330"/> <location filename="../main_window_ui.h" line="330"/>
@ -291,7 +291,7 @@
<message> <message>
<location filename="../main_window_ui.h" line="354"/> <location filename="../main_window_ui.h" line="354"/>
<source>Game List Mode</source> <source>Game List Mode</source>
<translation>Mode d&apos;affichage</translation> <translation>Mode d'affichage</translation>
</message> </message>
<message> <message>
<location filename="../main_window_ui.h" line="355"/> <location filename="../main_window_ui.h" line="355"/>
@ -301,7 +301,7 @@
<message> <message>
<location filename="../main_window_ui.h" line="356"/> <location filename="../main_window_ui.h" line="356"/>
<source>Utils</source> <source>Utils</source>
<translation>Utilitaire</translation> <translation>Utilitaires</translation>
</message> </message>
<message> <message>
<location filename="../main_window_ui.h" line="357"/> <location filename="../main_window_ui.h" line="357"/>
@ -316,12 +316,12 @@
<message> <message>
<location filename="../main_window_ui.h" line="359"/> <location filename="../main_window_ui.h" line="359"/>
<source>Dark</source> <source>Dark</source>
<translation>Noir</translation> <translation>Sombre</translation>
</message> </message>
<message> <message>
<location filename="../main_window_ui.h" line="360"/> <location filename="../main_window_ui.h" line="360"/>
<source>Light</source> <source>Light</source>
<translation>Blanc</translation> <translation>Clair</translation>
</message> </message>
<message> <message>
<location filename="../main_window_ui.h" line="361"/> <location filename="../main_window_ui.h" line="361"/>
@ -341,7 +341,7 @@
<message> <message>
<location filename="../main_window_ui.h" line="364"/> <location filename="../main_window_ui.h" line="364"/>
<source>toolBar</source> <source>toolBar</source>
<translation>Bare d&apos;outils</translation> <translation>Bare d'outils</translation>
</message> </message>
</context> </context>
<context> <context>
@ -385,7 +385,7 @@
<message> <message>
<location filename="../settings_dialog.ui" line="95"/> <location filename="../settings_dialog.ui" line="95"/>
<source>Emulator Language</source> <source>Emulator Language</source>
<translation>Langage de l&apos;émulateur</translation> <translation>Langage de l'émulateur</translation>
</message> </message>
<message> <message>
<location filename="../settings_dialog.ui" line="114"/> <location filename="../settings_dialog.ui" line="114"/>
@ -400,7 +400,7 @@
<message> <message>
<location filename="../settings_dialog.ui" line="129"/> <location filename="../settings_dialog.ui" line="129"/>
<source>Show Splash</source> <source>Show Splash</source>
<translation>Afficher l&apos;image du jeu</translation> <translation>Afficher l'image du jeu</translation>
</message> </message>
<message> <message>
<location filename="../settings_dialog.ui" line="136"/> <location filename="../settings_dialog.ui" line="136"/>
@ -410,7 +410,7 @@
<message> <message>
<location filename="../settings_dialog.ui" line="155"/> <location filename="../settings_dialog.ui" line="155"/>
<source>Username</source> <source>Username</source>
<translation>Nom d&apos;utilisateur</translation> <translation>Nom d'utilisateur</translation>
</message> </message>
<message> <message>
<location filename="../settings_dialog.ui" line="178"/> <location filename="../settings_dialog.ui" line="178"/>
@ -538,7 +538,7 @@
<message> <message>
<location filename="../main_window.cpp" line="392"/> <location filename="../main_window.cpp" line="392"/>
<source>All Patches available for all games have been downloaded.</source> <source>All Patches available for all games have been downloaded.</source>
<translation>Tous les patchs disponibles pour les jeux ont é téléchargés.</translation> <translation>Tous les patchs disponibles ont é téléchargés.</translation>
</message> </message>
<message> <message>
<location filename="../main_window.cpp" line="549"/> <location filename="../main_window.cpp" line="549"/>
@ -906,7 +906,7 @@
<message> <message>
<location filename="../cheats_patches.cpp" line="1163"/> <location filename="../cheats_patches.cpp" line="1163"/>
<source>Can't apply cheats before the game is started</source> <source>Can't apply cheats before the game is started</source>
<translation>Impossible d'appliquer les triches avant que le jeu ne commence.</translation> <translation>Impossible d'appliquer les Cheats avant que le jeu ne commence.</translation>
</message> </message>
</context> </context>
<context> <context>
@ -972,7 +972,7 @@
<message> <message>
<location filename="../game_list_frame.cpp" line="35"/> <location filename="../game_list_frame.cpp" line="35"/>
<source>Path</source> <source>Path</source>
<translation>Chemin</translation> <translation>Répertoire</translation>
</message> </message>
</context> </context>
</TS> </TS>