feat(notifier): entrada/eixida per temps amb easing, configurable a ui.yaml

This commit is contained in:
JailDesigner committed 2026-05-02 14:58:25 +02:00
1 parent f816e75cc0
commit 970fe2b4db
6 files changed
+68 -27

No files matched your search

+6 -2
View File
@@ -110,7 +110,9 @@ UiConfig::UiConfig()
.line_gap = Defaults::UI::Notifier::LINE_GAP,
.margin_top = Defaults::UI::Notifier::MARGIN_TOP,
.border_px = Defaults::UI::Notifier::BORDER_PX,
.slide_speed = Defaults::UI::Notifier::SLIDE_SPEED,
.slide_ms = Defaults::UI::Notifier::SLIDE_MS,
.slide_in_curve = curveByName(Defaults::UI::Notifier::SLIDE_IN_CURVE),
.slide_out_curve = curveByName(Defaults::UI::Notifier::SLIDE_OUT_CURVE),
} {
}
@@ -210,7 +212,9 @@ void UiConfig::load(const std::string& file_path) {
readField(n, "line_gap", notifier_.line_gap);
readField(n, "margin_top", notifier_.margin_top);
readField(n, "border_px", notifier_.border_px);
readField(n, "slide_speed", notifier_.slide_speed);
readField(n, "slide_ms", notifier_.slide_ms);
readCurve(n, "slide_in_curve", notifier_.slide_in_curve);
readCurve(n, "slide_out_curve", notifier_.slide_out_curve);
}
std::cout << "UiConfig: carregat des de " << file_path << '\n';