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
14
namespace
live_prefs
15
{
19
void
start
();
20
24
void
apply_theme
();
25
27
std::string
locale
();
28
31
void
language_changed
();
32
}
// namespace live_prefs
live_prefs
Definition
live_prefs.hpp:15
live_prefs::apply_theme
void apply_theme()
live_prefs::locale
std::string locale()
The language the strings are in now: the preferences', or the console's.
live_prefs::language_changed
void language_changed()
live_prefs::start
void start()
aurore
cadran
ui
live_prefs.hpp
Generated by
1.9.8