1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-30 23:19:49 +00:00

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

@ -1,20 +1,16 @@
[gd_scene load_steps=3 format=2]
[gd_scene load_steps=2 format=2]
[ext_resource path="res://Themes & Styles/Godot's Theme/Godot's Theme.tres" type="Theme" id=1]
[ext_resource path="res://Scripts/NotificationLabel.gd" type="Script" id=2]
[node name="NotificationLabel" type="Label"]
margin_right = 116.0
margin_bottom = 14.0
theme = ExtResource( 1 )
custom_colors/font_color_shadow = Color( 0, 0, 0, 1 )
text = "Undo: Notification"
script = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Tween" type="Tween" parent="."]

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:

View file

@ -1,15 +1,6 @@
[gd_resource type="Theme" load_steps=3 format=2]
[ext_resource path="res://Assets/Fonts/Roboto-Regular.ttf" type="DynamicFontData" id=1]
[sub_resource type="DynamicFont" id=1]
size = 12
use_mipmaps = true
use_filter = true
font_data = ExtResource( 1 )
[gd_resource type="Theme" format=2]
[resource]
default_font = SubResource( 1 )
Button/colors/font_color = Color( 0.878431, 0.878431, 0.878431, 1 )
Button/colors/font_color_disabled = Color( 0.9, 0.9, 0.9, 0.2 )
Button/colors/font_color_hover = Color( 0.941176, 0.941176, 0.941176, 1 )