Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
live_prefs.hpp
Go to the documentation of this file.
1// live_prefs — Preferences › Theme and Language applied at once, without
2// restarting. The theme: its variant and its file set, every view of the
3// screens drawn in it from the next frame (View::setThemeColor,
4// aurore::Application::getThemeChangedEvent). The language: its strings loaded
5// again (aurore::loadTranslations), then the main screen built again on the tab
6// that was shown, the focus on the line it was on (every view takes its
7// words and font when it is made; Chinese has its own font, ui::use_font_for
8// and the default font looked up for each label).
9// Copyright (C) 2026 JigSawFr. GPLv3-or-later (see LICENSE.GPL).
10#pragma once
11
12#include <string>
13
14namespace live_prefs
15{
19void start();
20
25
27std::string locale();
28
32} // namespace live_prefs
Definition live_prefs.hpp:15
void apply_theme()
std::string locale()
The language the strings are in now: the preferences', or the console's.
void language_changed()
void start()