Skip to content

Commit 0eff31b

Browse files
committed
Bugfix: wrong button type
1 parent 1d43744 commit 0eff31b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/include/elements/element/gallery/button.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ namespace cycfi::elements
544544
, float size
545545
, color body_color = get_theme().default_button_color)
546546
{
547-
return momentary_button<Base>(
547+
return toggle_button<Base>(
548548
button_styler{std::move(label)}
549549
.icon(icon_code)
550550
.icon_left()
@@ -630,7 +630,8 @@ namespace cycfi::elements
630630
// Drawing button utility
631631
////////////////////////////////////////////////////////////////////////////
632632
void draw_button_base(
633-
context const& ctx, rect bounds, color color_, bool enabled, corner_radii corner_radii
633+
context const& ctx, rect bounds, color color_
634+
, bool enabled, corner_radii corner_radii
634635
);
635636

636637
////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)