소스 검색

Merge pull request #8861 from volzhs/editor-theme-filedialog

Show disabled item with proper color on FileDialog of editor theme
Rémi Verschelde 8 년 전
부모
커밋
712fcbebfb
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      editor/editor_themes.cpp

+ 5 - 0
editor/editor_themes.cpp

@@ -413,6 +413,11 @@ Ref<Theme> create_editor_theme() {
 	theme->set_stylebox("comment", "GraphNode", graphsbcomment);
 	theme->set_stylebox("commentfocus", "GraphNode", graphsbcommentselected);
 
+	// FileDialog
+	Color disable_color = light_color_2;
+	disable_color.a = 0.7;
+	theme->set_color("files_disabled", "FileDialog", disable_color);
+
 	return theme;
 }