summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVAN BOSSUYT Nicolas <nivb@odoo.com>2023-08-12 09:31:50 +0200
committerVAN BOSSUYT Nicolas <nivb@odoo.com>2023-08-12 09:32:10 +0200
commit25f9a8320cdb5f19a7061d16837adeb2d265b63e (patch)
treec5e6a6957597c3d31d97efde9d8a3d7957ae5aca
parent75ac809d3aa7ba997ebe6ea3dfe7ad46d6621217 (diff)
ui: improved buttons style
-rw-r--r--sources/libs/brutal-ui/button.c2
-rw-r--r--sources/srvs/window/server.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/sources/libs/brutal-ui/button.c b/sources/libs/brutal-ui/button.c
index 00305803..e3b1e1fc 100644
--- a/sources/libs/brutal-ui/button.c
+++ b/sources/libs/brutal-ui/button.c
@@ -8,7 +8,7 @@ void ui_button_repaint(UiView *self, Gfx *gfx)
{
if (self->flags & UI_VIEW_ENABLED)
{
- gfx_fill_style(gfx, gfx_paint_fill(UI_COLOR_BLUE));
+ gfx_fill_style(gfx, gfx_paint_fill(UI_COLOR_BASE01));
}
else
{
diff --git a/sources/srvs/window/server.c b/sources/srvs/window/server.c
index 0d881745..8b31ae7e 100644
--- a/sources/srvs/window/server.c
+++ b/sources/srvs/window/server.c
@@ -144,7 +144,7 @@ static void wm_server_render_clients(WmServer *self, Gfx *gfx)
}
gfx_stroke_style(gfx, (GfxStroke){.pos = GFX_STOKE_INSIDE, .width = 1});
- gfx_fill_style(gfx, gfx_paint_fill(UI_COLOR_BASE02));
+ gfx_fill_style(gfx, gfx_paint_fill(UI_COLOR_BASE01));
gfx_stroke(gfx);
}
}
@@ -168,7 +168,7 @@ void wm_server_render(WmServer *self)
gfx_push(gfx);
gfx_clip(gfx, dirty);
- gfx_clear(gfx, GFX_GAINSBORO);
+ gfx_clear(gfx, gfx_hex(0x09090b));
wm_server_render_clients(self, gfx);
wm_server_render_cursor(self, gfx);