OMGDuke / protondb-decky

ProtonDB Badges is a plugin for Decky Loader to display tappable ProtonDB badges on your game pages
https://decky.xyz/
GNU General Public License v3.0
93 stars 10 forks source link

Add some indication that the the protonDB medal is selected. #7

Closed joamjoamjoam closed 2 years ago

joamjoamjoam commented 2 years ago

Its hard to see that the tier medal is selected since it has no UI change when "active".

The "active" element is any element with the classes gpfocus and gpfocuswithin.

Something simple will do like changing the opacity slightly using CSS.

This could easily be handled by using a CSS Loader Theme if you want it to be user configurable.

OMGDuke commented 2 years ago

Using Button from decky-frontend-lib now gives a border to the button when selected by gamepad

Unselected image

Selected image

This is now on main

joamjoamjoam commented 2 years ago

Border looks good

OMGDuke commented 2 years ago

An opacity/brightness change like you said might be good as well, Need to work out how to get .css files working with rollup so I can do that based on the .gpfocus class

joamjoamjoam commented 2 years ago

I asked the decky guys about this earlier and theu said loading external css files will be supported later. They said only inline was supported for now. Let me know if you find a workaround for it.