Remove rounded corners decoration for app-notification
class (original) (raw)
December 15, 2024, 1:20pm 1
Is any option/subclass to remove rounded corners decoration for app-notification
class?
alicem (Alice Mikhaylenko) December 15, 2024, 4:36pm 2
No, of course not. Especially when it’s deprecated and no new app should touch it.
d47081 (D47081) December 16, 2024, 10:28am 3
Thanks for info, could you explain please what to use instead?
Surprised that app-notification
is deprecated
UPD found osd - is deprecated also?
gwillems December 16, 2024, 11:28am 4
Libadwaita recommends using AdwToasts as replacement of custom-made widgets using the app-notification style.
OSD is still supported but for other purposes (overlaid controls) than notifications.
To summarize:
- for notifications, prefer AdwToasts
- for overlaid controls, look at the
.osd
style - for other usecases, consider using a custom style
d47081 (D47081)
December 16, 2024, 11:34am 5
Thanks, I’ve tried AdwToasts
but seems custom child widgets not supported there, like forms:
Just replaced app-notification
with osd
and now have another problem - it’s large text Entry
is any option to make it height regular? maybe some class exist because can’t find in docs
gwillems December 16, 2024, 11:37am 6
have you tried setting the entry’s property valign=CENTER?
d47081 (D47081) December 16, 2024, 11:38am 7
Cool! valign=CENTER
works, thank you much!!
alicem (Alice Mikhaylenko) December 16, 2024, 12:19pm 8
Thanks for info, could you explain please what to use instead?
Surprised thatapp-notification
is deprecated
The docs you linked to literally explain it.
As for what you’re doing - GtkSearchBar
.
alicem (Alice Mikhaylenko) December 16, 2024, 12:20pm 9
Oh, btw - .osd is also getting deprecated this cycle because of legibility issues.
d47081 (D47081) December 18, 2024, 6:52am 10
Hm, thanks for GtkSearchBar
alternative (there’s GtkRevealer
could be useful also) but I want to keep current widget with it behavior as is, just apply dark color by CSS class from Adwaita asset. Is any option for that?
alicem (Alice Mikhaylenko) December 18, 2024, 11:34am 11
I mean as usual - no one can stop you from using things in ways they aren’t supposed to, but also no one is gonna provide support when they break.
system (system) Closed January 17, 2025, 11:34am 12
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.