-
-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Render SelectFields as MUI Selects #4059
base: main
Are you sure you want to change the base?
Commits on Dec 1, 2024
-
Render SelectFields as MUI Selects
This renders most drop-down selection prompts inside Heroic. In turn, these dropdowns now work inside the Gamescope session. Current issues: - Controller navigation does not work, hitting "Down" opens the dropdown, with no way to navigate further down to other components - There is a black box in the top-left of the component, where the label should be
Configuration menu - View commit details
-
Copy full SHA for e9a5931 - Browse repository at this point
Copy the full SHA e9a5931View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae6f01c - Browse repository at this point
Copy the full SHA ae6f01cView commit details -
Configuration menu - View commit details
-
Copy full SHA for dc992b3 - Browse repository at this point
Copy the full SHA dc992b3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2766277 - Browse repository at this point
Copy the full SHA 2766277View commit details -
Configuration menu - View commit details
-
Copy full SHA for 120d4cc - Browse repository at this point
Copy the full SHA 120d4ccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 39ede5e - Browse repository at this point
Copy the full SHA 39ede5eView commit details -
Configuration menu - View commit details
-
Copy full SHA for eb4d94b - Browse repository at this point
Copy the full SHA eb4d94bView commit details -
Hide black box using MUI
sx
propMUI CSS class names are not stable, they cannot be used like this
Configuration menu - View commit details
-
Copy full SHA for efa634c - Browse repository at this point
Copy the full SHA efa634cView commit details -
Hide 2nd arrow with
sx
as wellI prefer to use this over CSS rules in a separate file since it can sometimes be unclear where "the magic happens". Having layout and style together is clearer IMO
Configuration menu - View commit details
-
Copy full SHA for 0186309 - Browse repository at this point
Copy the full SHA 0186309View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6df69d4 - Browse repository at this point
Copy the full SHA 6df69d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ddc7bf1 - Browse repository at this point
Copy the full SHA ddc7bf1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f1be93 - Browse repository at this point
Copy the full SHA 3f1be93View commit details -
Use MUI Dialogs to render our Dialogs
This will definitely break things, but it makes selects work
Configuration menu - View commit details
-
Copy full SHA for 938ee99 - Browse repository at this point
Copy the full SHA 938ee99View commit details -
Controller navigation fixes, part 1
Navigating "over" selects now works This is done by simulating Tab/Shift-Tab key presses when pressing the respective buttons while focussing a MUI select element I've gone ahead and removed our home-grown `GamepadInputEvent` type, as it's just a lesser version of Electron's input events
Configuration menu - View commit details
-
Copy full SHA for 828571b - Browse repository at this point
Copy the full SHA 828571bView commit details -
Controller navigation fixes, part 2
This makes dialogs closeable with the back button again
Configuration menu - View commit details
-
Copy full SHA for 7918e00 - Browse repository at this point
Copy the full SHA 7918e00View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d5ab0e - Browse repository at this point
Copy the full SHA 0d5ab0eView commit details -
Controller navigation hacks: Transferring focus
Restoring the focussed element on dialog close is already handled by MUI, we don't need this code ourselves Moving focus on dialog open *should* work automatically as well, however it doesn't. I've tried various methods with element properties and JS, nothing seems to work. As a band-aid fix for now, we simulate 1-2 tab presses to focus the dialog content
Configuration menu - View commit details
-
Copy full SHA for e88d290 - Browse repository at this point
Copy the full SHA e88d290View commit details -
Controller navigation fixes, part 3
Closing selects with the B/Circle button
Configuration menu - View commit details
-
Copy full SHA for 8f241cd - Browse repository at this point
Copy the full SHA 8f241cdView commit details -
Fix theme selector empty when not specifically having selected a theme
MUI treats an empty value as "don't show anything selected", while native selects show the first option
Configuration menu - View commit details
-
Copy full SHA for 45a8bd2 - Browse repository at this point
Copy the full SHA 45a8bd2View commit details -
Configuration menu - View commit details
-
Copy full SHA for f327b2a - Browse repository at this point
Copy the full SHA f327b2aView commit details