Gui: Adding Pause button working, full screen button and labels to buttons on main window gui#2634
Conversation
|
Looks excessive to me, maybe it would be better to implement the labels as tooltips? |
This comment was marked as abuse.
This comment was marked as abuse.
|
Just a suggestion, it would eliminate the need to adjust the position of the text as it looks kinda wobbly atm. Also I'd wait for Daniel, GHU7924 or rainmakerv3 as they are more knowledgeable on UI side of things |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
|
That seems better, let's wait for the others to discuss |
This comment was marked as abuse.
This comment was marked as abuse.
|
Looks good I think aside from the tooltip text color. I think you intend for it to change dynamically based on the theme color but that code is actually just going to set the tooltip text to be either always black or always white depending on what the window color is prior to applying any themes. An easy fix would be to change the stylesheets where tooltip text color is the same tooltip background color (most of them have that mistake weirdly enough) and remove the blanket text color change. or i suppose just hardcode a tooltip base color and tooltip text color for everything like whats done for the compatibility tooltips, but I don't think it should just be text color that has a blanket color change Also probably should be made translateable |
|
I described how I see improvements for the toolbar here #2501 (comment). As for the tooltips, on the contrary, we kind of got rid of them... @DanielSvoboda has already tried the implementation of labels under the buttons in test mode. P.S. Personally, I'm in favor of the labels under the buttons, but as an optional feature. |
|
Yes, I had tried to do the same, but it doesn't line up, as commented here: #2501 (comment) Using ToolTip seems to me to be the best solution at the moment. As already mentioned, it is necessary to add the translation to these texts, it can be done like this for example: ui->playButton->setToolTip(
QString("<span style='color:%1;'><b>%2</b></span>").arg(textColor).arg(tr("Play")));If possible, add the text in en_US.ts "< name>MainWindow</ name>", if not, the BOT will do it later by opening a separate PR |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
Yes, so that the game window switches from the "Windowed" state to "Fullscreen", as if the |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
|
looking at this quickly, initial thoughts are that there's another sdl event loop added which is probably not ideal, I'm not sure pausing guest threads is what they would want outside the debug menu (though the other devs can comment on that better), and the label options aren't savable right now. |
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
This comment was marked as abuse.
… needed of debug menu
…nd adding margins
…ttons on main window gui (shadps4-emu#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









Adding labels to gui buttons and other Gui improvements
#2441