Skip to content

Commit

Permalink
Better naming convention: "styler" vs. "renderer"
Browse files Browse the repository at this point in the history
  • Loading branch information
djowel committed Oct 9, 2023
1 parent de901f4 commit ac89ab3
Show file tree
Hide file tree
Showing 11 changed files with 121 additions and 121 deletions.
8 changes: 4 additions & 4 deletions examples/buttons/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ constexpr auto pgold = colors::gold.opacity(0.8);
//
// Here's how to make a custom button.
///////////////////////////////////////////////////////////////////////////////
struct my_custom_button : button_renderer_base
struct my_custom_button : button_styler_base
{
view_limits limits(basic_context const& ctx) const override;
void draw(context const& ctx) override;
Expand Down Expand Up @@ -98,18 +98,18 @@ auto make_buttons(view& view_)
// verbosity.

auto left = momentary_button(
button_renderer{"Left"}
button_styler{"Left"}
.align_left()
.icon(icons::left_circled)
.icon_left()
.body_color(bred)
);
auto center = momentary_button(
button_renderer{"Center"}
button_styler{"Center"}
.body_color(bblue)
);
auto right = momentary_button(
button_renderer{"Right"}
button_styler{"Right"}
.align_right()
.icon(icons::right_circled)
.body_color(bgreen)
Expand Down
Loading

0 comments on commit ac89ab3

Please # to comment.