* Add changelog entry for transform-origin-properties
* Implement explicitly setting a center of rotation
The transform-Widget provides "rotate" to rotate its child. However, the
default center of rotation is (0, 0) (aka top-left), so it was not
possible to, for example, rotate a child in-place.
This commit implements the additional options `transform-origin-x` and
`transform-origin-y`. Both are optional, and the default value is 0.0 for
each, so previous configurations should produce the same results.
* Fix: transform order should be rotate->translate->scale
* add `EWW_BATTERY` support in (free|open|net)bsd
* add `EWW_BATTERY` support in (free|open|net)bsd
---------
Co-authored-by: ElKowar <dev@elkowar.dev>
* Add scss support for the ':style' widget property
* Add changelog entry for the scss support for the ':style' property
---------
Co-authored-by: ElKowar <dev@elkowar.dev>
* fix!: eliminate some dead code
* fix: fix lints
Combined diff of a7a09ea192 and bfc5cb9cb0
Co-authored-by: Johan Geluk <johan@geluk.io>
* fix: remove unnecessary allow; fix capitalization
* chore: automatically update a few dependencies
* fix: fix lint
i introduced this in #1119, whoops
* docs: move #1132's changelog entry
---------
Co-authored-by: Johan Geluk <johan@geluk.io>
* Fix: EWW_NET wrong values for TX/RX stats
The sysinfo crate, structure Networks, basically caches one value of
total_received/total_transmitted each (as well as other metrics) and
returns the difference between those two values when queried via the
`received()` and `transmitted()` functions.
These values are updated by both the `refresh()` and `refresh_list()`
functions; so by calling both of them right after each other like
previously done here, sets both the cached total_received/... and the
current total_received/... to nearly the same value.
`refresh_list()` also updates the list of interfaces on a host, with a
marginally small performance impact for doing so (I measured slightly
more than 100 microseconds on my machine (0.1 milliseconds), around
20-25% more than with `refresh()`), especially considering this is run
only every 2 seconds.
* Add changelog entry for the EWW_NET bugfix
Add a new :icon property which allows using icons from the currently
selected theme. For completeness, add :icon-size as well. As a nice
extra, GTK automatically makes such images follow the selected icon
theme.
* added basic get_env function to yuck
* added get_env to changelog
* added get_env to docs
* changed key to string in doc
* changed suggested code
* credit myself in CHANGELOG.md
* Allow window definitions to have parameters
* Implement SimplExpr for all other window definition options
* Take gtk scaling into account when setting struts
* Cleanup
* Rename window_argumentss to instance_id_to_args
* Update docs to emphasis window arguments being constant
* Replace eww windows with active-windows and list-windows
* Fix extracting duration from string
* Format + reduce warnings
---------
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
feat: `truncate-left` for labels
Adds a flag that allows truncation to the left of text
---------
Co-authored-by: kawaki-san <dev@kanjala.com>
Co-authored-by: elkowar <5300871+elkowar@users.noreply.github.com>
* Add support for null safe indexing e.g. for arrays
This follows the JavaScript syntax:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining#syntax
* add docs
* Add test for safe access index to non indexable
Co-authored-by: Josiah Hilden <jhilden13@gmail.com>
Co-authored-by: Josiah Hilden <jhilden13@gmail.com>
Co-authored-by: ElKowar <5300871+elkowar@users.noreply.github.com>