mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-24 19:36:17 +00:00
Gui: Adding Pause button working, full screen button and labels to buttons on main window gui (#2634)
* Adding names to gui buttoms and adjusting spacing. * moving refresh button to last slot. * Changing the implementation to tooltips for hover over them - qstring to detect background color. * Fixing some themes with inverted tooltip base * Suggestions / Fixes - Pause and FullScreen Buttons * Update REUSE.toml * cleaning up * Icons stuff * clang * Buttons toggle - Cleaning code - Fixing Icons * cleaning boolean * Toggle pause and play icons and label to "Resume" when paused. * Simplifying the toggles. * New icons and final Push to review * Reuse * Icon rename, adding f9 press for pause game when no gui is on without needed of debug menu * clang + reuse * clang dosent work on this part * again Clang * Last fix for review. Light theme white resume icon fix. * Proper fix for Resume icon * New Rebase * Fixed Orientation with docking issues and cleaning boxlayout code * Adding spacer to separate actions, sizeslider on top of search bar. And adding margins * Fixed Background not showing on OLED Theme * Fixing check marks * Adding all Daniel Suggestions and fixed F9 not working with debug menu open. * Clang * reverting all OLED theme changes * Final suggestions
This commit is contained in:
parent
5caab76a45
commit
ae2c9a745e
21 changed files with 324 additions and 91 deletions
|
@ -20,6 +20,7 @@ public:
|
|||
QAction* setIconSizeSmallAct;
|
||||
QAction* setIconSizeMediumAct;
|
||||
QAction* setIconSizeLargeAct;
|
||||
QAction* toggleLabelsAct;
|
||||
QAction* setlistModeListAct;
|
||||
QAction* setlistModeGridAct;
|
||||
QAction* setlistElfAct;
|
||||
|
@ -50,6 +51,8 @@ public:
|
|||
QPushButton* settingsButton;
|
||||
QPushButton* controllerButton;
|
||||
QPushButton* keyboardButton;
|
||||
QPushButton* fullscreenButton;
|
||||
QPushButton* restartButton;
|
||||
|
||||
QWidget* sizeSliderContainer;
|
||||
QHBoxLayout* sizeSliderContainer_layout;
|
||||
|
@ -104,7 +107,15 @@ public:
|
|||
showGameListAct->setCheckable(true);
|
||||
refreshGameListAct = new QAction(MainWindow);
|
||||
refreshGameListAct->setObjectName("refreshGameListAct");
|
||||
refreshGameListAct->setIcon(QIcon(":images/refresh_icon.png"));
|
||||
refreshGameListAct->setIcon(QIcon(":images/refreshlist_icon.png"));
|
||||
|
||||
toggleLabelsAct = new QAction(MainWindow);
|
||||
toggleLabelsAct->setObjectName("toggleLabelsAct");
|
||||
toggleLabelsAct->setText(
|
||||
QCoreApplication::translate("MainWindow", "Show Labels Under Icons"));
|
||||
toggleLabelsAct->setCheckable(true);
|
||||
toggleLabelsAct->setChecked(Config::getShowLabelsUnderIcons());
|
||||
|
||||
setIconSizeTinyAct = new QAction(MainWindow);
|
||||
setIconSizeTinyAct->setObjectName("setIconSizeTinyAct");
|
||||
setIconSizeTinyAct->setCheckable(true);
|
||||
|
@ -210,20 +221,28 @@ public:
|
|||
stopButton->setIconSize(QSize(40, 40));
|
||||
refreshButton = new QPushButton(centralWidget);
|
||||
refreshButton->setFlat(true);
|
||||
refreshButton->setIcon(QIcon(":images/refresh_icon.png"));
|
||||
refreshButton->setIconSize(QSize(32, 32));
|
||||
refreshButton->setIcon(QIcon(":images/refreshlist_icon.png"));
|
||||
refreshButton->setIconSize(QSize(40, 40));
|
||||
fullscreenButton = new QPushButton(centralWidget);
|
||||
fullscreenButton->setFlat(true);
|
||||
fullscreenButton->setIcon(QIcon(":images/fullscreen_icon.png"));
|
||||
fullscreenButton->setIconSize(QSize(38, 38));
|
||||
settingsButton = new QPushButton(centralWidget);
|
||||
settingsButton->setFlat(true);
|
||||
settingsButton->setIcon(QIcon(":images/settings_icon.png"));
|
||||
settingsButton->setIconSize(QSize(44, 44));
|
||||
settingsButton->setIconSize(QSize(40, 40));
|
||||
controllerButton = new QPushButton(centralWidget);
|
||||
controllerButton->setFlat(true);
|
||||
controllerButton->setIcon(QIcon(":images/controller_icon.png"));
|
||||
controllerButton->setIconSize(QSize(40, 40));
|
||||
controllerButton->setIconSize(QSize(55, 48));
|
||||
keyboardButton = new QPushButton(centralWidget);
|
||||
keyboardButton->setFlat(true);
|
||||
keyboardButton->setIcon(QIcon(":images/keyboard_icon.png"));
|
||||
keyboardButton->setIconSize(QSize(48, 44));
|
||||
keyboardButton->setIconSize(QSize(50, 50));
|
||||
restartButton = new QPushButton(centralWidget);
|
||||
restartButton->setFlat(true);
|
||||
restartButton->setIcon(QIcon(":images/restart_game_icon.png"));
|
||||
restartButton->setIconSize(QSize(40, 40));
|
||||
|
||||
sizeSliderContainer = new QWidget(centralWidget);
|
||||
sizeSliderContainer->setObjectName("sizeSliderContainer");
|
||||
|
@ -304,6 +323,7 @@ public:
|
|||
menuView->addAction(refreshGameListAct);
|
||||
menuView->addAction(menuGame_List_Mode->menuAction());
|
||||
menuView->addAction(menuGame_List_Icons->menuAction());
|
||||
menuView->addAction(toggleLabelsAct);
|
||||
menuView->addAction(menuThemes->menuAction());
|
||||
menuThemes->addAction(setThemeDark);
|
||||
menuThemes->addAction(setThemeLight);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue