mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Configure border and titlebar color per app by using window rules
Signed-off-by: dmitry-erin <dmitry.erin@unikie.com>
This commit is contained in:
parent
7e60c57b81
commit
2cf0a85c45
10 changed files with 207 additions and 102 deletions
|
|
@ -135,3 +135,17 @@ window_rules_get_property(struct view *view, const char *property)
|
|||
}
|
||||
return LAB_PROP_UNSPECIFIED;
|
||||
}
|
||||
|
||||
float*
|
||||
window_rules_get_custom_border_color(struct view *view)
|
||||
{
|
||||
struct window_rule *rule;
|
||||
wl_list_for_each_reverse(rule, &rc.window_rules, link) {
|
||||
if (view_matches_criteria(rule, view)) {
|
||||
if (rule->has_custom_border) {
|
||||
return rule->custom_border_color;
|
||||
}
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue