From 5375ad838fd8b6c32df0795e71fe5a24da3ba059 Mon Sep 17 00:00:00 2001 From: "Ignacio R. Morelle" Date: Mon, 3 Oct 2016 20:06:30 -0300 Subject: [PATCH] gui2/ttext_box: Move selection highlight to the right place --- data/gui/widget/text_box_default.cfg | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/data/gui/widget/text_box_default.cfg b/data/gui/widget/text_box_default.cfg index 51d7f91653a..7acc017d1da 100644 --- a/data/gui/widget/text_box_default.cfg +++ b/data/gui/widget/text_box_default.cfg @@ -24,17 +24,6 @@ #enddef #define _GUI_DRAW_BORDER COLOR - [rectangle] - x = "(text_x_offset + selection_offset)" - y = "(text_y_offset)" - w = "(selection_width)" - h = "(text_font_height)" - - border_thickness = 0 - fill_color = "21, 53, 80, 255" - - [/rectangle] - [rectangle] x = 0 y = 0 @@ -48,6 +37,16 @@ #enddef #define _GUI_DRAW_TEXT SIZE COLOR + [rectangle] + x = "(text_x_offset + selection_offset)" + y = "(text_y_offset)" + w = "(selection_width)" + h = "(text_font_height)" + + border_thickness = 0 + fill_color = "21, 53, 80, 255" + [/rectangle] + [text] x = "(text_x_offset)" y = "(text_y_offset)"