Merge pull request #504 from riri/demo-includes
demos: set style with defines to ease esp. regression testing
This commit is contained in:
commit
835c6551d4
|
@ -115,10 +115,18 @@ int main(void)
|
||||||
ctx = nk_allegro5_init(font, display, WINDOW_WIDTH, WINDOW_HEIGHT);
|
ctx = nk_allegro5_init(font, display, WINDOW_WIDTH, WINDOW_HEIGHT);
|
||||||
|
|
||||||
/* style.c */
|
/* style.c */
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_RED);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
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
|
||||||
|
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
|
|
|
@ -210,10 +210,16 @@ int main(void)
|
||||||
|
|
||||||
/* style.c */
|
/* style.c */
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
||||||
|
|
|
@ -302,10 +302,16 @@ int main(void)
|
||||||
|
|
||||||
/* style.c */
|
/* style.c */
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
||||||
|
|
|
@ -216,10 +216,16 @@ int main(void)
|
||||||
|
|
||||||
/* style.c */
|
/* style.c */
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
||||||
|
|
|
@ -115,10 +115,16 @@ int main(void)
|
||||||
|
|
||||||
/* style.c */
|
/* style.c */
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
while (running)
|
while (running)
|
||||||
|
|
|
@ -111,10 +111,16 @@ int main(void)
|
||||||
|
|
||||||
/* style.c */
|
/* style.c */
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
while (running)
|
while (running)
|
||||||
|
|
|
@ -121,10 +121,16 @@ int main(void)
|
||||||
/*nk_style_set_font(ctx, &droid->handle);*/}
|
/*nk_style_set_font(ctx, &droid->handle);*/}
|
||||||
|
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
||||||
|
|
|
@ -126,10 +126,16 @@ int main(void)
|
||||||
/*nk_style_set_font(ctx, &droid->handle);*/}
|
/*nk_style_set_font(ctx, &droid->handle);*/}
|
||||||
|
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
||||||
|
|
|
@ -126,10 +126,16 @@ int main(void)
|
||||||
/*nk_style_set_font(ctx, &droid->handle);*/}
|
/*nk_style_set_font(ctx, &droid->handle);*/}
|
||||||
|
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
/* Create bindless texture.
|
/* Create bindless texture.
|
||||||
|
|
|
@ -117,10 +117,16 @@ main(int argc, char *argv[])
|
||||||
/*nk_style_set_font(ctx, &roboto->handle)*/;}
|
/*nk_style_set_font(ctx, &roboto->handle)*/;}
|
||||||
|
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
||||||
|
|
|
@ -128,10 +128,16 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
/* style.c */
|
/* style.c */
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
||||||
|
|
|
@ -209,10 +209,18 @@ int main(int argc, char* argv[])
|
||||||
/*nk_style_set_font(ctx, &roboto->handle)*/;}
|
/*nk_style_set_font(ctx, &roboto->handle)*/;}
|
||||||
|
|
||||||
/* style.c */
|
/* style.c */
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_RED);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
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
|
||||||
|
|
||||||
#if defined(__EMSCRIPTEN__)
|
#if defined(__EMSCRIPTEN__)
|
||||||
#include <emscripten.h>
|
#include <emscripten.h>
|
||||||
|
|
|
@ -155,10 +155,16 @@ main(int argc, char *argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
||||||
|
|
|
@ -98,10 +98,16 @@ int main(void)
|
||||||
|
|
||||||
/* style.c */
|
/* style.c */
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
struct nk_colorf bg;
|
struct nk_colorf bg;
|
||||||
|
|
|
@ -104,10 +104,16 @@ int main(void)
|
||||||
|
|
||||||
/* style.c */
|
/* style.c */
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
struct nk_colorf bg;
|
struct nk_colorf bg;
|
||||||
|
|
|
@ -153,10 +153,16 @@ main(void)
|
||||||
ctx = nk_xlib_init(xw.font, xw.dpy, xw.screen, xw.win, xw.width, xw.height);
|
ctx = nk_xlib_init(xw.font, xw.dpy, xw.screen, xw.win, xw.width, xw.height);
|
||||||
|
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
while (running)
|
while (running)
|
||||||
|
|
|
@ -257,10 +257,16 @@ int main(void)
|
||||||
/*nk_style_set_font(ctx, &droid->handle);*/}
|
/*nk_style_set_font(ctx, &droid->handle);*/}
|
||||||
|
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
||||||
|
|
|
@ -254,10 +254,16 @@ int main(void)
|
||||||
/*nk_style_set_font(ctx, &droid->handle);*/}
|
/*nk_style_set_font(ctx, &droid->handle);*/}
|
||||||
|
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
bg.r = 0.10f, bg.g = 0.18f, bg.b = 0.24f, bg.a = 1.0f;
|
||||||
|
|
|
@ -194,10 +194,16 @@ main(void)
|
||||||
if (!rawfb) running = 0;
|
if (!rawfb) running = 0;
|
||||||
|
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(&rawfb->ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(&rawfb->ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(&rawfb->ctx, THEME_BLUE);*/
|
set_style(&rawfb->ctx, THEME_WHITE);
|
||||||
/*set_style(&rawfb->ctx, THEME_DARK);*/
|
#elif defined(STYLE_RED)
|
||||||
|
set_style(&rawfb->ctx, THEME_RED);
|
||||||
|
#elif defined(STYLE_BLUE)
|
||||||
|
set_style(&rawfb->ctx, THEME_BLUE);
|
||||||
|
#elif defined(STYLE_DARK)
|
||||||
|
set_style(&rawfb->ctx, THEME_DARK);
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
while (running) {
|
while (running) {
|
||||||
|
|
|
@ -157,10 +157,16 @@ main(void)
|
||||||
xw.width, xw.height);
|
xw.width, xw.height);
|
||||||
|
|
||||||
#ifdef INCLUDE_STYLE
|
#ifdef INCLUDE_STYLE
|
||||||
/*set_style(ctx, THEME_WHITE);*/
|
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||||
/*set_style(ctx, THEME_RED);*/
|
#ifdef STYLE_WHITE
|
||||||
/*set_style(ctx, THEME_BLUE);*/
|
set_style(ctx, THEME_WHITE);
|
||||||
/*set_style(ctx, THEME_DARK);*/
|
#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
|
#endif
|
||||||
|
|
||||||
while (running)
|
while (running)
|
||||||
|
|
Loading…
Reference in New Issue