]> git.mdlowis.com Git - proto/labwc.git/commit
theme: use 'labwc' directory
authorJohan Malm <jgm323@gmail.com>
Thu, 2 Jan 2025 20:40:41 +0000 (20:40 +0000)
committerJohan Malm <johanmalm@users.noreply.github.com>
Mon, 6 Jan 2025 20:15:26 +0000 (20:15 +0000)
commit8d9bd2d747d43c0fc61e9b51e2628323131f15e2
treeb6523d2eb60bf323decca5bff8be7cb0b63be752
parentcacf11fc90d48635d28c053a1dea986b00041db5
theme: use 'labwc' directory

as well as 'openbox-3', for example: /usr/share/themes/foo/labwc/themerc

Give 'labwc' higher precedence than 'openbox-3' if both exist.

For several reasons not all themes designed for labwc render well on
Openbox:

1. Labwc support some features like SVG/PNG icons and #rrggbbaa color
   definitions which Openbox does not.

2. Openbox generally defaults to black/white colors and will not render
   themes accurate without certain options specified in themerc. For
   example, in Openbox the following will just render as black:

       window.active.title.bg.color: #589bda

   ...because Openbox defaults the texture to "Gradient Vertical" and
   therefore either needs:

      window.active.title.bg.colorTo: #3c7cb7

   ...or remove 'Gradient' from the bg definition and just use something
   like:

      window.active.title.bg: Flat Border

Whilst none of this is a problem when using labwc, it causes problems for
setups with both Openbox and labwc because themes designed for labwc only
will now show up in obconf, lxappearance, etc causing confusion for users.
README.md
docs/labwc-theme.5.scd
include/theme.h
src/common/dir.c
src/theme.c