File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -62,14 +62,17 @@ func _ready() -> void:
62
62
icon_rect .stretch_mode = TextureRect .STRETCH_KEEP_ASPECT_CENTERED
63
63
64
64
titlebar_hbox = get_titlebar_hbox ()
65
- titlebar_hbox .remove_child ( titlebar_hbox . get_child (0 ))
65
+ titlebar_hbox .get_child (0 ). queue_free ( )
66
66
titlebar_hbox .alignment = BoxContainer .ALIGNMENT_BEGIN
67
67
titlebar_hbox .add_child (icon_rect )
68
68
69
69
title_label = Label .new ()
70
70
title_label .add_theme_color_override ("font_color" , Color .WHITE )
71
- var title_font : FontVariation = get_theme_font ("title_font" ).duplicate ()
72
- title_font .variation_embolden = 1
71
+ var title_font : Font = get_theme_font ("title_font" ).duplicate ()
72
+ if title_font is FontVariation :
73
+ title_font .variation_embolden = 1
74
+ elif title_font is FontFile :
75
+ title_font .font_weight = 700
73
76
title_label .add_theme_font_override ("font" , title_font )
74
77
title_label .vertical_alignment = VERTICAL_ALIGNMENT_CENTER
75
78
title_label .size_flags_horizontal = Control .SIZE_EXPAND_FILL
You can’t perform that action at this time.
0 commit comments