elkowar / eww

ElKowars wacky widgets
https://elkowar.github.io/eww
MIT License
9.02k stars 371 forks source link

[FEATURE] Syntax for not stretching widget if contents are too big? #123

Open Swexti opened 3 years ago

Swexti commented 3 years ago

Description of the requested feature

Basically, whenever i make some content in eww too big for the box, eww streches the box to make it fit, is it possible to implement so that this does not happen? Just like polybar, it renders it, but outside of the visible area.

Proposed configuration syntax

<box strechable="false">?

Additional context

Just like polybar

undefinedDarkness commented 3 years ago

In normal CSS, you could do overflow: hidden, but I'm not sure how you do it in GTK ಠ_ಠ

elkowar commented 3 years ago

yea i fear GTK makes this really hard. generally, i really want to provide this, but I haven't yet figured out a way how.

Animeshz commented 2 years ago

https://gitlab.gnome.org/GNOME/gtk/-/issues/3012 https://people.gnome.org/~ebassi/docs/_build/Gtk/4.0/property.Widget.overflow.html

Seems like GTK does support it, but programmatically & not with css.

elkowar commented 2 years ago

Yea, specifically it seems to imply that a widget can set the overflow property - meaning it can't really be set from the outside at all, at least not without possibly fucking with the widgets internal behaviour

NotMurPh commented 5 months ago

any updates on this ?

undefinedDarkness commented 5 months ago

Unfortunately not yet, its hard to find a solution in GTK that works across every widget