Skip to content

Commit

Permalink
LibGUI: Use "OK, Cancel" button order in ColorPicker
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Apr 29, 2020
1 parent 51ab0e9 commit 77916f0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Libraries/LibGUI/ColorPicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,21 +132,21 @@ void ColorPicker::build_ui()
button_container.layout()->set_spacing(4);
button_container.layout()->add_spacer();

auto& ok_button = button_container.add<Button>();
ok_button.set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
ok_button.set_preferred_size(80, 0);
ok_button.set_text("OK");
ok_button.on_click = [this] {
done(ExecOK);
};

auto& cancel_button = button_container.add<Button>();
cancel_button.set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
cancel_button.set_preferred_size(80, 0);
cancel_button.set_text("Cancel");
cancel_button.on_click = [this] {
done(ExecCancel);
};

auto& ok_button = button_container.add<Button>();
ok_button.set_size_policy(SizePolicy::Fixed, SizePolicy::Fill);
ok_button.set_preferred_size(80, 0);
ok_button.set_text("Select");
ok_button.on_click = [this] {
done(ExecOK);
};
}

void ColorPicker::build_ui_palette(Widget& root_container)
Expand Down

0 comments on commit 77916f0

Please sign in to comment.