Aylur / ags

A customizable and extensible shell
GNU General Public License v3.0
1.74k stars 95 forks source link

Missing inverted property for Widget.Slider. #394

Closed minhnbnt closed 2 months ago

minhnbnt commented 2 months ago

In eww, there is flipped property which allows rotating the scale to reverse its direction.

(defwidget metric [value onchange class]
    (box :orientation "v"
         :class class
         :halign "center"
         (scale :min 0
                    :max 101
                :orientation "v"
                :flipped true ; HERE
                :value value
                :onchange onchange)))

How can I get the same functionality in ags?

Aylur commented 2 months ago

you are looking for inverted: true https://gjs-docs.gnome.org/gtk30~3.0/gtk.range#property-inverted