workbenchdev / demos

Demos of GNOME technologies - GTK, libadwaita, CSS, portals, ...
Creative Commons Zero v1.0 Universal
11 stars 15 forks source link

Add Shortcuts Window demo #31

Open sonnyp opened 10 months ago

sonnyp commented 10 months ago

https://docs.gtk.org/gtk4/class.ShortcutsWindow.html

sonnyp commented 8 months ago

All demos should be available in JS So that's a good starting point.

Look at other similar demos are done such as Preferences Window

sonnyp commented 8 months ago

You can start in Python, but the demo won't be accepted unless it has a JavaScript version

imhemish commented 7 months ago

All demos should be available in JS So that's a good starting point.

Look at other similar demos are done such as Preferences Window

I don't get why this needs to be in JS, there is no dynamic functionality in Shortcuts Window. In my opinion, it should just be a pure blueprint implementation.

sonnyp commented 7 months ago

Because the demo needs a button to open the ShortcutsWindow

sonnyp commented 7 months ago

"Preferences Dialog" can be used as inspiration