Skip to content

Commit

Permalink
add flat boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
MoAlyousef committed Jul 26, 2021
1 parent 389282a commit 1166328
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/fluent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ fn main() {
choice.set_frame(widget_themes::OS_PANEL_THIN_UP_BOX);
let mut check = button::CheckButton::new(160, 150, 80, 30, " Check");
check.set_value(true);
check.set_frame(enums::FrameType::FlatBox);
let mut round = button::RoundButton::new(160, 180, 80, 30, " Round");
round.set_value(true);
round.set_frame(enums::FrameType::FlatBox);
let mut toggle = button::ToggleButton::new(100, 220, 80, 30, "Toggle");
toggle.set_color(enums::Color::from_hex(0x0078D4));
toggle.set_label_color(enums::Color::White);
Expand Down
2 changes: 2 additions & 0 deletions examples/widget_theme.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ fn main() {
choice.set_frame(widget_themes::OS_PANEL_THIN_UP_BOX);
let mut check = button::CheckButton::new(160, 150, 80, 30, " Check");
check.set_value(true);
check.set_frame(enums::FrameType::FlatBox);
let mut round = button::RoundButton::new(160, 180, 80, 30, " Round");
round.set_value(true);
round.set_frame(enums::FrameType::FlatBox);
let mut btn = button::Button::new(160, 220, 80, 30, "Hello");
btn.set_frame(widget_themes::OS_DEFAULT_BUTTON_UP_BOX);
win.end();
Expand Down

0 comments on commit 1166328

Please sign in to comment.