mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 09:09:47 +00:00
Added a dark texture for the restore to default button
For light & caramel themes
This commit is contained in:
parent
051f3df147
commit
db606a5051
BIN
assets/graphics/caramel_themes/misc/icon_reload.png
Normal file
BIN
assets/graphics/caramel_themes/misc/icon_reload.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 429 B |
34
assets/graphics/caramel_themes/misc/icon_reload.png.import
Normal file
34
assets/graphics/caramel_themes/misc/icon_reload.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon_reload.png-e8a158cd156ea5e131991fdbb47cfd96.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/graphics/caramel_themes/misc/icon_reload.png"
|
||||
dest_files=[ "res://.import/icon_reload.png-e8a158cd156ea5e131991fdbb47cfd96.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
BIN
assets/graphics/light_themes/misc/icon_reload.png
Normal file
BIN
assets/graphics/light_themes/misc/icon_reload.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 429 B |
34
assets/graphics/light_themes/misc/icon_reload.png.import
Normal file
34
assets/graphics/light_themes/misc/icon_reload.png.import
Normal file
|
@ -0,0 +1,34 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="StreamTexture"
|
||||
path="res://.import/icon_reload.png-c15ad678b067a1d009ad31f253da051f.stex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/graphics/light_themes/misc/icon_reload.png"
|
||||
dest_files=[ "res://.import/icon_reload.png-c15ad678b067a1d009ad31f253da051f.stex" ]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_mode=0
|
||||
compress/bptc_ldr=0
|
||||
compress/normal_map=0
|
||||
flags/repeat=0
|
||||
flags/filter=false
|
||||
flags/mipmaps=false
|
||||
flags/anisotropic=false
|
||||
flags/srgb=2
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/HDR_as_SRGB=false
|
||||
process/invert_color=false
|
||||
stream=false
|
||||
size_limit=0
|
||||
detect_3d=true
|
||||
svg/scale=1.0
|
|
@ -96,7 +96,7 @@ func change_theme(ID : int) -> void:
|
|||
if button.texture_hover:
|
||||
var hover_file_name = button.texture_hover.resource_path.get_file()
|
||||
button.texture_hover = load("res://assets/graphics/%s_themes/%s/%s" % [theme_type_string, button_category, hover_file_name])
|
||||
if button.texture_disabled:
|
||||
if button.texture_disabled and button.texture_disabled == StreamTexture:
|
||||
var disabled_file_name = button.texture_disabled.resource_path.get_file()
|
||||
button.texture_disabled = load("res://assets/graphics/%s_themes/%s/%s" % [theme_type_string, button_category, disabled_file_name])
|
||||
elif button is Button:
|
||||
|
|
|
@ -7,6 +7,14 @@ var default_value
|
|||
var node : Node
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
# Handle themes
|
||||
if Global.theme_type == Global.Theme_Types.LIGHT:
|
||||
texture_normal = load("res://assets/graphics/light_themes/misc/icon_reload.png")
|
||||
elif Global.theme_type == Global.Theme_Types.CARAMEL:
|
||||
texture_normal = load("res://assets/graphics/caramel_themes/misc/icon_reload.png")
|
||||
|
||||
|
||||
func _on_RestoreDefaultButton_pressed() -> void:
|
||||
Global.set(setting_name, default_value)
|
||||
Global.config_cache.set_value("preferences", setting_name, default_value)
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
|
||||
[sub_resource type="ImageTexture" id=1]
|
||||
|
||||
[node name="RestoreDefaultButton" type="TextureButton"]
|
||||
[node name="RestoreDefaultButton" type="TextureButton" groups=[
|
||||
"UIButtons",
|
||||
]]
|
||||
margin_right = 16.0
|
||||
margin_bottom = 16.0
|
||||
disabled = true
|
||||
|
|
Loading…
Reference in a new issue