diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-08-20 00:08:40 +0200 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2019-08-20 00:10:27 +0200 |
commit | be8d569744e4eed9acb313d355d96e6989e92087 (patch) | |
tree | 11458a465c0dc56c159e89f53b7bd0f03afd44d4 /scene/resources/default_theme | |
parent | cce148b0242836b5c32a7fa6c39013a2fc1c9eff (diff) |
Use a different color for folder icons in file dialogs
This makes them easier to distinguish from files for quick
visual grepping.
This can also be used in projects by setting the FileDialog "folder"
color. The default value (`Color(1, 1, 1)`) has no visual impact,
for compatibility with existing projects.
Diffstat (limited to 'scene/resources/default_theme')
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index fb0fb4f8e3..90787780d3 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -760,6 +760,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const // FileDialog theme->set_icon("folder", "FileDialog", make_icon(icon_folder_png)); + theme->set_color("folder", "FileDialog", Color(1, 1, 1)); theme->set_color("files_disabled", "FileDialog", Color(0, 0, 0, 0.7)); // colorPicker |