From 53a9719230853bdedc96f1d6fb8bc204cd45b41e Mon Sep 17 00:00:00 2001 From: OverloadedOrama <35376950+OverloadedOrama@users.noreply.github.com> Date: Sat, 18 Apr 2020 18:36:29 +0300 Subject: [PATCH] Removed old transparent background & made some tooltip changes The transparent background has been removed both from code and its files. Changed some hint_tooltips and put them in Translations.pot too. --- .../Transparent Background Dark.png | Bin 76 -> 0 bytes .../Transparent Background Dark.png.import | 13 ------------ .../Transparent Background Godot.png | Bin 76 -> 0 bytes .../Transparent Background Godot.png.import | 13 ------------ .../Transparent Background Gold.png | Bin 76 -> 0 bytes .../Transparent Background Gold.png.import | 13 ------------ .../Transparent Background Gray.png | Bin 76 -> 0 bytes .../Transparent Background Gray.png.import | 13 ------------ .../Transparent Background Light.png | Bin 71 -> 0 bytes .../Transparent Background Light.png.import | 13 ------------ Changelog.md | 7 ++++-- Prefabs/Dialogs/PreferencesDialog.tscn | 11 +++++----- Scripts/Dialogs/AboutDialog.gd | 3 ++- Scripts/Dialogs/PreferencesDialog.gd | 5 ----- Scripts/Global.gd | 3 --- Translations/Translations.pot | 20 +++++++++++++++++- 16 files changed, 32 insertions(+), 82 deletions(-) delete mode 100644 Assets/Graphics/Canvas Backgrounds/Transparent Background Dark.png delete mode 100644 Assets/Graphics/Canvas Backgrounds/Transparent Background Dark.png.import delete mode 100644 Assets/Graphics/Canvas Backgrounds/Transparent Background Godot.png delete mode 100644 Assets/Graphics/Canvas Backgrounds/Transparent Background Godot.png.import delete mode 100644 Assets/Graphics/Canvas Backgrounds/Transparent Background Gold.png delete mode 100644 Assets/Graphics/Canvas Backgrounds/Transparent Background Gold.png.import delete mode 100644 Assets/Graphics/Canvas Backgrounds/Transparent Background Gray.png delete mode 100644 Assets/Graphics/Canvas Backgrounds/Transparent Background Gray.png.import delete mode 100644 Assets/Graphics/Canvas Backgrounds/Transparent Background Light.png delete mode 100644 Assets/Graphics/Canvas Backgrounds/Transparent Background Light.png.import diff --git a/Assets/Graphics/Canvas Backgrounds/Transparent Background Dark.png b/Assets/Graphics/Canvas Backgrounds/Transparent Background Dark.png deleted file mode 100644 index e88250d36199214722fa11c3942200ba02c75e77..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 76 zcmeAS@N?(olHy`uVBq!ia0vp^Od!kwBL7~QRScwrJzX3_DsCmOSfRn+&ymiMq`=Lf X#Kv;_%#$7Kfzk|~u6{1-oD!MTRrR>l7H;fzk|~u6{1-oD!M void: contributors.create_item(contributor_root).set_text(0, " Subhang Nanduri (SbNanduri)") contributors.create_item(contributor_root).set_text(0, " danielnaoexiste") contributors.create_item(contributor_root).set_text(0, " Noah Burck (haonkrub)") - contributors.create_item(contributor_root).set_text(0, " luiq54") + contributors.create_item(contributor_root).set_text(0, " Darshan Phaldesai (luiq54)") contributors.create_item(contributor_root).set_text(0, " Matheus Pesegoginski (MatheusPese)") contributors.create_item(contributor_root).set_text(0, " sapient_cogbag") + contributors.create_item(contributor_root).set_text(0, " Kinwailo") var donors_root := donors.create_item() donors.create_item(donors_root).set_text(0, " pcmxms") diff --git a/Scripts/Dialogs/PreferencesDialog.gd b/Scripts/Dialogs/PreferencesDialog.gd index 801b0d349..07df4c3b6 100644 --- a/Scripts/Dialogs/PreferencesDialog.gd +++ b/Scripts/Dialogs/PreferencesDialog.gd @@ -294,35 +294,30 @@ func change_theme(ID : int) -> void: var ruler_style if ID == 0: # Dark Theme Global.theme_type = "Dark" - Global.transparent_background.create_from_image(preload("res://Assets/Graphics/Canvas Backgrounds/Transparent Background Dark.png"), 0) VisualServer.set_default_clear_color(Color(0.247059, 0.25098, 0.247059)) main_theme = preload("res://Themes & Styles/Dark Theme/Dark Theme.tres") top_menu_style = preload("res://Themes & Styles/Dark Theme/DarkTopMenuStyle.tres") ruler_style = preload("res://Themes & Styles/Dark Theme/DarkRulerStyle.tres") elif ID == 1: # Gray Theme Global.theme_type = "Dark" - Global.transparent_background.create_from_image(preload("res://Assets/Graphics/Canvas Backgrounds/Transparent Background Gray.png"), 0) VisualServer.set_default_clear_color(Color(0.301961, 0.301961, 0.301961)) main_theme = preload("res://Themes & Styles/Gray Theme/Gray Theme.tres") top_menu_style = preload("res://Themes & Styles/Gray Theme/GrayTopMenuStyle.tres") ruler_style = preload("res://Themes & Styles/Dark Theme/DarkRulerStyle.tres") elif ID == 2: # Godot's Theme Global.theme_type = "Dark" - Global.transparent_background.create_from_image(preload("res://Assets/Graphics/Canvas Backgrounds/Transparent Background Godot.png"), 0) VisualServer.set_default_clear_color(Color(0.27451, 0.278431, 0.305882)) main_theme = preload("res://Themes & Styles/Godot\'s Theme/Godot\'s Theme.tres") top_menu_style = preload("res://Themes & Styles/Godot\'s Theme/TopMenuStyle.tres") ruler_style = preload("res://Themes & Styles/Godot\'s Theme/RulerStyle.tres") elif ID == 3: # Gold Theme Global.theme_type = "Gold" - Global.transparent_background.create_from_image(preload("res://Assets/Graphics/Canvas Backgrounds/Transparent Background Gold.png"), 0) VisualServer.set_default_clear_color(Color(0.694118, 0.619608, 0.458824)) main_theme = preload("res://Themes & Styles/Gold Theme/Gold Theme.tres") top_menu_style = preload("res://Themes & Styles/Gold Theme/GoldTopMenuStyle.tres") ruler_style = preload("res://Themes & Styles/Gold Theme/GoldRulerStyle.tres") elif ID == 4: # Light Theme Global.theme_type = "Light" - Global.transparent_background.create_from_image(preload("res://Assets/Graphics/Canvas Backgrounds/Transparent Background Light.png"), 0) VisualServer.set_default_clear_color(Color(0.705882, 0.705882, 0.705882)) main_theme = preload("res://Themes & Styles/Light Theme/Light Theme.tres") top_menu_style = preload("res://Themes & Styles/Light Theme/LightTopMenuStyle.tres") diff --git a/Scripts/Global.gd b/Scripts/Global.gd index e9d3234dd..acd0ad862 100644 --- a/Scripts/Global.gd +++ b/Scripts/Global.gd @@ -49,7 +49,6 @@ var smooth_zoom := true var cursor_image = preload("res://Assets/Graphics/Cursor.png") var left_cursor_tool_texture : ImageTexture var right_cursor_tool_texture : ImageTexture -var transparent_background : ImageTexture # warning-ignore:unused_class_variable var selected_pixels := [] var image_clipboard : Image @@ -303,8 +302,6 @@ func _ready() -> void: directory_module = XDGDataPaths.new() undo_redo = UndoRedo.new() - transparent_background = ImageTexture.new() - transparent_background.create_from_image(preload("res://Assets/Graphics/Canvas Backgrounds/Transparent Background Dark.png"), 0) image_clipboard = Image.new() var root = get_tree().get_root() diff --git a/Translations/Translations.pot b/Translations/Translations.pot index 7086e92fd..03675d6eb 100644 --- a/Translations/Translations.pot +++ b/Translations/Translations.pot @@ -260,7 +260,7 @@ msgstr "" msgid "Themes" msgstr "" -msgid "Guides & Grid" +msgid "Canvas" msgstr "" msgid "Shortcuts" @@ -546,6 +546,24 @@ msgstr "" msgid "A color of the grid" msgstr "" +msgid "Checker size" +msgstr "" + +msgid "Size of the transparent checker background" +msgstr "" + +msgid "Checker color 1" +msgstr "" + +msgid "First color of the transparent checker background" +msgstr "" + +msgid "Checker color 2" +msgstr "" + +msgid "Second color of the transparent checker background" +msgstr "" + msgid "Only custom preset can be modified" msgstr ""