From 669f50e2d6fc55751e0f3afb4d1bdf633446b169 Mon Sep 17 00:00:00 2001 From: Krow Savcik Date: Tue, 13 Feb 2024 18:25:28 +0200 Subject: improved: changed colors to hexadecimal where posssible --- src/ui.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index f12becc..130c464 100644 --- a/src/ui.c +++ b/src/ui.c @@ -464,7 +464,7 @@ ui_panel_redraw(UIPanel *p) p->redraw = 0; SDL_SetRenderTarget(ren, p->pres); - SDL_SetRenderDrawColor(ren, 0, 0, 0, 0); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0)); SDL_RenderClear(ren); switch (p->type) { case UI_PANELTYPE_CANVAS: @@ -540,7 +540,7 @@ ui_panel_canvas_redraw(UIPanelCanvas *p) dest.w = p->head.geom.w - 16; dest.h = p->head.geom.h - 16; SDL_RenderSetViewport(ren, &dest); - SDL_SetRenderDrawColor(ren, 18, 18, 18, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0x121212ff)); SDL_RenderClear(ren); if (cur_canvas != NULL) { SDL_RenderSetViewport(ren, NULL); @@ -576,10 +576,10 @@ ui_panel_palette_redraw(UIPanelPalette *p) dest.w = p->head.geom.w - 16; dest.h = p->head.geom.h - 16; SDL_RenderSetViewport(ren, &dest); - SDL_SetRenderDrawColor(ren, 18, 18, 18, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0x121212ff)); SDL_RenderClear(ren); - SDL_SetRenderDrawColor(ren, 0, 0, 0, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0x000000ff)); if (pp != NULL) { dest.x = dest.y = 0; dest.w = 120; @@ -670,13 +670,13 @@ ui_panel_timeline_redraw(UIPanelTimeline *p) dest.w = p->head.geom.w - 12; dest.h = p->head.geom.h - 12; SDL_RenderSetViewport(ren, &dest); - SDL_SetRenderDrawColor(ren, 199, 207, 221, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0xc7cfddff)); SDL_RenderClear(ren); if (cur_canvas != NULL) { dest.x = 2; dest.w = dest.h = 20; dest.y = (cur_canvas->layer_arr_cnt - 1 - cur_canvas->cur_layer) * 22 + 2; - SDL_SetRenderDrawColor(ren, 101, 115, 146, 255); + SDL_SetRenderDrawColor(ren, INTTOCOLA(0x657392ff)); SDL_RenderFillRect(ren, &dest); SDL_SetRenderDrawColor(ren, 19, 19, 19, 255); for (i = 0; i < cur_canvas->layer_arr_cnt; i++) { -- cgit v1.2.3