mirror of
https://github.com/labwc/labwc.git
synced 2026-02-09 10:07:31 -05:00
theme: finish titleLayout implementation (#2150)
Change Openbox style WLIMC syntax to `menu:iconify,max,close` as was agreed when PR #2088 was merged. <titlebar> <layout>menu:iconify,max,close</layout> <showTitle>yes|on</showTitle> </titlebar> Ref: - https://github.com/labwc/labwc/pull/2088#issuecomment-2295730704
This commit is contained in:
parent
04a145f89a
commit
cc26ac29b9
3 changed files with 140 additions and 52 deletions
|
|
@ -437,19 +437,24 @@ extending outward from the snapped edge.
|
|||
*<theme><name>*
|
||||
The name of the Openbox theme to use. It is not set by default.
|
||||
|
||||
*<theme><titleLayout>*
|
||||
*<theme><titlebar><layout>*
|
||||
Selection and order of buttons in a window's titlebar.
|
||||
The following letters can be used, each only once:
|
||||
- L: window label (aka. title)
|
||||
- |: empty space (can be used instead of a title)
|
||||
- W: window menu
|
||||
- I: iconify
|
||||
- M: maximize toggle
|
||||
- C: close
|
||||
- S: shade toggle
|
||||
- D: all-desktops toggle
|
||||
The following identifiers can be used, each only once:
|
||||
- 'menu': window menu
|
||||
- 'iconify': iconify
|
||||
- 'max': maximize toggle
|
||||
- 'close': close
|
||||
- 'shade': shade toggle
|
||||
- 'desk': all-desktops toggle
|
||||
|
||||
Example: WLIMC
|
||||
A colon deliminator is used to separate buttons on the left and right,
|
||||
whereas commas are used to separate items within a section. It is
|
||||
mandatory to use one colon.
|
||||
|
||||
Default: menu:iconify,max,close
|
||||
|
||||
*<theme><titlebar><showTitle>* [yes|no]
|
||||
Show the window title in the titlebar. Default is yes.
|
||||
|
||||
*<theme><cornerRadius>*
|
||||
The radius of server side decoration top corners. Default is 8.
|
||||
|
|
|
|||
|
|
@ -28,7 +28,10 @@
|
|||
<!-- <font><theme> can be defined without an attribute to set all places -->
|
||||
<theme>
|
||||
<name></name>
|
||||
<titleLayout>WLIMC</titleLayout>
|
||||
<titlebar>
|
||||
<layout>menu:iconify,max,close</layout>
|
||||
<showTitle>yes</showTitle>
|
||||
</titlebar>
|
||||
<cornerRadius>8</cornerRadius>
|
||||
<keepBorder>yes</keepBorder>
|
||||
<dropShadows>no</dropShadows>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue