Improve documentation theme.

This commit is contained in:
ArthurSonzogni
2025-05-20 14:35:17 +02:00
parent 08b8a3b28f
commit 22576bae6b
29 changed files with 2338 additions and 1885 deletions

View File

@@ -159,7 +159,7 @@ ComponentDecorator Hoverable(bool* hover) {
/// button |= Hoverable(
/// [&]{ on_enter_cnt++; },
/// [&]{ on_leave_cnt++; }
// );
/// );
/// ```
// NOLINTNEXTLINE
ComponentDecorator Hoverable(std::function<void()> on_enter,
@@ -182,7 +182,7 @@ ComponentDecorator Hoverable(std::function<void()> on_enter,
/// auto button = Button("exit", screen.ExitLoopClosure());
/// bool hovered = false;
/// auto button_hoverable = Hoverable(button,
// [&](bool hover) { hovered = hover;});
/// [&](bool hover) { hovered = hover;});
/// ```
// NOLINTNEXTLINE
Component Hoverable(Component component, std::function<void(bool)> on_change) {