Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
text_size.hpp
Go to the documentation of this file.
1// text_size — Preferences › Text size: "auto"
2// (the default: larger while the console is docked, on a TV), "normal",
3// "large" or "largest". Larger draws every label LARGE times its size,
4// largest LARGEST times (aurore::Application::setTextScale); the rail's too,
5// the header's and the footer's a little less, each as its room allows
6// (ui/cadran_frame); the cells' rows grow with it (aurore::RecyclerCell).
7// Applied at start-up, then again, live, when the setting changes or the
8// console leaves or joins its dock: every label of every screen is laid
9// out again.
10// Copyright (C) 2026 JigSawFr. GPLv3-or-later (see LICENSE.GPL).
11#pragma once
12
13namespace text_size
14{
15constexpr float LARGE = 1.25f;
16constexpr float LARGEST = 1.5f;
17
19bool docked();
22float scale();
23bool larger();
25void apply();
27void install();
28} // namespace text_size
Definition text_size.hpp:14
constexpr float LARGEST
Definition text_size.hpp:16
constexpr float LARGE
Definition text_size.hpp:15
bool docked()
The console on its dock (the desktop: AURORE_DOCKED=1, ui::env_flag).
bool larger()
void apply()
aurore::Label's scale from larger(); the screens laid out again when it changed.
void install()
apply() before the first view, then follows the dock. Once, at start-up.
float scale()