comparison nuklear_ui/blastem_nuklear.c @ 1855:92532eb6986d

Make combo boxes keyboard navigable
author Michael Pavone <pavone@retrodev.com>
date Sat, 27 Apr 2019 11:23:35 -0700
parents 58b6f5d918f4
children 1844cf5a4045
comparison
equal deleted inserted replaced
1854:58b6f5d918f4 1855:92532eb6986d
2078 context->style.checkbox.cursor_hover = context->style.checkbox.cursor_normal; 2078 context->style.checkbox.cursor_hover = context->style.checkbox.cursor_normal;
2079 context->style.property.inc_button.text_hover = (struct nk_color){ 2079 context->style.property.inc_button.text_hover = (struct nk_color){
2080 .r = 255, .g = 128, .b = 0, .a = 255 2080 .r = 255, .g = 128, .b = 0, .a = 255
2081 }; 2081 };
2082 context->style.property.dec_button.text_hover = context->style.property.inc_button.text_hover; 2082 context->style.property.dec_button.text_hover = context->style.property.inc_button.text_hover;
2083 context->style.combo.button.text_hover = context->style.property.inc_button.text_hover;
2083 } 2084 }
2084 2085
2085 static void context_created(void) 2086 static void context_created(void)
2086 { 2087 {
2087 context = nk_sdl_init(render_get_window()); 2088 context = nk_sdl_init(render_get_window());