소스 검색

Reorganize Theme resource code for better maintainability

Yuri Sizov 4 년 전
부모
커밋
8aa78bc050
2개의 변경된 파일651개의 추가작업 그리고 554개의 파일을 삭제
  1. 646 553
      scene/resources/theme.cpp
  2. 5 1
      scene/resources/theme.h

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 646 - 553
scene/resources/theme.cpp


+ 5 - 1
scene/resources/theme.h

@@ -96,13 +96,17 @@ protected:
 	bool _get(const StringName &p_name, Variant &r_ret) const;
 	void _get_property_list(List<PropertyInfo> *p_list) const;
 
-	static Ref<Theme> project_default_theme;
+	// Universal Theme resources used when no other theme has the item.
 	static Ref<Theme> default_theme;
+	static Ref<Theme> project_default_theme;
+
+	// Universal default values, final fallback for every theme.
 	static Ref<Texture2D> default_icon;
 	static Ref<StyleBox> default_style;
 	static Ref<Font> default_font;
 	static int default_font_size;
 
+	// Default values configurable for each individual theme.
 	Ref<Font> default_theme_font;
 	int default_theme_font_size = -1;
 

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.