*/}}
Parcourir la source

theme load fix

YimingWu il y a 3 mois
Parent
commit
9f971242f6
2 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 1 1
      la_kernel.c
  2. 2 2
      resources/la_properties.c

+ 1 - 1
la_kernel.c

@@ -1573,10 +1573,10 @@ void laSaveUserPreferences(){
 #endif
     laUDF* udf=laPrepareUDF(path);
     laWriteProp(udf,"la.windows");
+    laWriteProp(udf,"la.themes");
     laWriteProp(udf,"la.user_preferences");
     laWriteProp(udf,"la.input_mapping");
     laWriteProp(udf,"la.controllers");
-    laWriteProp(udf,"la.themes");
     for(laListItemPointer* lip=MAIN.ExtraPreferencePaths.pFirst;lip;lip=lip->pNext){
         laWriteProp(udf,lip->p);
     }

+ 2 - 2
resources/la_properties.c

@@ -33,7 +33,7 @@ void laset_TerminalInput(void* unused, char* content){
     strcpy(MAIN.TerminalInput,content);
 }
 
-void lapost_Theme(laTheme *th){
+void lapostim_Theme(laTheme *th){
     for(laBoxedTheme* bt=th->BoxedThemes.pFirst;bt;bt=bt->Item.pNext){
         memAssignRef(bt, &bt->Parent,th);
     }
@@ -1560,7 +1560,7 @@ void la_RegisterInternalProps(){
                 laAddSubGroup(p, "parent", "Parent", "Parent Theme", "theme",0,0,0,offsetof(laBoxedTheme, Parent), 0,0,0,0,0,0,0,LA_UDF_REFER);
             }
 
-            p = laAddPropertyContainer("theme", "Theme Package", "A package with all types of theme for ui items", 0,laui_Theme, sizeof(laTheme), lapost_Theme,0,2);{
+            p = laAddPropertyContainer("theme", "Theme Package", "A package with all types of theme for ui items", 0,laui_Theme, sizeof(laTheme), 0,lapostim_Theme,2);{
                 laAddStringProperty(p, "name", "Name", "Theme name", 0,0,0,0,1, offsetof(laTheme, Name), 0,0,laset_ThemeName,0,LA_AS_IDENTIFIER);
                 laAddStringProperty(p, "author", "Author", "The author's name", 0,0,0,0,1, offsetof(laTheme, Author), 0,0,0,0,0);
                 laAddSubGroup(p, "boxed_themes", "Boxed Themes", "The Boxed Theme For Single UiItem Or Panel", "boxed_theme",0,0,0,-1, 0,0,0,0,0,0,offsetof(laTheme, BoxedThemes), 0);