Remove unnecessary workaround
This commit is contained in:
parent
b14ff85b0c
commit
2099c23e54
2 changed files with 3 additions and 25 deletions
|
@ -54,7 +54,7 @@
|
|||
font_family = {FONT_FAMILY}
|
||||
color = "(if(editable=1, active_color, inactive_color) where
|
||||
active_color = [{COLOR}],
|
||||
inactive_color = [{__DISABLED_COLOR_PREPROCESSOR_WORKAROUND}]
|
||||
inactive_color = ["{GUI__FONT_COLOR_DISABLED__DEFAULT}"]
|
||||
)"
|
||||
text = "(text)"
|
||||
highlight_color = "21, 53, 80"
|
||||
|
@ -63,16 +63,6 @@
|
|||
[/text]
|
||||
#enddef
|
||||
|
||||
#
|
||||
# The preprocessor can't process GUI__FONT_COLOR_DISABLED__DEFAULT as part of string
|
||||
# concatenation for some reason. Perhaps it's the optional argument. So I'm just copying
|
||||
# it here. Though the lack of quotes means I don't need to use concatenation anyway.
|
||||
#
|
||||
# -- vultraz, 2018-03-26
|
||||
#
|
||||
#define __DISABLED_COLOR_PREPROCESSOR_WORKAROUND
|
||||
128, 128, 128, 255 #enddef
|
||||
|
||||
#define _GUI_DRAW_TEXT_OR_HINT SIZE COLOR
|
||||
#arg FONT_FAMILY
|
||||
#endarg
|
||||
|
@ -102,7 +92,7 @@
|
|||
|
||||
color = "(
|
||||
if((text = '' and hint_text != '') or editable = 0, hint_color, reg_color) where
|
||||
hint_color = [{__DISABLED_COLOR_PREPROCESSOR_WORKAROUND}],
|
||||
hint_color = ["{GUI__FONT_COLOR_DISABLED__DEFAULT}"],
|
||||
reg_color = [{COLOR}]
|
||||
)"
|
||||
|
||||
|
@ -255,4 +245,3 @@
|
|||
#undef _GUI_DRAW_TEXT_OR_HINT
|
||||
#undef _GUI_TEXTBOX_BACKGROUND_ENABLED
|
||||
#undef _GUI_TEXTBOX_BACKGROUND_DISABLED
|
||||
#undef __DISABLED_COLOR_PREPROCESSOR_WORKAROUND
|
||||
|
|
|
@ -62,16 +62,6 @@
|
|||
[/text]
|
||||
#enddef
|
||||
|
||||
#
|
||||
# The preprocessor can't process GUI__FONT_COLOR_DISABLED__DEFAULT as part of string
|
||||
# concatenation for some reason. Perhaps it's the optional argument. So I'm just copying
|
||||
# it here. Though the lack of quotes means I don't need to use concatenation anyway.
|
||||
#
|
||||
# -- vultraz, 2018-03-26
|
||||
#
|
||||
#define __DISABLED_COLOR_PREPROCESSOR_WORKAROUND
|
||||
128, 128, 128, 255 #enddef
|
||||
|
||||
#define _GUI_DRAW_TEXT_OR_HINT SIZE COLOR
|
||||
#arg FONT_FAMILY
|
||||
#endarg
|
||||
|
@ -101,7 +91,7 @@
|
|||
|
||||
color = "(
|
||||
if(text = '' and hint_text != '', hint_color, reg_color) where
|
||||
hint_color = [{__DISABLED_COLOR_PREPROCESSOR_WORKAROUND}],
|
||||
hint_color = [{GUI__FONT_COLOR_DISABLED__DEFAULT}],
|
||||
reg_color = [{COLOR}]
|
||||
)"
|
||||
|
||||
|
@ -254,4 +244,3 @@
|
|||
#undef _GUI_DRAW_BACKGROUND
|
||||
#undef _GUI_TEXTBOX_BACKGROUND_ENABLED
|
||||
#undef _GUI_TEXTBOX_BACKGROUND_DISABLED
|
||||
#undef __DISABLED_COLOR_PREPROCESSOR_WORKAROUND
|
||||
|
|
Loading…
Add table
Reference in a new issue