@@ -38,6 +38,7 @@ namespace GUI {
Button::Button(String text)
: AbstractButton(move(text))
{
+ set_min_width(32);
set_fixed_height(22);
set_focus_policy(GUI::FocusPolicy::StrongFocus);
}
@@ -39,6 +39,7 @@ static const int s_box_height = 13;
CheckBox::CheckBox(String text)
@@ -35,6 +35,7 @@ namespace GUI {
ColorInput::ColorInput()
: TextEditor(TextEditor::SingleLine)
TextEditor::on_change = [this] {
auto parsed_color = Color::from_string(text());
@@ -58,6 +58,7 @@ private:
ComboBox::ComboBox()
m_editor = add<ComboBoxEditor>();
@@ -36,6 +36,7 @@ namespace GUI {
RadioButton::RadioButton(String text)
@@ -32,6 +32,7 @@ namespace GUI {
SpinBox::SpinBox()
m_editor = add<TextBox>();
m_editor->set_text("0");
@@ -31,6 +31,7 @@ namespace GUI {
TextBox::TextBox()