Changed normal textures of light theme UI buttons
Before Width: | Height: | Size: 785 B After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 765 B After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 786 B After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 792 B After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 740 B After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 743 B After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 752 B After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 656 B After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 693 B After Width: | Height: | Size: 4.1 KiB |
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 659 B After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 637 B After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 614 B After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 656 B After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 653 B After Width: | Height: | Size: 3 KiB |
Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.4 KiB |
|
@ -1,13 +1,5 @@
|
|||
extends Node
|
||||
|
||||
# Declare member variables here. Examples:
|
||||
# var a = 2
|
||||
# var b = "text"
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
func import_gpl(path : String) -> Palette:
|
||||
var result : Palette = null
|
||||
var file = File.new()
|
||||
|
@ -28,7 +20,7 @@ func import_gpl(path : String) -> Palette:
|
|||
var name_end = path.find_last('.')
|
||||
if name_end > name_start:
|
||||
result.name = path.substr(name_start, name_end - name_start)
|
||||
|
||||
|
||||
# Comments
|
||||
if line.begins_with('#'):
|
||||
comments += line.trim_prefix('#') + '\n'
|
||||
|
@ -41,13 +33,9 @@ func import_gpl(path : String) -> Palette:
|
|||
var color = Color(red, green, blue)
|
||||
result.add_color(color, name)
|
||||
line_number += 1
|
||||
|
||||
|
||||
if result:
|
||||
result.comments = comments
|
||||
file.close()
|
||||
|
||||
return result
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
#func _process(delta):
|
||||
# pass
|
||||
return result
|
||||
|
|
|
@ -51,7 +51,7 @@ func on_palette_import_file_selected(path) -> void:
|
|||
palette = Palette.new().load_from_file(path)
|
||||
elif path.to_lower().ends_with("gpl"):
|
||||
palette = Import.import_gpl(path)
|
||||
|
||||
|
||||
if palette:
|
||||
if not Global.palettes.has(palette.name):
|
||||
Global.palettes[palette.name] = palette
|
||||
|
@ -216,5 +216,5 @@ func _delete_palette_file(file_name : String) -> void:
|
|||
|
||||
func save_palette(palette_name : String, filename : String) -> void:
|
||||
var palette = Global.palettes[palette_name]
|
||||
|
||||
|
||||
palette.save_to_file("user://palettes/custom/" + filename)
|
||||
|
|