]> git.mdlowis.com Git - proto/labwc.git/commit
theme: use max_toggled_hover.xbm
authorJohan Malm <jgm323@gmail.com>
Sat, 9 Dec 2023 19:37:35 +0000 (19:37 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sat, 9 Dec 2023 21:19:23 +0000 (22:19 +0100)
commit393f8fadab723e3309629d64e44afbe394ee029a
tree9dafb6d407d524b5fd599e4fccf784b1967746ed
parentaef39a238c0c608c123c0fafe7449ad784e593f8
theme: use max_toggled_hover.xbm

...and treat max_hover_toggled.xbm as an alternative name supported for
compatibility reasons.

Use the following button filename schema: "BUTTON [TOGGLED] [STATE]"
with the words separted by underscore and with the following meaning:
  - BUTTON can be one of 'max', 'iconify', 'close', 'menu'
  - TOGGLED is either 'toggled' or nothing
  - STATE is 'hover' or nothing.

This is consistent with the openbox.org wiki and it is believed that this
is how the vast majority of extant openbox themes out there are written.

But please be aware that it is actually different to vanilla Openbox which
uses: "BUTTON [STATE] [TOGGLED]" following a commit in 2014 which broke
themes and led to some distros patching Openbox:
https://github.com/danakj/openbox/commit/35e92e4c2a45b28d5c2c9b44b64aeb4222098c94

Arch Linux and Debian patch Openbox to keep the old syntax (the one that
this commit aligns us with).
https://gitlab.archlinux.org/archlinux/packaging/packages/openbox/-/blob/main/debian-887908.patch?ref_type=heads
docs/labwc-theme.5.scd
src/theme.c