osd: add osd.window-switcher.item.icon.size

This allows users to make the icon in window switcher bigger (or smaller)
than the font size, which enables more Openbox-like appearance.

Example configuration:
  osd.window-switcher.item.icon.size: 50

This commit also makes the icon smaller than the font size if the width
allocated with <windowSwitcher><fields><field width=""> is smaller than
that.
This commit is contained in:
tokyo4j 2025-04-01 16:53:15 +09:00 committed by Johan Malm
parent d8bd8c5a3e
commit 6a04c5f0dd
5 changed files with 28 additions and 4 deletions

View file

@ -89,6 +89,8 @@ osd.window-switcher.padding: 4
osd.window-switcher.item.padding.x: 10
osd.window-switcher.item.padding.y: 1
osd.window-switcher.item.active.border.width: 2
# The icon size the same as the font size by default
# osd.window-switcher.item.icon.size: 50
osd.window-switcher.preview.border.width: 1
osd.window-switcher.preview.border.color: #dddda6,#000000,#dddda6