From 84a69d7429635984999852b69046706effd2e9ad Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 30 Dec 2021 19:22:06 +0300 Subject: Improve the default project theme The new default project theme uses StyleBoxFlat extensively for a more modern design and better scalability to multiple resolutions. SVG icons are now used in place of PNG icons. While this does not allow for true vector-based icon drawing (icons are still rasterized at load-time), this makes the design work easier for contributors and opens the door to vector drawing in the future (e.g. with polygons or SDFs). Like for editor icons, the SVG header file is now built automatically when a SVG file is changed. This removing the need for running `make_header.py` manually (TODO). The "Use Hidpi" project setting has been removed in favor of a "Default Theme Scale" project setting, which allows creating the default theme at a higher/lower scale than the default. This can be used when designing GUIs with a high base resolution to ensure crisp visuals. Co-authored-by: Yuri Sizov --- doc/classes/Button.xml | 8 ++++---- doc/classes/CheckBox.xml | 8 ++++---- doc/classes/CheckButton.xml | 8 ++++---- doc/classes/CodeEdit.xml | 8 ++++---- doc/classes/GraphNode.xml | 18 +++++++----------- doc/classes/HSplitContainer.xml | 2 -- doc/classes/ItemList.xml | 2 +- doc/classes/LineEdit.xml | 12 ++++++------ doc/classes/LinkButton.xml | 6 +++--- doc/classes/MenuButton.xml | 6 +++--- doc/classes/OptionButton.xml | 10 +++++----- doc/classes/PopupMenu.xml | 6 +++--- doc/classes/ProgressBar.xml | 2 +- doc/classes/ProjectSettings.xml | 3 +-- doc/classes/TabBar.xml | 6 +++--- doc/classes/TabContainer.xml | 6 +++--- doc/classes/TextEdit.xml | 12 ++++++------ doc/classes/Tree.xml | 10 +++++----- doc/classes/VSplitContainer.xml | 2 -- doc/classes/Window.xml | 6 +++--- 20 files changed, 66 insertions(+), 75 deletions(-) (limited to 'doc') diff --git a/doc/classes/Button.xml b/doc/classes/Button.xml index 65b66b2fd5..ef4eba62b2 100644 --- a/doc/classes/Button.xml +++ b/doc/classes/Button.xml @@ -94,16 +94,16 @@ - + Default text [Color] of the [Button]. - + Text [Color] used when the [Button] is disabled. - + Text [Color] used when the [Button] is focused. Only replaces the normal text color of the button. Disabled, hovered, and pressed states take precedence over this color. - + Text [Color] used when the [Button] is being hovered. diff --git a/doc/classes/CheckBox.xml b/doc/classes/CheckBox.xml index 6180f56858..3626420589 100644 --- a/doc/classes/CheckBox.xml +++ b/doc/classes/CheckBox.xml @@ -14,16 +14,16 @@ - + The [CheckBox] text's font color. - + The [CheckBox] text's font color when it's disabled. - + The [CheckBox] text's font color when it's focused. Only replaces the normal text color of the checkbox. Disabled, hovered, and pressed states take precedence over this color. - + The [CheckBox] text's font color when it's hovered. diff --git a/doc/classes/CheckButton.xml b/doc/classes/CheckButton.xml index 659fb5126f..74d438f24e 100644 --- a/doc/classes/CheckButton.xml +++ b/doc/classes/CheckButton.xml @@ -14,16 +14,16 @@ - + The [CheckButton] text's font color. - + The [CheckButton] text's font color when it's disabled. - + The [CheckButton] text's font color when it's focused. Only replaces the normal text color of the button. Disabled, hovered, and pressed states take precedence over this color. - + The [CheckButton] text's font color when it's hovered. diff --git a/doc/classes/CodeEdit.xml b/doc/classes/CodeEdit.xml index 4a9d79978c..289ac2cb28 100644 --- a/doc/classes/CodeEdit.xml +++ b/doc/classes/CodeEdit.xml @@ -574,7 +574,7 @@ [Color] of the text behind the caret when block caret is enabled. - + [Color] of the caret. @@ -601,13 +601,13 @@ [Color] of the executing icon for executing lines. - + Sets the font [Color]. The tint of text outline of the [CodeEdit]. - + Sets the font [Color] when [member TextEdit.editable] is disabled. @@ -625,7 +625,7 @@ [Color] behind the text that matches the search query. - + Sets the highlight [Color] of text selections. diff --git a/doc/classes/GraphNode.xml b/doc/classes/GraphNode.xml index d5780dce2d..c8606cf67f 100644 --- a/doc/classes/GraphNode.xml +++ b/doc/classes/GraphNode.xml @@ -292,25 +292,25 @@ - + The color modulation applied to the close button icon. - + The color modulation applied to the resizer icon. - + Color of the title text. - + The vertical offset of the close button. - + Horizontal offset for the ports. - + The vertical distance between ports. - + Vertical offset of the title text. @@ -334,10 +334,6 @@ The [StyleBox] used when [member comment] is enabled and the [GraphNode] is focused. - - - - The default background for [GraphNode]. diff --git a/doc/classes/HSplitContainer.xml b/doc/classes/HSplitContainer.xml index f2c505b1bc..6ba079bc66 100644 --- a/doc/classes/HSplitContainer.xml +++ b/doc/classes/HSplitContainer.xml @@ -18,7 +18,5 @@ The icon used for the grabber drawn in the middle area. - - diff --git a/doc/classes/ItemList.xml b/doc/classes/ItemList.xml index 593d0c9523..c87c5d2868 100644 --- a/doc/classes/ItemList.xml +++ b/doc/classes/ItemList.xml @@ -463,7 +463,7 @@ - + Default text [Color] of the item. diff --git a/doc/classes/LineEdit.xml b/doc/classes/LineEdit.xml index ff01ad72fd..224579e8c5 100644 --- a/doc/classes/LineEdit.xml +++ b/doc/classes/LineEdit.xml @@ -382,28 +382,28 @@ - + Color of the [LineEdit]'s caret (text cursor). This can be set to a fully transparent color to hide the caret entirely. - + Color used as default tint for the clear button. Color used for the clear button when it's pressed. - + Default font color. The tint of text outline of the [LineEdit]. - + Font color for selected text (inside the selection rectangle). - + Font color when editing is disabled. - + Color of the selection rectangle. diff --git a/doc/classes/LinkButton.xml b/doc/classes/LinkButton.xml index a20db4d7e9..4377fc1036 100644 --- a/doc/classes/LinkButton.xml +++ b/doc/classes/LinkButton.xml @@ -66,13 +66,13 @@ - + Default text [Color] of the [LinkButton]. - + Text [Color] used when the [LinkButton] is focused. Only replaces the normal text color of the button. Disabled, hovered, and pressed states take precedence over this color. - + Text [Color] used when the [LinkButton] is being hovered. diff --git a/doc/classes/MenuButton.xml b/doc/classes/MenuButton.xml index 632b22c1de..79d1c05be4 100644 --- a/doc/classes/MenuButton.xml +++ b/doc/classes/MenuButton.xml @@ -46,16 +46,16 @@ - + Default text [Color] of the [MenuButton]. Text [Color] used when the [MenuButton] is disabled. - + Text [Color] used when the [MenuButton] is focused. Only replaces the normal text color of the button. Disabled, hovered, and pressed states take precedence over this color. - + Text [Color] used when the [MenuButton] is being hovered. diff --git a/doc/classes/OptionButton.xml b/doc/classes/OptionButton.xml index 87561917f3..7bb67be4c4 100644 --- a/doc/classes/OptionButton.xml +++ b/doc/classes/OptionButton.xml @@ -182,16 +182,16 @@ - + Default text [Color] of the [OptionButton]. - + Text [Color] used when the [OptionButton] is disabled. - + Text [Color] used when the [OptionButton] is focused. Only replaces the normal text color of the button. Disabled, hovered, and pressed states take precedence over this color. - + Text [Color] used when the [OptionButton] is being hovered. @@ -200,7 +200,7 @@ Text [Color] used when the [OptionButton] is being pressed. - + The horizontal space between the arrow icon and the right edge of the button. diff --git a/doc/classes/PopupMenu.xml b/doc/classes/PopupMenu.xml index b45f62394d..108c674ef7 100644 --- a/doc/classes/PopupMenu.xml +++ b/doc/classes/PopupMenu.xml @@ -538,19 +538,19 @@ The text [Color] used for shortcuts and accelerators that show next to the menu item name when defined. See [method get_item_accelerator] for more info on accelerators. - + The default text [Color] for menu items' names. [Color] used for disabled menu items' text. - + [Color] used for the hovered text. The tint of text outline of the menu item. - + [Color] used for labeled separators' text. See [method add_separator]. diff --git a/doc/classes/ProgressBar.xml b/doc/classes/ProgressBar.xml index 24cc490ce7..923ce0c53e 100644 --- a/doc/classes/ProgressBar.xml +++ b/doc/classes/ProgressBar.xml @@ -16,7 +16,7 @@ - + The color of the text. diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 357186b917..a92afb7ea7 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -562,8 +562,7 @@ Path to a custom [Font] resource to use as default for all GUI elements of the project. - - If [code]true[/code], makes sure the theme used works with HiDPI. + Timer setting for incremental search in [Tree], [ItemList], etc. controls (in milliseconds). diff --git a/doc/classes/TabBar.xml b/doc/classes/TabBar.xml index 71df40a693..59a4743d80 100644 --- a/doc/classes/TabBar.xml +++ b/doc/classes/TabBar.xml @@ -282,16 +282,16 @@ - + Font color of disabled tabs. The tint of text outline of the tab name. - + Font color of the currently selected tab. - + Font color of the other, unselected tabs. diff --git a/doc/classes/TabContainer.xml b/doc/classes/TabContainer.xml index d6e1e13505..3b814b6177 100644 --- a/doc/classes/TabContainer.xml +++ b/doc/classes/TabContainer.xml @@ -178,16 +178,16 @@ - + Font color of disabled tabs. The tint of text outline of the tab name. - + Font color of the currently selected tab. - + Font color of the other, unselected tabs. diff --git a/doc/classes/TextEdit.xml b/doc/classes/TextEdit.xml index 3197e59248..ea8cf04a69 100644 --- a/doc/classes/TextEdit.xml +++ b/doc/classes/TextEdit.xml @@ -1222,22 +1222,22 @@ [Color] of the text behind the caret when using a block caret. - + [Color] of the caret. This can be set to a fully transparent color to hide the caret entirely. Background [Color] of the line containing the caret. - + Sets the font [Color]. The tint of text outline of the [TextEdit]. - + Sets the font [Color] when [member editable] is disabled. - + Sets the [Color] of the selected text. [member override_selected_font_color] has to be enabled. @@ -1246,10 +1246,10 @@ [Color] behind the text that matches the search query. - + Sets the highlight [Color] of text selections. - + Sets the highlight [Color] of multiple occurrences. [member highlight_all_occurrences] has to be enabled. diff --git a/doc/classes/Tree.xml b/doc/classes/Tree.xml index 10bbdc0301..5130851948 100644 --- a/doc/classes/Tree.xml +++ b/doc/classes/Tree.xml @@ -467,13 +467,13 @@ The [Color] of the relationship lines between the selected [TreeItem] and its children. - + Text [Color] for a [constant TreeItem.CELL_MODE_CUSTOM] mode cell when it's hovered. [Color] used to draw possible drop locations. See [enum DropModeFlags] constants for further description of drop locations. - + Default text [Color] of the item. @@ -482,7 +482,7 @@ Text [Color] used when the item is selected. - + [Color] of the guideline. @@ -491,7 +491,7 @@ The default [Color] of the relationship lines. - + Default text [Color] of the title button. @@ -509,7 +509,7 @@ The horizontal space between item cells. This is also used as the margin at the start of an item when folding is disabled. - + The horizontal margin at the start of an item. This is used when folding is enabled for the item. diff --git a/doc/classes/VSplitContainer.xml b/doc/classes/VSplitContainer.xml index 6316068e9d..33470ac7be 100644 --- a/doc/classes/VSplitContainer.xml +++ b/doc/classes/VSplitContainer.xml @@ -18,7 +18,5 @@ The icon used for the grabber drawn in the middle area. - - diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml index 0e4e3a65f8..3bb6603646 100644 --- a/doc/classes/Window.xml +++ b/doc/classes/Window.xml @@ -443,20 +443,20 @@ - + The color of the title outline. - + - + The size of the title outline. -- cgit v1.2.3