[libadwaita/wip/exalm/dark: 3/4] demo: Set color scheme
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/wip/exalm/dark: 3/4] demo: Set color scheme
- Date: Fri, 27 Aug 2021 14:09:25 +0000 (UTC)
commit c9732280631f133954f7410b1f8a3572e301483b
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]