Strengthen battle UI text legibility
This commit is contained in:
@@ -251,8 +251,8 @@ const UI_OLD_SILK := Color(0.48, 0.44, 0.36, 0.997)
|
||||
const UI_BURNT_PAPER := Color(0.22, 0.18, 0.13, 0.996)
|
||||
const UI_BRUSH_RULE := Color(0.065, 0.060, 0.052, 0.98)
|
||||
const UI_TEXT_DARK_OUTLINE := Color(0.018, 0.012, 0.007, 0.88)
|
||||
const UI_TEXT_LIGHT_OUTLINE := Color(0.92, 0.84, 0.62, 0.38)
|
||||
const UI_TEXT_SHADOW := Color(0.010, 0.007, 0.004, 0.58)
|
||||
const UI_TEXT_LIGHT_OUTLINE := Color(0.96, 0.88, 0.66, 0.56)
|
||||
const UI_TEXT_SHADOW := Color(0.010, 0.007, 0.004, 0.66)
|
||||
const MAP_SCROLL_FRAME_PADDING := 12.0
|
||||
const SPEAKER_DISPLAY_NAMES := {
|
||||
"Cao Cao": "조조",
|
||||
@@ -1160,7 +1160,7 @@ func _apply_text_legibility(control: Control, font_color: Color, font_size: int
|
||||
var resolved_size := font_size
|
||||
if resolved_size <= 0:
|
||||
resolved_size = control.get_theme_font_size("font_size")
|
||||
var outline_size := 2 if resolved_size >= 24 else 1
|
||||
var outline_size := 2 if resolved_size >= 13 else 1
|
||||
control.add_theme_color_override("font_outline_color", _text_outline_color_for(font_color))
|
||||
control.add_theme_constant_override("outline_size", outline_size)
|
||||
control.add_theme_color_override("font_shadow_color", UI_TEXT_SHADOW)
|
||||
|
||||
Reference in New Issue
Block a user