mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-31 07:29: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:
parent
5a44f3f4d5
commit
b3a8eb6d84
|
@ -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="."]
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue