summaryrefslogtreecommitdiff
path: root/ide-hover.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-15 10:50:30 -0300
committerpommicket <pommicket@gmail.com>2023-08-15 10:50:30 -0300
commit4ea381d6a8a2a560213de896bab2aad02a70f937 (patch)
treec0a3abe1dc27717ff1ea598dd0dbd4867f457e5b /ide-hover.c
parent50ecb07c724091ea2556fda8738d7500a77b0f9b (diff)
some settings stuff
Diffstat (limited to 'ide-hover.c')
-rw-r--r--ide-hover.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ide-hover.c b/ide-hover.c
index 28bc1af..ae870c3 100644
--- a/ide-hover.c
+++ b/ide-hover.c
@@ -156,7 +156,6 @@ void hover_frame(Ted *ted, double dt) {
const float padding = settings->padding;
const float border = settings->border_thickness;
- const u32 *colors = settings->colors;
const char *text = hover->text;
Font *font = ted->font;
float char_height = text_font_char_height(font);
@@ -192,9 +191,9 @@ void hover_frame(Ted *ted, double dt) {
state.max_y = y + height;
Rect rect = rect_xywh(x - padding, y - padding, width + 2*padding, height + 2*padding);
- gl_geometry_rect(rect, colors[COLOR_HOVER_BG]);
- gl_geometry_rect_border(rect, border, colors[COLOR_HOVER_BORDER]);
- rgba_u32_to_floats(colors[COLOR_HOVER_TEXT], state.color);
+ gl_geometry_rect(rect, settings_color(settings, COLOR_HOVER_BG));
+ gl_geometry_rect_border(rect, border, settings_color(settings, COLOR_HOVER_BORDER));
+ settings_color_floats(settings, COLOR_HOVER_TEXT, state.color);
text_utf8_with_state(font, &state, text);
}