mirror of
https://github.com/labwc/labwc.git
synced 2026-04-07 08:21:20 -04:00
Realign with codesniffer rules
This commit is contained in:
parent
5846a95f98
commit
987b2c2a89
15 changed files with 486 additions and 466 deletions
|
|
@ -38,20 +38,23 @@ resize_indicator_reconfigure_view(struct resize_indicator *indicator)
|
|||
/* Colors */
|
||||
wlr_scene_rect_set_color(indicator->border, theme->osd_border_color);
|
||||
wlr_scene_rect_set_color(indicator->background, theme->osd_bg_color);
|
||||
|
||||
|
||||
if (rc.theme->osd_border_type) {
|
||||
|
||||
if (rc.theme->osd_border_type) {
|
||||
float r = theme->osd_border_color[0];
|
||||
float g = theme->osd_border_color[1];
|
||||
float b = theme->osd_border_color[2];
|
||||
float a = theme->osd_border_color[3];
|
||||
int bw = theme->osd_border_width;
|
||||
|
||||
uint32_t colour32 = (uint32_t)(a*255) << 24 | (uint32_t)(r*255) << 16 | (uint32_t)(g*255) << 8 | (uint32_t)(b*255);
|
||||
struct borderset * renderedborders = getBorders(colour32, bw, theme->osd_border_type, theme->osd_border_bevel_width);
|
||||
indicator->texturedBorders = generateBufferset(indicator->tree, renderedborders, bw);
|
||||
uint32_t colour32 = (uint32_t)(a*255) << 24 |
|
||||
(uint32_t)(r*255) << 16 |
|
||||
(uint32_t)(g*255) << 8 |
|
||||
(uint32_t)(b*255);
|
||||
struct borderset *renderedborders = getBorders(colour32, bw, theme->osd_border_type,
|
||||
theme->osd_border_bevel_width);
|
||||
indicator->texturedBorders = generateBufferset(indicator->tree,
|
||||
renderedborders, bw);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -67,9 +70,7 @@ resize_indicator_init(struct view *view)
|
|||
indicator->background = lab_wlr_scene_rect_create(
|
||||
indicator->tree, 0, 0, rc.theme->osd_bg_color);
|
||||
|
||||
|
||||
indicator->text = scaled_font_buffer_create(indicator->tree);
|
||||
|
||||
|
||||
wlr_scene_node_set_enabled(&indicator->tree->node, false);
|
||||
resize_indicator_reconfigure_view(indicator);
|
||||
|
|
@ -138,9 +139,10 @@ resize_indicator_set_size(struct resize_indicator *indicator, int width)
|
|||
wlr_scene_rect_set_size(indicator->background,
|
||||
indicator->width - 2 * rc.theme->osd_border_width,
|
||||
indicator->height - 2 * rc.theme->osd_border_width);
|
||||
|
||||
if (rc.theme->osd_border_type) {
|
||||
renderBufferset(indicator->texturedBorders, indicator->width, indicator->height, 0);
|
||||
|
||||
if (rc.theme->osd_border_type) {
|
||||
renderBufferset(indicator->texturedBorders, indicator->width,
|
||||
indicator->height, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue