mirror of
https://github.com/swaywm/sway.git
synced 2026-06-13 14:33:19 -04:00
Drops the in-tree icon theme parser and lookup logic in favor of libsfdo-icon, which implements the icon theme spec. Absolute icon paths are handled in swaybar itself with an access() probe, since libsfdo intentionally doesn't deal with them. Pixmap fallback still kicks in if load_image() fails on the absolute path. KDE's IconThemePath is honored via sfdo_icon_theme_load_from() with a per-SNI override theme that gets dropped when the property changes. The min/max size cache per SNI is replaced by re-lookup when the rendered size changes; libsfdo caches the parsed theme internally and reads gtk's icon-theme.cache files, so this is cheap. Theme switching at runtime is preserved via a new tray_reload_icon_theme() called from parse_bar_config(). The old code worked here implicitly because all themes were preloaded. Closes: https://github.com/swaywm/sway/issues/8607
38 lines
729 B
YAML
38 lines
729 B
YAML
image: archlinux
|
|
packages:
|
|
- cairo
|
|
- gdk-pixbuf2
|
|
- json-c
|
|
- lcms2
|
|
- libdisplay-info
|
|
- libegl
|
|
- libinput
|
|
- libsfdo
|
|
- libxcb
|
|
- libxkbcommon
|
|
- meson
|
|
- pango
|
|
- pcre2
|
|
- scdoc
|
|
- wayland
|
|
- wayland-protocols
|
|
- xcb-util-image
|
|
- xcb-util-wm
|
|
- xorg-xwayland
|
|
- seatd
|
|
- hwdata
|
|
sources:
|
|
- https://github.com/swaywm/sway
|
|
- https://gitlab.freedesktop.org/wlroots/wlroots.git
|
|
tasks:
|
|
- wlroots: |
|
|
cd wlroots
|
|
meson setup --prefix=/usr build -Dexamples=false
|
|
ninja -C build
|
|
sudo ninja -C build install
|
|
- setup: |
|
|
cd sway
|
|
meson setup build --fatal-meson-warnings -Dauto_features=enabled -Dsd-bus-provider=libsystemd
|
|
- build: |
|
|
cd sway
|
|
ninja -C build
|