mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
Don't clobber the border under the title
This commit is contained in:
parent
59c37bc91b
commit
d1951f73ec
1 changed files with 10 additions and 3 deletions
|
|
@ -87,9 +87,16 @@ ssd_titlebar_create(struct ssd *ssd)
|
||||||
width - corner_width, -rc.theme->border_width);
|
width - corner_width, -rc.theme->border_width);
|
||||||
|
|
||||||
/* Title */
|
/* Title */
|
||||||
|
if (theme->window[active].title_bg.border_type) {
|
||||||
|
// Use a blank background pattern so it doesn't overlay a pattern on the order.
|
||||||
|
subtree->title = scaled_font_buffer_create_for_titlebar(
|
||||||
|
subtree->tree, theme->titlebar_height,
|
||||||
|
NULL);
|
||||||
|
} else {
|
||||||
subtree->title = scaled_font_buffer_create_for_titlebar(
|
subtree->title = scaled_font_buffer_create_for_titlebar(
|
||||||
subtree->tree, theme->titlebar_height,
|
subtree->tree, theme->titlebar_height,
|
||||||
theme->window[active].titlebar_pattern);
|
theme->window[active].titlebar_pattern);
|
||||||
|
}
|
||||||
assert(subtree->title);
|
assert(subtree->title);
|
||||||
node_descriptor_create(&subtree->title->scene_buffer->node,
|
node_descriptor_create(&subtree->title->scene_buffer->node,
|
||||||
LAB_NODE_TITLE, view, /*data*/ NULL);
|
LAB_NODE_TITLE, view, /*data*/ NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue