From b5a438413a338f47fcdd47b987b28d68e25fc99a Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Fri, 8 Apr 2016 20:05:50 +0100 Subject: Setting to change line number color (cherry picked from commit 8c328474f2b2397fb4bcc3fc84402a0305383da6) --- scene/gui/text_edit.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scene/gui/text_edit.cpp') diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index b5928fc7b..bc2f9c0a4 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -681,14 +681,12 @@ void TextEdit::_notification(int p_what) { } if (cache.line_number_w) { - Color fcol = cache.font_color; - fcol.a*=0.4; String fc = String::num(line+1); while (fc.length() < line_number_char_count) { fc="0"+fc; } - cache.font->draw(ci,Point2(cache.style_normal->get_margin(MARGIN_LEFT),ofs_y+cache.font->get_ascent()),fc,fcol); + cache.font->draw(ci,Point2(cache.style_normal->get_margin(MARGIN_LEFT),ofs_y+cache.font->get_ascent()),fc,cache.line_number_color); } const Map& cri_map=text.get_color_region_info(line); @@ -3047,6 +3045,7 @@ void TextEdit::_update_caches() { cache.style_focus=get_stylebox("focus"); cache.font=get_font("font"); cache.caret_color=get_color("caret_color"); + cache.line_number_color=get_color("line_number_color"); cache.font_color=get_color("font_color"); cache.font_selected_color=get_color("font_selected_color"); cache.keyword_color=get_color("keyword_color"); -- cgit v1.2.3-70-g09d2