Notification theme is now the same as the selected theme

This makes the letters black on the light and gold themes, and fixes the characters not being rendered issue in Chinese.
This commit is contained in:
OverloadedOrama 2020-03-01 17:56:34 +02:00
parent 5a44f3f4d5
commit b3a8eb6d84
3 changed files with 6 additions and 18 deletions

View file

@ -386,6 +386,7 @@ func notification_label(text : String) -> void:
var notification : Label = load("res://Prefabs/NotificationLabel.tscn").instance()
notification.text = tr(text)
notification.rect_position = Vector2(240, OS.window_size.y - 150)
notification.theme = control.theme
get_tree().get_root().add_child(notification)
func undo(_canvases : Array, layer_index : int = -1) -> void: