Skip to content

Commit

Permalink
Merge pull request #250 from WhalesState/blazium-default-theme
Browse files Browse the repository at this point in the history
Add Blazium default theme.
  • Loading branch information
Bioblaze authored Jan 27, 2025
2 parents 981c732 + a54827e commit 4a71f52
Show file tree
Hide file tree
Showing 120 changed files with 2,409 additions and 231 deletions.
2 changes: 2 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ repos:
platform/android/java/editor/src/main/java/com/android/.*|
platform/android/java/lib/src/com/.*|
modules/blazium_sdk/.*|
scene/theme/blazium_default_theme.cpp|
scene/theme/blazium_default_theme.h|
platform/android/java/lib/src/org/godotengine/godot/gl/GLSurfaceView\.java$|
platform/android/java/lib/src/org/godotengine/godot/gl/EGLLogWrapper\.java$|
platform/android/java/lib/src/org/godotengine/godot/utils/ProcessPhoenix\.java$
Expand Down
4 changes: 4 additions & 0 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ opts.Add(BoolVariable("use_volk", "Use the volk library to load the Vulkan loade
opts.Add(BoolVariable("disable_exceptions", "Force disabling exception handling code", True))
opts.Add("custom_modules", "A list of comma-separated directory paths containing custom modules to build.", "")
opts.Add(BoolVariable("custom_modules_recursive", "Detect custom modules recursively for each specified path.", True))
opts.Add(BoolVariable("legacy_theme", "Allow using the legacy default theme.", False))

# Advanced options
opts.Add(BoolVariable("dev_mode", "Alias for dev options: verbose=yes warnings=extra werror=yes tests=yes", False))
Expand Down Expand Up @@ -526,6 +527,9 @@ if not env["deprecated"]:
if env["precision"] == "double":
env.Append(CPPDEFINES=["REAL_T_IS_DOUBLE"])

if env["legacy_theme"]:
env.Append(CPPDEFINES=["USE_LEGACY_THEME"])

tmppath = "./platform/" + env["platform"]
sys.path.insert(0, tmppath)
import detect
Expand Down
24 changes: 12 additions & 12 deletions doc/classes/Button.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,43 +79,43 @@
</member>
</members>
<theme_items>
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
Default text [Color] of the [Button].
</theme_item>
<theme_item name="font_disabled_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.5)">
<theme_item name="font_disabled_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.4)">
Text [Color] used when the [Button] is disabled.
</theme_item>
<theme_item name="font_focus_color" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
<theme_item name="font_focus_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.9)">
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.
</theme_item>
<theme_item name="font_hover_color" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
<theme_item name="font_hover_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
Text [Color] used when the [Button] is being hovered.
</theme_item>
<theme_item name="font_hover_pressed_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="font_hover_pressed_color" data_type="color" type="Color" default="Color(0.226, 0.478, 0.921, 1)">
Text [Color] used when the [Button] is being hovered and pressed.
</theme_item>
<theme_item name="font_outline_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
The tint of text outline of the [Button].
</theme_item>
<theme_item name="font_pressed_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="font_pressed_color" data_type="color" type="Color" default="Color(0.226, 0.478, 0.921, 1)">
Text [Color] used when the [Button] is being pressed.
</theme_item>
<theme_item name="icon_disabled_color" data_type="color" type="Color" default="Color(1, 1, 1, 0.4)">
<theme_item name="icon_disabled_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.4)">
Icon modulate [Color] used when the [Button] is disabled.
</theme_item>
<theme_item name="icon_focus_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="icon_focus_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.9)">
Icon modulate [Color] used when the [Button] is focused. Only replaces the normal modulate color of the button. Disabled, hovered, and pressed states take precedence over this color.
</theme_item>
<theme_item name="icon_hover_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="icon_hover_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
Icon modulate [Color] used when the [Button] is being hovered.
</theme_item>
<theme_item name="icon_hover_pressed_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="icon_hover_pressed_color" data_type="color" type="Color" default="Color(0.226, 0.478, 0.921, 1)">
Icon modulate [Color] used when the [Button] is being hovered and pressed.
</theme_item>
<theme_item name="icon_normal_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="icon_normal_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
Default icon modulate [Color] of the [Button].
</theme_item>
<theme_item name="icon_pressed_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="icon_pressed_color" data_type="color" type="Color" default="Color(0.226, 0.478, 0.921, 1)">
Icon modulate [Color] used when the [Button] is being pressed.
</theme_item>
<theme_item name="align_to_largest_stylebox" data_type="constant" type="int" default="0">
Expand Down
4 changes: 2 additions & 2 deletions doc/classes/CodeEdit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -679,10 +679,10 @@
<theme_item name="completion_existing_color" data_type="color" type="Color" default="Color(0.87, 0.87, 0.87, 0.13)">
Background highlight [Color] for matching text in code completion options.
</theme_item>
<theme_item name="completion_scroll_color" data_type="color" type="Color" default="Color(1, 1, 1, 0.29)">
<theme_item name="completion_scroll_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.4)">
[Color] of the scrollbar in the code completion popup.
</theme_item>
<theme_item name="completion_scroll_hovered_color" data_type="color" type="Color" default="Color(1, 1, 1, 0.4)">
<theme_item name="completion_scroll_hovered_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.4)">
[Color] of the scrollbar in the code completion popup when hovered.
</theme_item>
<theme_item name="completion_selected_color" data_type="color" type="Color" default="Color(0.26, 0.26, 0.27, 1)">
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/ColorPicker.xml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
<theme_item name="label_width" data_type="constant" type="int" default="10">
The minimum width of the color labels next to sliders.
</theme_item>
<theme_item name="margin" data_type="constant" type="int" default="4">
<theme_item name="margin" data_type="constant" type="int" default="6">
The margin around the [ColorPicker].
</theme_item>
<theme_item name="preset_size" data_type="constant" type="int" default="30">
Expand Down
6 changes: 3 additions & 3 deletions doc/classes/FileDialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@
</constant>
</constants>
<theme_items>
<theme_item name="file_disabled_color" data_type="color" type="Color" default="Color(1, 1, 1, 0.25)">
<theme_item name="file_disabled_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.4)">
The color tint for disabled files (when the [FileDialog] is used in open folder mode).
</theme_item>
<theme_item name="file_icon_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="file_icon_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
The color modulation applied to the file icon.
</theme_item>
<theme_item name="folder_icon_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="folder_icon_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
The color modulation applied to the folder icon.
</theme_item>
<theme_item name="back_folder" data_type="icon" type="Texture2D">
Expand Down
18 changes: 9 additions & 9 deletions doc/classes/FoldableContainer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -287,31 +287,31 @@
</constant>
</constants>
<theme_items>
<theme_item name="button_icon_disabled" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.5)">
<theme_item name="button_icon_disabled" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.4)">
The title's icon color when disabled.
</theme_item>
<theme_item name="button_icon_hovered" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
<theme_item name="button_icon_hovered" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
The title's icon color when hovered.
</theme_item>
<theme_item name="button_icon_normal" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
<theme_item name="button_icon_normal" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
The title's icon color when normal.
</theme_item>
<theme_item name="button_icon_pressed" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="button_icon_pressed" data_type="color" type="Color" default="Color(0.226, 0.478, 0.921, 1)">
The title's icon color when pressed.
</theme_item>
<theme_item name="collapsed_font_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="collapsed_font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
The title's font color when collapsed.
</theme_item>
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
The title's font color when expanded.
</theme_item>
<theme_item name="font_outline_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="font_outline_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
The title's font outline color.
</theme_item>
<theme_item name="hover_font_color" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
<theme_item name="hover_font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
The title's font hover color.
</theme_item>
<theme_item name="h_separation" data_type="constant" type="int" default="2">
<theme_item name="h_separation" data_type="constant" type="int" default="4">
The horizontal separation between the title's icon and text.
</theme_item>
<theme_item name="outline_size" data_type="constant" type="int" default="0">
Expand Down
6 changes: 3 additions & 3 deletions doc/classes/GraphEdit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@
<theme_item name="connection_hover_tint_color" data_type="color" type="Color" default="Color(0, 0, 0, 0.3)">
Color which is blended with the connection line when the mouse is hovering over it.
</theme_item>
<theme_item name="connection_rim_color" data_type="color" type="Color" default="Color(0.1, 0.1, 0.1, 0.6)">
<theme_item name="connection_rim_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
Color of the rim around each connection line used for making intersecting lines more distinguishable.
</theme_item>
<theme_item name="connection_valid_target_tint_color" data_type="color" type="Color" default="Color(1, 1, 1, 0.4)">
Expand All @@ -503,10 +503,10 @@
<theme_item name="grid_minor" data_type="color" type="Color" default="Color(1, 1, 1, 0.05)">
Color of minor grid lines/dots.
</theme_item>
<theme_item name="selection_fill" data_type="color" type="Color" default="Color(1, 1, 1, 0.3)">
<theme_item name="selection_fill" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.4)">
The fill color of the selection rectangle.
</theme_item>
<theme_item name="selection_stroke" data_type="color" type="Color" default="Color(1, 1, 1, 0.8)">
<theme_item name="selection_stroke" data_type="color" type="Color" default="Color(0.226, 0.478, 0.921, 1)">
The outline color of the selection rectangle.
</theme_item>
<theme_item name="port_hotzone_inner_extent" data_type="constant" type="int" default="22">
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/GraphFrame.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</signal>
</signals>
<theme_items>
<theme_item name="resizer_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
<theme_item name="resizer_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.9)">
The color modulation applied to the resizer icon.
</theme_item>
<theme_item name="panel" data_type="style" type="StyleBox">
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/GraphNode.xml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
</signal>
</signals>
<theme_items>
<theme_item name="resizer_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
<theme_item name="resizer_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.9)">
The color modulation applied to the resizer icon.
</theme_item>
<theme_item name="port_h_offset" data_type="constant" type="int" default="0">
Expand Down
8 changes: 4 additions & 4 deletions doc/classes/ItemList.xml
Original file line number Diff line number Diff line change
Expand Up @@ -455,19 +455,19 @@
</constant>
</constants>
<theme_items>
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.65, 0.65, 0.65, 1)">
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
Default text [Color] of the item.
</theme_item>
<theme_item name="font_hovered_color" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
<theme_item name="font_hovered_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
Text [Color] used when the item is hovered and not selected yet.
</theme_item>
<theme_item name="font_outline_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
The tint of text outline of the item.
</theme_item>
<theme_item name="font_selected_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="font_selected_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
Text [Color] used when the item is selected.
</theme_item>
<theme_item name="guide_color" data_type="color" type="Color" default="Color(0.7, 0.7, 0.7, 0.25)">
<theme_item name="guide_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.4)">
[Color] of the guideline. The guideline is a line drawn between each row of items.
</theme_item>
<theme_item name="h_separation" data_type="constant" type="int" default="4">
Expand Down
4 changes: 2 additions & 2 deletions doc/classes/Label.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
</member>
</members>
<theme_items>
<theme_item name="font_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
Default text [Color] of the [Label].
</theme_item>
<theme_item name="font_outline_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
Expand All @@ -121,7 +121,7 @@
<theme_item name="font_shadow_color" data_type="color" type="Color" default="Color(0, 0, 0, 0)">
[Color] of the text's shadow effect.
</theme_item>
<theme_item name="line_spacing" data_type="constant" type="int" default="3">
<theme_item name="line_spacing" data_type="constant" type="int" default="2">
Vertical space between lines in multiline [Label].
</theme_item>
<theme_item name="outline_size" data_type="constant" type="int" default="0">
Expand Down
14 changes: 7 additions & 7 deletions doc/classes/LineEdit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -495,16 +495,16 @@
</constant>
</constants>
<theme_items>
<theme_item name="caret_color" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
<theme_item name="caret_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
Color of the [LineEdit]'s caret (text cursor). This can be set to a fully transparent color to hide the caret entirely.
</theme_item>
<theme_item name="clear_button_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
<theme_item name="clear_button_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
Color used as default tint for the clear button.
</theme_item>
<theme_item name="clear_button_color_pressed" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="clear_button_color_pressed" data_type="color" type="Color" default="Color(0.226, 0.478, 0.921, 1)">
Color used for the clear button when it's pressed.
</theme_item>
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
Default font color.
</theme_item>
<theme_item name="font_outline_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
Expand All @@ -513,13 +513,13 @@
<theme_item name="font_placeholder_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.6)">
Font color for [member placeholder_text].
</theme_item>
<theme_item name="font_selected_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="font_selected_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
Font color for selected text (inside the selection rectangle).
</theme_item>
<theme_item name="font_uneditable_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.5)">
<theme_item name="font_uneditable_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.6)">
Font color when editing is disabled.
</theme_item>
<theme_item name="selection_color" data_type="color" type="Color" default="Color(0.5, 0.5, 0.5, 1)">
<theme_item name="selection_color" data_type="color" type="Color" default="Color(0.12032, 0.12032, 0.12032, 1)">
Color of the selection rectangle.
</theme_item>
<theme_item name="caret_width" data_type="constant" type="int" default="1">
Expand Down
12 changes: 6 additions & 6 deletions doc/classes/LinkButton.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,25 @@
</constant>
</constants>
<theme_items>
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
<theme_item name="font_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.8)">
Default text [Color] of the [LinkButton].
</theme_item>
<theme_item name="font_disabled_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
<theme_item name="font_disabled_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.4)">
Text [Color] used when the [LinkButton] is disabled.
</theme_item>
<theme_item name="font_focus_color" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
<theme_item name="font_focus_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 0.9)">
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.
</theme_item>
<theme_item name="font_hover_color" data_type="color" type="Color" default="Color(0.95, 0.95, 0.95, 1)">
<theme_item name="font_hover_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)">
Text [Color] used when the [LinkButton] is being hovered.
</theme_item>
<theme_item name="font_hover_pressed_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
<theme_item name="font_hover_pressed_color" data_type="color" type="Color" default="Color(0.226, 0.478, 0.921, 1)">
Text [Color] used when the [LinkButton] is being hovered and pressed.
</theme_item>
<theme_item name="font_outline_color" data_type="color" type="Color" default="Color(0, 0, 0, 1)">
The tint of text outline of the [LinkButton].
</theme_item>
<theme_item name="font_pressed_color" data_type="color" type="Color" default="Color(1, 1, 1, 1)">
<theme_item name="font_pressed_color" data_type="color" type="Color" default="Color(0.226, 0.478, 0.921, 1)">
Text [Color] used when the [LinkButton] is being pressed.
</theme_item>
<theme_item name="outline_size" data_type="constant" type="int" default="0">
Expand Down
Loading

0 comments on commit 4a71f52

Please sign in to comment.