]> git.mdlowis.com Git - proto/labwc.git/commit
ssd: support window icons
authortokyo4j <hrak1529@gmail.com>
Fri, 6 Sep 2024 08:00:40 +0000 (17:00 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Wed, 25 Sep 2024 09:04:09 +0000 (18:04 +0900)
commita745f911697b4877d0edb1bb9aec4f2ff3145d12
tree96f4df571009fc6f4634166b84bd82448bdc3645
parentb9414d8b8dc5d6e8a5123f0aea65dd13b1043ecc
ssd: support window icons

The default `titleLayout` is updated to `icon:iconify,max,close` which
replaces the window menu button with the window icon.

When the icon file is not found or could not be loaded, the window menu
icon as before is shown.

The icon theme can be selected with `<theme><icon>`.

This commit adds libsfdo as an optional dependency. `-Dicon=disabled` can
be passsed to `meson setup` command in order to disable window icon, in
which case the window icon is always replaced with a window menu button.
32 files changed:
docs/labwc-config.5.scd
docs/rc.xml.all
include/button/button-png.h [deleted file]
include/button/button-svg.h [deleted file]
include/button/button-xbm.h [deleted file]
include/button/common.h [deleted file]
include/config/default-bindings.h
include/config/rcxml.h
include/icon-loader.h [new file with mode: 0644]
include/img/img-png.h [new file with mode: 0644]
include/img/img-svg.h [new file with mode: 0644]
include/img/img-xbm.h [new file with mode: 0644]
include/labwc.h
include/ssd-internal.h
include/ssd.h
meson.build
meson_options.txt
src/button/common.c [deleted file]
src/config/mousebind.c
src/config/rcxml.c
src/icon-loader.c [new file with mode: 0644]
src/img/img-png.c [moved from src/button/button-png.c with 78% similarity]
src/img/img-svg.c [moved from src/button/button-svg.c with 85% similarity]
src/img/img-xbm.c [moved from src/button/button-xbm.c with 94% similarity]
src/img/meson.build [moved from src/button/meson.build with 52% similarity]
src/meson.build
src/server.c
src/ssd/ssd-part.c
src/ssd/ssd-titlebar.c
src/theme.c
src/view.c
subprojects/libsfdo.wrap [new file with mode: 0644]