diff options
author | Matt Ebb <matt@mke3.net> | 2009-03-09 11:31:45 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-03-09 11:31:45 +0300 |
commit | 0fd155f78eca62241b1f15b6b820c1fa7924d778 (patch) | |
tree | 94a96cce001b84f30308881a76f7a97b3b06c473 /source/blender/editors/space_file/space_file.c | |
parent | a04e5795a0b3b3de82d0619fe687c4c3aa24404e (diff) |
* fun 2.5 UI commit from seoul airport!
A few UI goodies from on the plane:
- fixed the sliders for non-rounded themes
- Made properties with rna subtype of 'percentage' automatically display a '%'
character *after* the numerical value, where it belongs. It would also be really great
to add a ° - degree symbol after angle and perhaps rotation subtypes. This works
fine with international fonts but not with oldskool bitmap fonts (not part of ascii). I
wonder if there's a way to get around this?
- Added nice embossing effects on buttons, labels and pulldowns (there you go, brecht :)
- and cooler looking tooltips
And did some work on the file browser. Andrea, I hope this is ok, let me know if
there are problems and I can work on fixing it up :)
- added some new icons for file types, that are now shown in list view.
icon designers, please feel free to update and make nicer ones!
- tweaked the default colour theme and did some graphical fiddling to make the
various views look nicer
- rearranged the buttons on the header and swapped the 'P' button for an up arrow
button, this needs a nicer icon too.
- added outliner style alternating bands to the list view to see info grouping better.
This has a small prob in columns view though, can fix that.
Diffstat (limited to 'source/blender/editors/space_file/space_file.c')
-rw-r--r-- | source/blender/editors/space_file/space_file.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/editors/space_file/space_file.c b/source/blender/editors/space_file/space_file.c index da7b61b5ee7..1c7edd24df5 100644 --- a/source/blender/editors/space_file/space_file.c +++ b/source/blender/editors/space_file/space_file.c @@ -84,14 +84,13 @@ static SpaceLink *file_new(const bContext *C) ar= MEM_callocN(sizeof(ARegion), "header for file"); BLI_addtail(&sfile->regionbase, ar); ar->regiontype= RGN_TYPE_HEADER; - ar->alignment= RGN_ALIGN_BOTTOM; + ar->alignment= RGN_ALIGN_TOP; /* channel list region */ ar= MEM_callocN(sizeof(ARegion), "channel area for file"); BLI_addtail(&sfile->regionbase, ar); ar->regiontype= RGN_TYPE_CHANNELS; - ar->alignment= RGN_ALIGN_LEFT; - ar->flag |= RGN_FLAG_HIDDEN; + ar->alignment= RGN_ALIGN_LEFT; /* ui list region */ ar= MEM_callocN(sizeof(ARegion), "ui area for file"); @@ -302,7 +301,7 @@ static void file_channel_area_draw(const bContext *C, ARegion *ar) View2D *v2d= &ar->v2d; float col[3]; - UI_GetThemeColor3fv(TH_BACK, col); + UI_GetThemeColor3fv(TH_PANEL, col); glClearColor(col[0], col[1], col[2], 0.0); glClear(GL_COLOR_BUFFER_BIT); @@ -350,7 +349,7 @@ static void file_ui_area_draw(const bContext *C, ARegion *ar) { float col[3]; /* clear */ - UI_GetThemeColor3fv(TH_BACK, col); + UI_GetThemeColor3fv(TH_PANEL, col); glClearColor(col[0], col[1], col[2], 0.0); glClear(GL_COLOR_BUFFER_BIT); @@ -403,7 +402,7 @@ void ED_spacetype_file(void) /* regions: ui */ art= MEM_callocN(sizeof(ARegionType), "spacetype file region"); art->regionid = RGN_TYPE_UI; - art->minsizey= 80; + art->minsizey= 60; art->keymapflag= ED_KEYMAP_UI; art->init= file_ui_area_init; art->draw= file_ui_area_draw; |