From 65569bb26ca94e27fa6ce9d5e3eb0bb1c76f4bbb Mon Sep 17 00:00:00 2001 From: bitbrain Date: Wed, 19 Aug 2026 19:26:28 +0100 Subject: [PATCH] update for Godot 4.7+ --- GodotDash.tet | 52 +++++++++++++++++++++++ README.md | 45 ++++++++++++++++++-- editor_settings-4.7-themeonly.tres | 67 ++++++++++++++++++++++++++++++ 3 files changed, 161 insertions(+), 3 deletions(-) create mode 100644 GodotDash.tet create mode 100644 editor_settings-4.7-themeonly.tres diff --git a/GodotDash.tet b/GodotDash.tet new file mode 100644 index 0000000..5c9aa8c --- /dev/null +++ b/GodotDash.tet @@ -0,0 +1,52 @@ +[color_theme] + +background_color="0e1013ff" +base_type_color="f54784ff" +bookmark_color="637bc5ff" +brace_mismatch_color="ff4554ff" +breakpoint_color="ff4554ff" +caret_background_color="000000ff" +caret_color="dbe5edff" +code_folding_color="dbe5ed45" +comment_color="353e4aff" +comment_markers/critical_color="ff4554ff" +comment_markers/notice_color="4ebc6bff" +comment_markers/warning_color="ed9c50ff" +completion_background_color="2b2933ff" +completion_existing_color="43c5e5ff" +completion_font_color="dbe5edff" +completion_scroll_color="ffffff4a" +completion_scroll_hovered_color="ffffff66" +completion_selected_color="353e4aff" +control_flow_keyword_color="5b85ffff" +current_line_color="ffffff12" +doc_comment_color="5c697aff" +engine_type_color="f54784ff" +executing_line_color="47586fff" +folded_code_region_color="ad75c433" +function_color="ffffffff" +keyword_color="5b85ffff" +line_length_guideline_color="4d80cc1a" +line_number_color="353e4aff" +mark_color="ff45544d" +member_variable_color="ffffffff" +number_color="ed9c50ff" +safe_line_number_color="5c697aff" +search_result_border_color="637afe61" +search_result_color="4ebc6bff" +selection_color="637afe66" +string_color="4ebc6bff" +string_placeholder_color="ed9c50ff" +symbol_color="ffffffff" +text_color="dbe5edff" +text_selected_color="00000000" +user_type_color="dbe5edff" +warning_color="ed9c5026" +word_highlighted_color="ffffff12" + +gdscript/annotation_color="f54784ff" +gdscript/function_definition_color="ffffffff" +gdscript/global_function_color="5b85ffff" +gdscript/node_path_color="46c999ff" +gdscript/node_reference_color="46c999ff" +gdscript/string_name_color="ffa8b8ff" diff --git a/README.md b/README.md index 435acf5..05bee1b 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,52 @@ 5. `cp editor_settings-3.tres $HOME/.config/godot` -# How to install (Godot 4) +# How to install (Godot 4.6 / 4.7+) + +Godot 4.6+ stores editor settings in a versioned file (`editor_settings-4.7.tres` for 4.7), moved font keys under `interface/editor/fonts/`, and replaced `interface/theme/preset` with `interface/theme/color_preset`. The script editor also loads `.tet` files from `text_editor_themes/`. + +Steam installs are self-contained: settings live next to the binary in `editor_data/`, not in `~/.config/godot`. + +## Windows +1. Download the latest version of this project [here](https://github.com/bitbrain/godot-dash/archive/refs/heads/main.zip) and unzip it. +2. [Download Ubuntu Regular and Bold](https://fonts.google.com/specimen/Ubuntu) (.ttf) and move it into a folder of your choosing. This will be the Interface font for Godot. +3. [Download Cascadia Code font](https://github.com/microsoft/cascadia-code/releases) and move it into a folder of your choosing. This font will be the code editor font. +4. Head into your Godot data folder (Steam: `C:\Program Files (x86)\Steam\steamapps\common\Godot Engine\editor_data`) and copy `GodotDash.tet` into `text_editor_themes/`. +5. Edit `editor_settings-4.7.tres` (or `editor_settings-4.6.tres` on 4.6). Merge the keys from `editor_settings-4.7-themeonly.tres` under the `[resource]` group instead of replacing the whole file. +6. Point the font keys at your downloaded files: + ``` + interface/editor/fonts/main_font = "ABSOLUTE_PATH_TO_YOUR_FONT/Ubuntu-Regular.ttf" + interface/editor/fonts/main_font_bold = "ABSOLUTE_PATH_TO_YOUR_FONT/Ubuntu-Bold.ttf" + interface/editor/fonts/code_font = "ABSOLUTE_PATH_TO_YOUR_FONT/CascadiaMono.ttf" + ``` +7. Restart the editor. Editor Settings → Interface → Theme should show **Color Preset: Custom**, and Text Editor → Theme should list **GodotDash**. + +## Linux + +1. Install fonts with a package manager, **or** copy them to `~/.local/share/fonts/`: + * [Ubuntu Regular and Bold](https://fonts.google.com/specimen/Ubuntu) + * [Cascadia Code](https://github.com/microsoft/cascadia-code/releases) + +2. `git clone https://github.com/bitbrain/godot-dash && cd godot-dash` + +3. Steam (self-contained): + ``` + EDITOR_DATA="$HOME/.local/share/Steam/steamapps/common/Godot Engine/editor_data" + cp GodotDash.tet "$EDITOR_DATA/text_editor_themes/" + ``` + Then merge `editor_settings-4.7-themeonly.tres` into `$EDITOR_DATA/editor_settings-4.7.tres` and set the font paths. + +4. Non-Steam: copy `GodotDash.tet` to `$HOME/.config/godot/text_editor_themes/` and merge the 4.7 theme-only keys into `$HOME/.config/godot/editor_settings-4.7.tres`. + +# How to install (Godot 4.0–4.5) + +Use `editor_settings-4.tres` / `editor_settings-4-themeonly.tres` and the older font keys (`interface/editor/main_font`, `interface/theme/preset`). Settings file is `editor_settings-4.tres`. ## Windows 1. Download the latest version of this project [here](https://github.com/bitbrain/godot-dash/archive/refs/heads/main.zip) and unzip it. 2. [Download Ubuntu Regular and Bold](https://fonts.google.com/specimen/Ubuntu) (.ttf) and move it into a folder of your choosing. This will be the Interface font for Godot. 3. [Download Cascadia Code font](https://github.com/microsoft/cascadia-code/releases) and move it into a folder of your choosing. This font will be the code editor font. -4. Head into your installation folder of Godot Engine (for example `C:\Program Files (x86)\Steam\steamapps\common\Godot Engine`) and edit the file `editor_data/editor_settings-4.tres` +4. Head into your installation folder of Godot Engine (for example `C:\Program Files (x86)\Steam\steamapps\common\Godot Engine`) and edit the file `editor_data/editor_settings-4.tres` 5. Copy the contents of editor_settings-4.tres provided in the previously downloaded folder into that file * Alternatively you can copy the settings from the file editor_settings-4-themeonly.tres. This file only has settings that touch theming related properties and is intended for existing installations of Godot where other properties might be already changed. Place these settings under the \[resource\] group 6. Head into your editor_settings-4.tres file and modify the following lines to match the absolute paths of your previously downloaded fonts: @@ -81,6 +120,6 @@ If you want to make changes to this font feel free to either fork it or adjust colours manually. However, the colours of this theme are fixed and will not change anytime soon. -For Godot 4 we will be hopefully able to export our own Editor themes. Until then, you will mostly rely on the instructions above. If you have any ideas how to speed up the setup process feel free to raise a pull request! +On Godot 4.6+ the code theme lives in `GodotDash.tet`. UI colors still have to be merged into editor settings until Godot can export a full editor theme. -Miguel :hearts: diff --git a/editor_settings-4.7-themeonly.tres b/editor_settings-4.7-themeonly.tres new file mode 100644 index 0000000..c3ba96a --- /dev/null +++ b/editor_settings-4.7-themeonly.tres @@ -0,0 +1,67 @@ +# Paste these settings under the [resource] section of editor_settings-4.7.tres. +# Godot 4.6+ / 4.7+ only: older 4.x still uses editor_settings-4.tres. +# For the script editor, also copy GodotDash.tet into text_editor_themes/. + +interface/editor/fonts/main_font_size = 12 +interface/editor/fonts/code_font_size = 18 +interface/editor/fonts/main_font = "ABSOLUTE_PATH_TO_YOUR_FONT/Ubuntu-Regular.ttf" +interface/editor/fonts/main_font_bold = "ABSOLUTE_PATH_TO_YOUR_FONT/Ubuntu-Bold.ttf" +interface/editor/fonts/code_font = "ABSOLUTE_PATH_TO_YOUR_FONT/CascadiaMono.ttf" +interface/theme/style = "Modern" +interface/theme/color_preset = "Custom" +interface/theme/icon_and_font_color = 2 +interface/theme/base_color = Color(0.054902, 0.0627451, 0.0745098, 1) +interface/theme/accent_color = Color(0.388235, 0.478431, 0.996078, 1) +interface/theme/contrast = 0.3 +interface/theme/corner_radius = 4 +interface/theme/additional_spacing = 1 +text_editor/theme/color_theme = "GodotDash" +text_editor/theme/highlighting/symbol_color = Color(1, 1, 1, 1) +text_editor/theme/highlighting/keyword_color = Color(0.356863, 0.521569, 1, 1) +text_editor/theme/highlighting/control_flow_keyword_color = Color(0.356863, 0.521569, 1, 1) +text_editor/theme/highlighting/base_type_color = Color(0.960784, 0.278431, 0.517647, 1) +text_editor/theme/highlighting/engine_type_color = Color(0.960784, 0.278431, 0.517647, 1) +text_editor/theme/highlighting/user_type_color = Color(0.858824, 0.898039, 0.929412, 1) +text_editor/theme/highlighting/comment_color = Color(0.207843, 0.243137, 0.290196, 1) +text_editor/theme/highlighting/doc_comment_color = Color(0.360784, 0.411765, 0.478431, 1) +text_editor/theme/highlighting/string_color = Color(0.305882, 0.737255, 0.419608, 1) +text_editor/theme/highlighting/string_placeholder_color = Color(0.929412, 0.611765, 0.313726, 1) +text_editor/theme/highlighting/background_color = Color(0.054902, 0.0627451, 0.0745098, 1) +text_editor/theme/highlighting/completion_background_color = Color(0.168627, 0.160784, 0.2, 1) +text_editor/theme/highlighting/completion_selected_color = Color(0.207843, 0.243137, 0.290196, 1) +text_editor/theme/highlighting/completion_existing_color = Color(0.262745, 0.772549, 0.898039, 1) +text_editor/theme/highlighting/completion_scroll_color = Color(1, 1, 1, 0.29) +text_editor/theme/highlighting/completion_scroll_hovered_color = Color(1, 1, 1, 0.4) +text_editor/theme/highlighting/completion_font_color = Color(0.858824, 0.898039, 0.929412, 1) +text_editor/theme/highlighting/text_color = Color(0.858824, 0.898039, 0.929412, 1) +text_editor/theme/highlighting/line_number_color = Color(0.207843, 0.243137, 0.290196, 1) +text_editor/theme/highlighting/safe_line_number_color = Color(0.360784, 0.411765, 0.478431, 1) +text_editor/theme/highlighting/caret_color = Color(0.858824, 0.898039, 0.929412, 1) +text_editor/theme/highlighting/caret_background_color = Color(0, 0, 0, 1) +text_editor/theme/highlighting/text_selected_color = Color(0, 0, 0, 0) +text_editor/theme/highlighting/selection_color = Color(0.388235, 0.478431, 0.996078, 0.4) +text_editor/theme/highlighting/brace_mismatch_color = Color(1, 0.270588, 0.329412, 1) +text_editor/theme/highlighting/current_line_color = Color(1, 1, 1, 0.07) +text_editor/theme/highlighting/line_length_guideline_color = Color(0.301961, 0.501961, 0.8, 0.101961) +text_editor/theme/highlighting/word_highlighted_color = Color(1, 1, 1, 0.07) +text_editor/theme/highlighting/number_color = Color(0.929412, 0.611765, 0.313726, 1) +text_editor/theme/highlighting/function_color = Color(1, 1, 1, 1) +text_editor/theme/highlighting/member_variable_color = Color(1, 1, 1, 1) +text_editor/theme/highlighting/mark_color = Color(1, 0.270588, 0.329412, 0.3) +text_editor/theme/highlighting/warning_color = Color(0.929412, 0.611765, 0.313726, 0.15) +text_editor/theme/highlighting/bookmark_color = Color(0.388235, 0.482353, 0.772549, 1) +text_editor/theme/highlighting/breakpoint_color = Color(1, 0.270588, 0.329412, 1) +text_editor/theme/highlighting/executing_line_color = Color(0.278431, 0.345098, 0.435294, 1) +text_editor/theme/highlighting/code_folding_color = Color(0.858824, 0.898039, 0.929412, 0.27) +text_editor/theme/highlighting/folded_code_region_color = Color(0.68, 0.46, 0.77, 0.2) +text_editor/theme/highlighting/search_result_color = Color(0.305882, 0.737255, 0.419608, 1) +text_editor/theme/highlighting/search_result_border_color = Color(0.388235, 0.478431, 0.996078, 0.38) +text_editor/theme/highlighting/gdscript/function_definition_color = Color(1, 1, 1, 1) +text_editor/theme/highlighting/gdscript/global_function_color = Color(0.356863, 0.521569, 1, 1) +text_editor/theme/highlighting/gdscript/node_path_color = Color(0.27451, 0.788235, 0.6, 1) +text_editor/theme/highlighting/gdscript/node_reference_color = Color(0.27451, 0.788235, 0.6, 1) +text_editor/theme/highlighting/gdscript/annotation_color = Color(0.960784, 0.278431, 0.517647, 1) +text_editor/theme/highlighting/gdscript/string_name_color = Color(1, 0.658824, 0.721569, 1) +text_editor/theme/highlighting/comment_markers/critical_color = Color(1, 0.270588, 0.329412, 1) +text_editor/theme/highlighting/comment_markers/warning_color = Color(0.929412, 0.611765, 0.313726, 1) +text_editor/theme/highlighting/comment_markers/notice_color = Color(0.305882, 0.737255, 0.419608, 1) -- 2.51.2