瀏覽代碼

Merge pull request #91281 from ckaiser/the-lightmode-struggle-continues

Fix disabled files in FileDialog using the wrong color
Rémi Verschelde 1 年之前
父節點
當前提交
394941c8f8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      editor/themes/editor_theme_manager.cpp

+ 1 - 1
editor/themes/editor_theme_manager.cpp

@@ -1291,7 +1291,7 @@ void EditorThemeManager::_populate_standard_styles(const Ref<EditorTheme> &p_the
 		// Use a different color for folder icons to make them easier to distinguish from files.
 		// On a light theme, the icon will be dark, so we need to lighten it before blending it with the accent color.
 		p_theme->set_color("folder_icon_color", "FileDialog", (p_config.dark_theme ? Color(1, 1, 1) : Color(4.25, 4.25, 4.25)).lerp(p_config.accent_color, 0.7));
-		p_theme->set_color("files_disabled", "FileDialog", p_config.font_disabled_color);
+		p_theme->set_color("file_disabled_color", "FileDialog", p_config.font_disabled_color);
 
 		// PopupDialog.
 		p_theme->set_stylebox("panel", "PopupDialog", p_config.popup_style);