qwertzuiopy,
@qwertzuiopy@mastodon.social avatar

I experimented a bit on a better filter UI for my DnD wiki program and the new Libadwaita dialogs are awesome!

bragefuglseth,
@bragefuglseth@fosstodon.org avatar

@qwertzuiopy Remember that you can use an AdwSpinRow instead of a row with a GtkSpinButton inside!

qwertzuiopy,
@qwertzuiopy@mastodon.social avatar

@bragefuglseth Is there a way to disable the SpinButton of a AdwSpinRow? Because for now I set the "sensitive" property of the GtkSpinButton seen in the picture based on the state of the switch in the same row.

bragefuglseth,
@bragefuglseth@fosstodon.org avatar

@qwertzuiopy I don't know.

qwertzuiopy,
@qwertzuiopy@mastodon.social avatar

@bragefuglseth Okay, so I got it to work: The AdwSpinRow disables the SpinButton automatically if the adjustment is set to null. Smart!

bragefuglseth,
@bragefuglseth@fosstodon.org avatar

@qwertzuiopy Cool! For the sake of alignment I'd place the switch on the end. Also, if it's unrealistic to have more than, say, 10 levels, I'd maybe change it to an AdwComboRow instead, containing a "None" option and levels from 1-10. Combining a switch and a spin in a row like that isn't a widely used pattern 😁

  • All
  • Subscribed
  • Moderated
  • Favorites
  • GNOME
  • Durango
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • osvaldo12
  • khanakhh
  • Youngstown
  • mdbf
  • slotface
  • rosin
  • everett
  • ngwrru68w68
  • kavyap
  • InstantRegret
  • JUstTest
  • GTA5RPClips
  • cubers
  • ethstaker
  • normalnudes
  • tacticalgear
  • cisconetworking
  • tester
  • Leos
  • modclub
  • megavids
  • provamag3
  • anitta
  • lostlight
  • All magazines