[libadwaita/wip/exalm/dark: 4/5] demo: Set color scheme




commit d45ac1be1c84b7baed1218369d558d5d84cdbfcb
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date:   Thu Aug 26 14:22:26 2021 +0500

    demo: Set color scheme

 examples/adwaita-demo.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/examples/adwaita-demo.c b/examples/adwaita-demo.c
index bca716d0..211a99c7 100644
--- a/examples/adwaita-demo.c
+++ b/examples/adwaita-demo.c
@@ -41,6 +41,9 @@ main (int    argc,
   g_action_map_add_action_entries (G_ACTION_MAP (app),
                                    app_entries, G_N_ELEMENTS (app_entries),
                                    app);
+
+  adw_application_set_color_scheme (app, ADW_COLOR_SCHEME_LIGHT_DARK);
+
   g_signal_connect (app, "activate", G_CALLBACK (show_window), NULL);
   status = g_application_run (G_APPLICATION (app), argc, argv);
   g_object_unref (app);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]