Fix [#20115] Some theme settings are not saved
authorMatt Ebb <matt@mke3.net>
Tue, 30 Mar 2010 04:27:13 +0000 (04:27 +0000)
committerMatt Ebb <matt@mke3.net>
Tue, 30 Mar 2010 04:27:13 +0000 (04:27 +0000)
commit1f8cd5707342c6f490909baac2ca941a9651f381
tree9e2f9dbe99a21d9ee32bea21bcd9301296812987
parentf20427ffbee1a1b1fdfcc070975952171bfd2e66
Fix [#20115] Some theme settings are not saved

Theme colours were getting overwritten on startup with defaults (as in 2.4
system). Changed this to allow changing the default theme, and added a
'Reset to defaults' operator in user prefs. Perhaps next step to look into the
py presets system for themes too (nice and easy to share).

If you're using a custom B.blend you may get some strange theme colours on
startup if they weren't saved properly before. 'Reset to default' button in theme
preferences should fix it back to defaults.
release/scripts/ui/space_userpref.py
source/blender/editors/datafiles/B.blend.c
source/blender/editors/interface/interface.c
source/blender/editors/interface/interface_intern.h
source/blender/editors/interface/interface_ops.c
source/blender/editors/interface/resources.c