Rev 7775 | Rev 7791 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7775 | Rev 7778 | ||
---|---|---|---|
Line 109... | Line 109... | ||
109 | if (tab_w == GetTabWidth()) DrawTab(tab.active); |
109 | if (tab_w == GetTabWidth()) DrawTab(tab.active); |
110 | else DrawTabsBar(); |
110 | else DrawTabsBar(); |
111 | } |
111 | } |
112 | 112 | ||
Line 113... | Line 113... | ||
113 | void DrawNewTabButton() |
113 | int DrawNewTabButton() |
114 | { |
114 | { |
115 | dword btn_light = MixColors(system.color.work_button, 0xFFFfff, 220); |
115 | dword btn_light = MixColors(system.color.work_button, 0xFFFfff, 220); |
116 | dword btn_dark = MixColors(system.color.work_button, 0, 180); |
116 | dword btn_dark = MixColors(system.color.work_button, 0, 180); |
117 | int xxx = tab.count * tab_w; |
117 | int xxx = tab.count * tab_w; |
Line 122... | Line 122... | ||
122 | DrawRectangle3D(xxx+1, TOOLBAR_H, TAB_H, TAB_H-1, btn_light, btn_dark); |
122 | DrawRectangle3D(xxx+1, TOOLBAR_H, TAB_H, TAB_H-1, btn_light, btn_dark); |
123 | PutPixel(xxx+1+TAB_H, TOOLBAR_H, btn_dark); |
123 | PutPixel(xxx+1+TAB_H, TOOLBAR_H, btn_dark); |
124 | DefineHiddenButton(xxx+1, TOOLBAR_H, TAB_H-1, TAB_H-1, NEW_TAB); |
124 | DefineHiddenButton(xxx+1, TOOLBAR_H, TAB_H-1, TAB_H-1, NEW_TAB); |
125 | WriteText(xxx+7, TOOLBAR_H+2, 0x90, system.color.work_button_text, "+"); |
125 | WriteText(xxx+7, TOOLBAR_H+2, 0x90, system.color.work_button_text, "+"); |
126 | } |
126 | return xxx + TAB_H + 2; |
- | 127 | } else { |
|
- | 128 | return xxx; |
|
- | 129 | } |
|
127 | } |
130 | } |
128 | 131 | ||
Line 129... | Line 132... | ||
129 | void DrawTabsBar() |
132 | void DrawTabsBar() |
130 | { |
133 | { |
131 | dword i; |
134 | dword i; |
132 | tab_w = GetTabWidth(); |
135 | tab_w = GetTabWidth(); |
133 | for (i=0; i |
136 | for (i=0; i |
134 | DrawNewTabButton(); |
137 | i = DrawNewTabButton(); |
135 | i = tab_w * i + TAB_H + 2; |
- | |
136 | DrawBar(i, TOOLBAR_H, Form.cwidth-i, TAB_H-1, MixColors(system.color.work_dark, system.color.work, 128)); |
138 | DrawBar(i, TOOLBAR_H, Form.cwidth-i, TAB_H-1, MixColors(system.color.work_dark, system.color.work, 128)); |
137 | DrawBar(i, TOOLBAR_H+TAB_H-1, Form.cwidth-i, 1, system.color.work_graph); |
139 | DrawBar(i, TOOLBAR_H+TAB_H-1, Form.cwidth-i, 1, system.color.work_graph); |
138 | } |
140 | } |
Line 139... | Line 141... | ||
139 | 141 |