diff options
author | Ton Roosendaal <ton@blender.org> | 2003-10-17 23:03:53 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-10-17 23:03:53 +0400 |
commit | 58a0811ad9633236f75b692fbe0955d3b91ccabb (patch) | |
tree | f474124ab73fd8ac6d40e6d7af76bf7f1ba9e065 /source/blender/src/interface_panel.c | |
parent | 8ce5ece950305d50966ad6409295207fcf3ed42b (diff) |
- fixed bug in windows with extreme small height... it didnt accept
input
- was needed for usage of this windowtype (headerless) as 'timeline'
dragger, which was supposed to be...
- as extra I fixed 'home', it sets start/end frame for sound window
- at mouselocation the current frame or time is printed
- rightmouse menu switches seconds/frames (should be in header as option...)
- displaybutton 'frs/sec/' updates soundwindow too
So, its not perfect... but try opening a tiny high headerless audio
window on top of buttonswin or somewhere full width. not bad...
Diffstat (limited to 'source/blender/src/interface_panel.c')
-rw-r--r-- | source/blender/src/interface_panel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/src/interface_panel.c b/source/blender/src/interface_panel.c index 370d7c30c84..355e0fdae35 100644 --- a/source/blender/src/interface_panel.c +++ b/source/blender/src/interface_panel.c @@ -816,7 +816,7 @@ void ui_draw_panel(uiBlock *block) if(panel->flag & PNL_CLOSEDY) { uiSetRoundBox(15); - glColor3ub(160, 160, 167); + BIF_ThemeColor(curarea, TH_HEADER); uiRoundBox(block->minx, block->maxy, block->maxx, block->maxy+PNL_HEADER, 10); // title @@ -842,7 +842,7 @@ void ui_draw_panel(uiBlock *block) int a, end, ofs; uiSetRoundBox(15); - glColor3ub(160, 160, 167); + BIF_ThemeColor(curarea, TH_HEADER); uiRoundBox(block->minx, block->miny, block->minx+PNL_HEADER, block->maxy+PNL_HEADER, 10); // title, only capitals for now @@ -875,12 +875,12 @@ void ui_draw_panel(uiBlock *block) uiSetRoundBox(3); if(panel->control & UI_PNL_SOLID) { - glColor3ub(160, 160, 167); + BIF_ThemeColor(curarea, TH_HEADER); uiRoundBox(block->minx, block->maxy, block->maxx, block->maxy+PNL_HEADER, 10); // blend now for panels in 3d window, test... glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA ); glEnable(GL_BLEND); - glColor4ub(198, 198, 198, 100); + BIF_ThemeColor4(curarea, TH_PANEL); glRectf(block->minx, block->miny, block->maxx, block->maxy); //if(align) { |