diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2025-05-02 07:42:04 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2025-05-02 07:42:04 +0200 |
| commit | 4c1d33e043fb03cda82bc8424f7c5b9194ff4526 (patch) | |
| tree | be4de9145bec4bd7b15bdcb5a09273f38c3bf6db /app/src/main.cpp | |
| parent | 9e3c6314236d8c59e7bba41c3d01a1e7fbc8b092 (diff) | |
| download | turns-4c1d33e043fb03cda82bc8424f7c5b9194ff4526.tar.xz turns-4c1d33e043fb03cda82bc8424f7c5b9194ff4526.zip | |
app: initialize custom widgets after app startup
Diffstat (limited to 'app/src/main.cpp')
| -rw-r--r-- | app/src/main.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main.cpp b/app/src/main.cpp index 5eab35e..9a371d5 100644 --- a/app/src/main.cpp +++ b/app/src/main.cpp @@ -40,11 +40,12 @@ auto main(int argc, char * argv[]) -> int auto app = Adwaita::Application::create("ch.arknet.Turns", Gio::Application::Flags::HANDLES_OPEN); auto settings = turns::core::get_settings(); - + turns::core::register_types(); - turns::ui::register_types(); - + app->signal_startup().connect([app] { + turns::ui::register_types(); + auto style_manager = Adwaita::StyleManager::get_default(); style_manager->set_color_scheme(Adwaita::ColorScheme::PreferLight); |
