From 8f1ac63f60dbca1b047526cded66135893d6839f Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 20 May 2022 16:07:49 +0200 Subject: [PATCH] Tweak the disabled files text color in FileDialog for readability Contrast rate is still fairly low, but the text needs to be easy enough to distinguish from non-disabled items. (cherry picked from commit 8962d2760d05a2027d65d104bf3763edb828c52a) --- doc/classes/FileDialog.xml | 2 +- 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 68881a14c..25fe08914 100644 --- a/doc/classes/FileDialog.xml +++ b/doc/classes/FileDialog.xml @@ -130,7 +130,7 @@ The color modulation applied to the file icon. - + The color tint for disabled files (when the [FileDialog] is used in open folder mode). diff --git a/scene/resources/default_theme/default_theme.cpp b/scene/resources/default_theme/default_theme.cpp index 3a13494c0..161696822 100644 --- a/scene/resources/default_theme/default_theme.cpp +++ b/scene/resources/default_theme/default_theme.cpp @@ -784,7 +784,7 @@ void fill_default_theme(Ref &theme, const Ref &default_font, const theme->set_icon("file", "FileDialog", make_icon(icon_file_png)); 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)); // ColorPicker