added comment on ifdefs to use styles in demos
This commit is contained in:
parent
fc5ce1c495
commit
54cd692d17
@ -116,6 +116,7 @@ int main(void)
|
||||
|
||||
/* 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)
|
||||
|
@ -210,6 +210,7 @@ int main(void)
|
||||
|
||||
/* 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)
|
||||
|
@ -302,6 +302,7 @@ int main(void)
|
||||
|
||||
/* 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)
|
||||
|
@ -216,6 +216,7 @@ int main(void)
|
||||
|
||||
/* 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)
|
||||
|
@ -115,6 +115,7 @@ int main(void)
|
||||
|
||||
/* 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)
|
||||
|
@ -111,6 +111,7 @@ int main(void)
|
||||
|
||||
/* 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)
|
||||
|
@ -121,6 +121,7 @@ int main(void)
|
||||
/*nk_style_set_font(ctx, &droid->handle);*/}
|
||||
|
||||
#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)
|
||||
|
@ -126,6 +126,7 @@ int main(void)
|
||||
/*nk_style_set_font(ctx, &droid->handle);*/}
|
||||
|
||||
#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)
|
||||
|
@ -126,6 +126,7 @@ int main(void)
|
||||
/*nk_style_set_font(ctx, &droid->handle);*/}
|
||||
|
||||
#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)
|
||||
|
@ -117,6 +117,7 @@ main(int argc, char *argv[])
|
||||
/*nk_style_set_font(ctx, &roboto->handle)*/;}
|
||||
|
||||
#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)
|
||||
|
@ -128,6 +128,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
/* 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)
|
||||
|
@ -209,6 +209,8 @@ int main(int argc, char* argv[])
|
||||
/*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)
|
||||
@ -218,6 +220,7 @@ int main(int argc, char* argv[])
|
||||
#elif defined(STYLE_DARK)
|
||||
set_style(ctx, THEME_DARK);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__EMSCRIPTEN__)
|
||||
#include <emscripten.h>
|
||||
|
@ -155,6 +155,7 @@ main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
#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)
|
||||
|
@ -98,6 +98,7 @@ int main(void)
|
||||
|
||||
/* 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)
|
||||
|
@ -104,6 +104,7 @@ int main(void)
|
||||
|
||||
/* 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)
|
||||
|
@ -153,6 +153,7 @@ main(void)
|
||||
ctx = nk_xlib_init(xw.font, xw.dpy, xw.screen, xw.win, xw.width, xw.height);
|
||||
|
||||
#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)
|
||||
|
@ -257,6 +257,7 @@ int main(void)
|
||||
/*nk_style_set_font(ctx, &droid->handle);*/}
|
||||
|
||||
#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)
|
||||
|
@ -254,6 +254,7 @@ int main(void)
|
||||
/*nk_style_set_font(ctx, &droid->handle);*/}
|
||||
|
||||
#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)
|
||||
|
@ -194,6 +194,7 @@ main(void)
|
||||
if (!rawfb) running = 0;
|
||||
|
||||
#ifdef INCLUDE_STYLE
|
||||
/* ease regression testing during Nuklear release process; not needed for anything else */
|
||||
#ifdef STYLE_WHITE
|
||||
set_style(&rawfb->ctx, THEME_WHITE);
|
||||
#elif defined(STYLE_RED)
|
||||
|
@ -157,6 +157,7 @@ main(void)
|
||||
xw.width, xw.height);
|
||||
|
||||
#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)
|
||||
|
Loading…
Reference in New Issue
Block a user