Skip to content

Instantly share code, notes, and snippets.

@sp00ck
sp00ck / gist:4a48e30426720de4cfc29bc50e3c35fc
Created August 4, 2022 14:19
g++ -Wall -pedantic -pedantic-errors -g -L~/wx/lib `~/wx/wx-config --cxxflags --unicode` -DwxUSE_GUI=0 -L~/wx/lib `~/wx/wx-config --libs --unicode` bl.cpp -o bl
#include <wx/wx.h>
#include <wx/app.h>
#include <wx/cmdline.h>
#include <wx/intl.h>
wxLocale* locale;
int main(void)
{
wxString a,b;
nk_layout_row_dynamic(ctx, 20, 1);
nk_label(ctx, "background:", NK_TEXT_LEFT);
nk_layout_row_dynamic(ctx, 25, 1);
if (nk_combo_begin_color(ctx, nk_rgb_cf(bg), nk_vec2(nk_widget_width(ctx),400)))
{
nk_layout_row_dynamic(ctx, 120, 1);
bg = nk_color_picker(ctx, bg, NK_RGBA);
nk_layout_row_dynamic(ctx, 25, 1);
bg.r = nk_propertyf(ctx, "#R:", 0, bg.r, 1.0f, 0.01f,0.005f);
bg.g = nk_propertyf(ctx, "#G:", 0, bg.g, 1.0f, 0.01f,0.005f);