summaryrefslogtreecommitdiff
path: root/ide-hover.c
diff options
context:
space:
mode:
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);
}