From 5c386e766504014d942ff2762bef1a3aec274940 Mon Sep 17 00:00:00 2001 From: IoI_xD Date: Wed, 15 Apr 2026 03:08:55 -0500 Subject: [PATCH] Update examples/basic/colorpicker.c --- examples/basic/colorpicker.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/basic/colorpicker.c b/examples/basic/colorpicker.c index 4c246f7..22e647c 100644 --- a/examples/basic/colorpicker.c +++ b/examples/basic/colorpicker.c @@ -1,4 +1,3 @@ - #include MwWidget cpicker; @@ -28,7 +27,7 @@ void color_picker(MwWidget handle, void* user_data, void* call_data) { MwAddUserHandler(cpicker, MwNcolorChosenHandler, color_callback, NULL); - MwSetText(cpicker, MwNbackground, MwGetInteger(cpicker, MwNdarkTheme) ? MwDefaultForeground : MwDefaultBackground); + MwSetText(cpicker, MwNbackground, MwGetInteger(cpicker, MwNdarkTheme) ? MwDefaultDarkBackground : MwDefaultBackground); } int main() { @@ -41,7 +40,7 @@ int main() { button = MwVaCreateWidget(MwButtonClass, "button", window, 160, 180, 320, 120, MwNtext, "change window background", NULL); - MwSetText(button, MwNbackground, MwGetInteger(button, MwNdarkTheme) ? MwDefaultForeground : MwDefaultBackground); + MwSetText(button, MwNbackground, MwGetInteger(button, MwNdarkTheme) ? MwDefaultDarkBackground : MwDefaultBackground); MwAddUserHandler(button, MwNactivateHandler, color_picker, NULL);