First commit to make "Style" settings saved in startup.blend
Usage currently is limited to: - Panel text, widget text and label text style: point size, shadow effects Setting individual fonts to these is not possible yet, it uses the default for it. Access goes via outliner now; check "User Preferences". UI team could add this in userpref scripts :)
This commit is contained in:
@@ -11757,7 +11757,8 @@ static BHead *read_userdef(BlendFileData *bfd, FileData *fd, BHead *bhead)
|
||||
|
||||
// XXX
|
||||
user->uifonts.first= user->uifonts.last= NULL;
|
||||
user->uistyles.first= user->uistyles.last= NULL;
|
||||
|
||||
link_list(fd, &user->uistyles);
|
||||
|
||||
/* free fd->datamap again */
|
||||
oldnewmap_free_unused(fd->datamap);
|
||||
|
@@ -723,7 +723,8 @@ static void write_userdef(WriteData *wd)
|
||||
wmKeyMap *keymap;
|
||||
wmKeyMapItem *kmi;
|
||||
bAddon *bext;
|
||||
|
||||
uiStyle *style;
|
||||
|
||||
writestruct(wd, USER, "UserDef", 1, &U);
|
||||
|
||||
for(btheme= U.themes.first; btheme; btheme=btheme->next)
|
||||
@@ -742,6 +743,10 @@ static void write_userdef(WriteData *wd)
|
||||
|
||||
for(bext= U.addons.first; bext; bext=bext->next)
|
||||
writestruct(wd, DATA, "bAddon", 1, bext);
|
||||
|
||||
for(style= U.uistyles.first; style; style= style->next) {
|
||||
writestruct(wd, DATA, "uiStyle", 1, style);
|
||||
}
|
||||
}
|
||||
|
||||
static void write_boid_state(WriteData *wd, BoidState *state)
|
||||
|
Reference in New Issue
Block a user