Skip to content

Commit

Permalink
Editor: add gutter to preview and update inline colors in the script …
Browse files Browse the repository at this point in the history
…and shader editors.
  • Loading branch information
poirierlouis committed May 30, 2023
1 parent 8f25cc2 commit 3b87a8a
Show file tree
Hide file tree
Showing 7 changed files with 447 additions and 109 deletions.
3 changes: 3 additions & 0 deletions doc/classes/EditorSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,9 @@
<member name="text_editor/appearance/gutters/line_numbers_zero_padded" type="bool" setter="" getter="">
If [code]true[/code], displays line numbers with zero padding (e.g. [code]007[/code] instead of [code]7[/code]).
</member>
<member name="text_editor/appearance/gutters/show_color_preview_gutter" type="bool" setter="" getter="">
If [code]true[/code], displays inline color preview in a gutter at the left. Only preview the first inline color. Click on the gutter to show a [ColorPicker] and change the inline color.
</member>
<member name="text_editor/appearance/gutters/show_info_gutter" type="bool" setter="" getter="">
If [code]true[/code], displays a gutter at the left containing icons for methods with signal connections and for overridden methods.
</member>
Expand Down
1 change: 1 addition & 0 deletions editor/editor_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
_initial_set("text_editor/appearance/gutters/line_numbers_zero_padded", false);
_initial_set("text_editor/appearance/gutters/highlight_type_safe_lines", true);
_initial_set("text_editor/appearance/gutters/show_info_gutter", true);
_initial_set("text_editor/appearance/gutters/show_color_preview_gutter", true);

// Appearance: Minimap
_initial_set("text_editor/appearance/minimap/show_minimap", true);
Expand Down
1 change: 1 addition & 0 deletions editor/icons/ColorPreviewOpaque.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3b87a8a

Please sign in to comment.