[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: Sat, 28 Aug 2021 14:02:50 +0000 (UTC)
commit acc1f57dc17e7fdee543311a45f7b5e8813d3370
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]