Commit ffbe903 1 parent 3a2ad28 commit ffbe903 Copy full SHA for ffbe903
File tree 2 files changed +6
-3
lines changed
include/elements/element/gallery
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -643,12 +643,12 @@ namespace cycfi::elements
643
643
644
644
inline color default_button_styler::get_body_color () const
645
645
{
646
- return get_theme ().default_button_color . level ( 0.9 ) ;
646
+ return get_theme ().default_button_color ;
647
647
}
648
648
649
649
inline color default_button_styler::get_active_body_color () const
650
650
{
651
- return get_theme (). default_button_color . opacity ( 0.5 );
651
+ return get_body_color ( );
652
652
}
653
653
654
654
inline color default_button_styler::get_text_color () const
Original file line number Diff line number Diff line change @@ -66,7 +66,10 @@ namespace cycfi::elements
66
66
auto value = state.value ;
67
67
auto hilite = state.hilite ;
68
68
auto enabled = ctx.enabled ;
69
- auto body_color = value? get_active_body_color () : get_body_color ();
69
+ auto body_color = value?
70
+ get_active_body_color ().opacity (0.5 ) :
71
+ get_body_color ().level (0.9 )
72
+ ;
70
73
71
74
// Draw the body
72
75
if (value)
You can’t perform that action at this time.
0 commit comments