mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Implement tooltips for shader uniform in the inspector.
using regular expressions
This commit is contained in:
parent
4a0160241f
commit
e3a7c751f2
3 changed files with 52 additions and 1 deletions
|
@ -311,6 +311,9 @@ void ShaderTextEditor::_load_theme_settings() {
|
|||
syntax_highlighter->add_color_region("/*", "*/", comment_color, false);
|
||||
syntax_highlighter->add_color_region("//", "", comment_color, true);
|
||||
|
||||
const Color doc_comment_color = EDITOR_GET("text_editor/theme/highlighting/doc_comment_color");
|
||||
syntax_highlighter->add_color_region("/**", "*/", doc_comment_color, false);
|
||||
|
||||
// Disabled preprocessor branches use translucent text color to be easier to distinguish from comments.
|
||||
syntax_highlighter->set_disabled_branch_color(Color(EDITOR_GET("text_editor/theme/highlighting/text_color")) * Color(1, 1, 1, 0.5));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue