feat(notifier): geometria al ui.yaml; +1px alçada, text 1px més avall, marge superior 3
This commit is contained in:
1 parent
643e5442c3
commit
2e8df45b38
6 files changed
+92
-27
No files matched your search
@@ -20,6 +20,19 @@ class UiConfig {
|
||||
int kerning;
|
||||
};
|
||||
|
||||
// Geometria del Notifier (popup superior). Carregada des de
|
||||
// data/ui.yaml secció `notifier:`; els valors per defecte vénen de
|
||||
// Defaults::UI::Notifier.
|
||||
struct Notifier {
|
||||
int padding_h;
|
||||
int padding_top;
|
||||
int padding_bottom;
|
||||
int line_gap;
|
||||
int margin_top;
|
||||
int border_px;
|
||||
float slide_speed;
|
||||
};
|
||||
|
||||
static auto get() -> UiConfig&;
|
||||
|
||||
UiConfig(const UiConfig&) = delete;
|
||||
@@ -88,6 +101,9 @@ class UiConfig {
|
||||
[[nodiscard]] auto menuTitleFont() const -> const Font& { return menu_title_font_; }
|
||||
[[nodiscard]] auto menuItemsFont() const -> const Font& { return menu_items_font_; }
|
||||
|
||||
// Geometria del Notifier.
|
||||
[[nodiscard]] auto notifier() const -> const Notifier& { return notifier_; }
|
||||
|
||||
// Flags visuals.
|
||||
[[nodiscard]] auto hudBgEnabled() const -> bool { return hud_bg_enabled_; }
|
||||
|
||||
@@ -135,5 +151,7 @@ class UiConfig {
|
||||
Font menu_title_font_;
|
||||
Font menu_items_font_;
|
||||
|
||||
Notifier notifier_;
|
||||
|
||||
bool hud_bg_enabled_{false};
|
||||
};
|
||||
Reference in new issue
Block a user