diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-05-20 18:46:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 18:46:28 +0200 |
commit | b3bb83b65146df27c4e602f768403af18705fcb9 (patch) | |
tree | bb3ec01a4d42911881857a16f8449c3d33a9a9b2 | |
parent | 25ec4b447b27036c2c285cd29f7c9a9ad63acc39 (diff) | |
parent | 8962d2760d05a2027d65d104bf3763edb828c52a (diff) |
Merge pull request #61224 from Calinou/filedialog-tweak-disabled-files-color
-rw-r--r-- | doc/classes/FileDialog.xml | 2 | ||||
-rw-r--r-- | scene/resources/default_theme/default_theme.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/FileDialog.xml b/doc/classes/FileDialog.xml index db536a738a..9d55704604 100644 --- a/doc/classes/FileDialog.xml +++ b/doc/classes/FileDialog.xml @@ -130,7 +130,7 @@ <theme_item name="file_icon_modulate" data_type="color" type="Color" default="Color(1, 1, 1, 1)"> The color modulation applied to the file icon. </theme_item> - <theme_item name="files_disabled" data_type="color" type="Color" default="Color(0, 0, 0, 0.7)"> + <theme_item name="files_disabled" data_type="color" type="Color" default="Color(1, 1, 1, 0.25)"> The color tint for disabled files (when the [FileDialog] is used in open folder mode). </theme_item> <theme_item name="folder_icon_modulate" data_type="color" type="Color" default="Color(1, 1, 1, 1)"> diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 0c2999a700..ba22fdcad3 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -605,7 +605,7 @@ void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const theme->set_icon("file", "FileDialog", icons["file"]); theme->set_color("folder_icon_modulate", "FileDialog", Color(1, 1, 1)); theme->set_color("file_icon_modulate", "FileDialog", Color(1, 1, 1)); - theme->set_color("files_disabled", "FileDialog", Color(0, 0, 0, 0.7)); + theme->set_color("files_disabled", "FileDialog", Color(1, 1, 1, 0.25)); // Popup |