|
@@ -131,6 +131,25 @@ int main(int argc, char *argv[])
|
|
|
/*nk_style_load_all_cursors(ctx, atlas->cursors);*/
|
|
|
/*nk_style_set_font(ctx, &roboto->handle);*/}
|
|
|
|
|
|
+ /* style.c */
|
|
|
+ #ifdef INCLUDE_STYLE
|
|
|
+ /* ease regression testing during Nuklear release process; not needed for anything else */
|
|
|
+ #ifdef STYLE_WHITE
|
|
|
+ set_style(ctx, THEME_WHITE);
|
|
|
+ #elif defined(STYLE_RED)
|
|
|
+ set_style(ctx, THEME_RED);
|
|
|
+ #elif defined(STYLE_BLUE)
|
|
|
+ set_style(ctx, THEME_BLUE);
|
|
|
+ #elif defined(STYLE_DARK)
|
|
|
+ set_style(ctx, THEME_DARK);
|
|
|
+ #endif
|
|
|
+ #endif
|
|
|
+
|
|
|
+ #ifdef INCLUDE_CONFIGURATOR
|
|
|
+ static struct nk_color color_table[NK_COLOR_COUNT];
|
|
|
+ memcpy(color_table, nk_default_color_style, sizeof(color_table));
|
|
|
+ #endif
|
|
|
+
|
|
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
|
|
while (running)
|
|
|
{
|
|
@@ -188,8 +207,8 @@ int main(int argc, char *argv[])
|
|
|
#ifdef INCLUDE_OVERVIEW
|
|
|
overview(ctx);
|
|
|
#endif
|
|
|
- #ifdef INCLUDE_OVERVIEW
|
|
|
- style_configurator(ctx);
|
|
|
+ #ifdef INCLUDE_CONFIGURATOR
|
|
|
+ style_configurator(ctx, color_table);
|
|
|
#endif
|
|
|
#ifdef INCLUDE_NODE_EDITOR
|
|
|
node_editor(ctx);
|