removed unused color from demo
This commit is contained in:
parent
f1113b4b3a
commit
2a5df8e433
|
@ -245,9 +245,9 @@ color_tab(struct gui_panel_layout *panel, struct control_window *control, struct
|
|||
{
|
||||
gui_size i = 0;
|
||||
struct gui_panel_layout tab;
|
||||
static const char *labels[] = {"Text:", "Panel:", "Header:", "Border:", "Button:", "Button Border:",
|
||||
"Button Hovering:", "Button Toggle:", "Button Hovering Text:", "Check:", "Check BG:",
|
||||
"Check Active:", "Option:", "Option BG:", "Option Active:", "Scroll:", "Scroll Cursor:",
|
||||
static const char *labels[] = {"Text:", "Panel:", "Header:", "Border:", "Button:",
|
||||
"Button Border:", "Button Hovering:", "Button Toggle:", "Button Hovering Text:",
|
||||
"Check:", "Check BG:", "Check Active:", "Option:", "Option BG:", "Option Active:",
|
||||
"Slider:", "Slider cursor:", "Progress:", "Progress Cursor:", "Editbox:", "Editbox Border:",
|
||||
"Spinner:", "Spinner Border:", "Selector:", "Selector Border:", "Histo:", "Histo Bars:",
|
||||
"Histo Negative:", "Histo Hovering:", "Plot:", "Plot Lines:", "Plot Hightlight:",
|
||||
|
|
2
gui.c
2
gui.c
|
@ -2692,7 +2692,7 @@ gui_panel_end(struct gui_panel_layout *layout, struct gui_panel *panel)
|
|||
scroll.foreground = config->colors[GUI_COLOR_SCROLLBAR_CURSOR];
|
||||
scroll.border = config->colors[GUI_COLOR_SCROLLBAR_BORDER];
|
||||
if (panel->flags & GUI_PANEL_BORDER) scroll_h -= 1;
|
||||
scroll_target = (layout->at_y - layout->y) - (layout->header_height + 2 * config->item_spacing.y);
|
||||
scroll_target = (layout->at_y-layout->y)-(layout->header_height+2*config->item_spacing.y);
|
||||
panel->offset = gui_scroll(canvas, scroll_x, scroll_y, scroll_w, scroll_h,
|
||||
scroll_offset, scroll_target, scroll_step,
|
||||
&scroll, layout->input);
|
||||
|
|
Loading…
Reference in New Issue