mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
action: rename "omnipresent" button options for Openbox compatibility
- Mouse context "Omnipresent" -> "AllDesktops" - Theme elements "window.*.button.omnipresent" -> "window.*.button.desk" - Update documentation accordingly
This commit is contained in:
parent
dda47a5e14
commit
1bcaf8255f
6 changed files with 22 additions and 16 deletions
|
|
@ -439,10 +439,10 @@ extending outward from the snapped edge.
|
||||||
- |: empty space (can be used instead of a title)
|
- |: empty space (can be used instead of a title)
|
||||||
- W: window menu
|
- W: window menu
|
||||||
- I: iconify
|
- I: iconify
|
||||||
- M: maximize
|
- M: maximize toggle
|
||||||
- C: close
|
- C: close
|
||||||
- S: shade
|
- S: shade toggle
|
||||||
- D: omnipresent
|
- D: all-desktops toggle
|
||||||
|
|
||||||
Example: WLIMC
|
Example: WLIMC
|
||||||
|
|
||||||
|
|
@ -618,7 +618,7 @@ extending outward from the snapped edge.
|
||||||
- Iconify: A button that, by default, iconifies a window.
|
- Iconify: A button that, by default, iconifies a window.
|
||||||
- Maximize: A button that, by default, toggles maximization of a window.
|
- Maximize: A button that, by default, toggles maximization of a window.
|
||||||
- Shade: A button that, by default, toggles window shading.
|
- Shade: A button that, by default, toggles window shading.
|
||||||
- Omnipresent: A button that, by default, toggles omnipresence of a window.
|
- AllDesktops: A button that, by default, toggles omnipresence of a window.
|
||||||
- Close: A button that, by default, closses a window.
|
- Close: A button that, by default, closses a window.
|
||||||
- Top: The top edge of the window's border.
|
- Top: The top edge of the window's border.
|
||||||
- Bottom: The bottom edge of the window's border.
|
- Bottom: The bottom edge of the window's border.
|
||||||
|
|
|
||||||
|
|
@ -130,13 +130,19 @@ labwc-config(5).
|
||||||
Color of the images in titlebar buttons in their default, unpressed,
|
Color of the images in titlebar buttons in their default, unpressed,
|
||||||
state. This element is for non-focused windows.
|
state. This element is for non-focused windows.
|
||||||
|
|
||||||
Note: The button elements (i.e. window.[in]active.button.\*) support defining
|
Note: Button elements (i.e. window.[in]active.button.\*) may be defined uniquely
|
||||||
different types of buttons individually by inserting the type ("menu",
|
for each type of button ("menu", "iconify", "max", "shade", "desk" or "close")
|
||||||
"iconify", "max" and "close") after the button node. For example:
|
by appending the type after the "button" node. For example:
|
||||||
window.active.button.iconify.unpressed.image.color
|
|
||||||
This syntax is not documented on the openbox.org wiki, but is supported by
|
- window.active.button.iconify.unpressed.image.color indicates the color of the
|
||||||
openbox and is used by many popular themes. For the sake of brevity, these
|
iconify button for active windows; while
|
||||||
elements are not listed here, but are supported.
|
|
||||||
|
- window.inactive.button.close.unpressed.image.color indicates the color of the
|
||||||
|
close button for inactive windows.
|
||||||
|
|
||||||
|
This syntax is not documented by Openbox, but is supported and is used by many
|
||||||
|
popular themes. For the sake of brevity, these elements are not listed here, but
|
||||||
|
all are supported.
|
||||||
|
|
||||||
*window.active.shadow.size*
|
*window.active.shadow.size*
|
||||||
Size of the drop-shadow for the focused window, in pixels.
|
Size of the drop-shadow for the focused window, in pixels.
|
||||||
|
|
|
||||||
|
|
@ -447,7 +447,7 @@
|
||||||
</mousebind>
|
</mousebind>
|
||||||
</context>
|
</context>
|
||||||
|
|
||||||
<context name="Omnipresent">
|
<context name="AllDesktops">
|
||||||
<mousebind button="Left" action="Click">
|
<mousebind button="Left" action="Click">
|
||||||
<action name="ToggleOmnipresent" />
|
<action name="ToggleOmnipresent" />
|
||||||
</mousebind>
|
</mousebind>
|
||||||
|
|
|
||||||
|
|
@ -328,7 +328,7 @@ static struct mouse_combos {
|
||||||
.event = "Click",
|
.event = "Click",
|
||||||
.action = "ToggleShade",
|
.action = "ToggleShade",
|
||||||
}, {
|
}, {
|
||||||
.context = "Omnipresent",
|
.context = "AllDesktops",
|
||||||
.button = "Left",
|
.button = "Left",
|
||||||
.event = "Click",
|
.event = "Click",
|
||||||
.action = "ToggleOmnipresent",
|
.action = "ToggleOmnipresent",
|
||||||
|
|
|
||||||
|
|
@ -116,7 +116,7 @@ context_from_str(const char *str)
|
||||||
return LAB_SSD_BUTTON_WINDOW_MENU;
|
return LAB_SSD_BUTTON_WINDOW_MENU;
|
||||||
} else if (!strcasecmp(str, "Shade")) {
|
} else if (!strcasecmp(str, "Shade")) {
|
||||||
return LAB_SSD_BUTTON_SHADE;
|
return LAB_SSD_BUTTON_SHADE;
|
||||||
} else if (!strcasecmp(str, "Omnipresent")) {
|
} else if (!strcasecmp(str, "AllDesktops")) {
|
||||||
return LAB_SSD_BUTTON_OMNIPRESENT;
|
return LAB_SSD_BUTTON_OMNIPRESENT;
|
||||||
} else if (!strcasecmp(str, "Titlebar")) {
|
} else if (!strcasecmp(str, "Titlebar")) {
|
||||||
return LAB_SSD_PART_TITLEBAR;
|
return LAB_SSD_PART_TITLEBAR;
|
||||||
|
|
|
||||||
|
|
@ -793,7 +793,7 @@ entry(struct theme *theme, const char *key, const char *value)
|
||||||
parse_hexstr(value,
|
parse_hexstr(value,
|
||||||
theme->window_active_button_shade_unpressed_image_color);
|
theme->window_active_button_shade_unpressed_image_color);
|
||||||
}
|
}
|
||||||
if (match_glob(key, "window.active.button.omnipresent.unpressed.image.color")) {
|
if (match_glob(key, "window.active.button.desk.unpressed.image.color")) {
|
||||||
parse_hexstr(value,
|
parse_hexstr(value,
|
||||||
theme->window_active_button_omnipresent_unpressed_image_color);
|
theme->window_active_button_omnipresent_unpressed_image_color);
|
||||||
}
|
}
|
||||||
|
|
@ -817,7 +817,7 @@ entry(struct theme *theme, const char *key, const char *value)
|
||||||
parse_hexstr(value,
|
parse_hexstr(value,
|
||||||
theme->window_inactive_button_shade_unpressed_image_color);
|
theme->window_inactive_button_shade_unpressed_image_color);
|
||||||
}
|
}
|
||||||
if (match_glob(key, "window.inactive.button.omnipresent.unpressed.image.color")) {
|
if (match_glob(key, "window.inactive.button.desk.unpressed.image.color")) {
|
||||||
parse_hexstr(value,
|
parse_hexstr(value,
|
||||||
theme->window_inactive_button_omnipresent_unpressed_image_color);
|
theme->window_inactive_button_omnipresent_unpressed_image_color);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue