diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-15 23:19:43 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-07-15 23:19:43 +0400 |
commit | 4df1836325bd2847f3c88eb6fafa98e7bafea81c (patch) | |
tree | c97e1fb46527bdec40f787457cee1152405a990d /source/blender/editors/interface | |
parent | 097d05a1afed5d3a6e919c8885da92e35fe482bc (diff) |
2.5: User Preferences
* Added basic infrastructure to layout user preferences. The
intention is that you open a user preferences space in place
of the buttons space, and have panels there.
* The existing sections don't have to be followed, it's easy
to create different ones, just change the user_pref_sections
enum in RNA.
* This will get separated from the info header later.
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 2 | ||||
-rw-r--r-- | source/blender/editors/interface/resources.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index a3c456c0a93..363717c29d3 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -104,6 +104,8 @@ static int panel_aligned(ScrArea *sa, ARegion *ar) SpaceButs *sbuts= sa->spacedata.first; return sbuts->align; } + else if(sa->spacetype==SPACE_INFO && ar->regiontype == RGN_TYPE_WINDOW) + return BUT_VERTICAL; else if(sa->spacetype==SPACE_FILE && ar->regiontype == RGN_TYPE_CHANNELS) return BUT_VERTICAL; else if(ELEM3(ar->regiontype, RGN_TYPE_UI, RGN_TYPE_TOOLS, RGN_TYPE_TOOL_PROPS)) diff --git a/source/blender/editors/interface/resources.c b/source/blender/editors/interface/resources.c index 2798f7a473f..297e22610a6 100644 --- a/source/blender/editors/interface/resources.c +++ b/source/blender/editors/interface/resources.c @@ -581,7 +581,7 @@ void ui_theme_init_userdef(void) /* space info */ btheme->tinfo= btheme->tv3d; - SETCOL(btheme->tinfo.back, 153, 153, 153, 255); + SETCOLF(btheme->tinfo.back, 0.45, 0.45, 0.45, 1.0); /* space sound */ btheme->tsnd= btheme->tv3d; @@ -1231,6 +1231,8 @@ void init_userdef_do_versions(void) btheme->tlogic= btheme->tv3d; SETCOL(btheme->tlogic.back, 100, 100, 100, 255); } + + SETCOLF(btheme->tinfo.back, 0.45, 0.45, 0.45, 1.0); } } |