mirror of
https://github.com/RGBCube/serenity
synced 2025-10-18 05:22:25 +00:00
LibGUI: Give some widgets a reasonable default fixed height
Instead of hard-coding 22 in random places, just make the following widgets have a fixed height of 22 by default: Button, CheckBox, ColorInput, ComboBox, RadioButton, SpinBox, TextBox. In the future we can make this relative to the current font size, but for now at least this centralizes the setting a bit better.
This commit is contained in:
parent
0f3b0b65ae
commit
1cca2405fc
17 changed files with 11 additions and 16 deletions
|
@ -134,7 +134,6 @@ int main(int argc, char** argv)
|
|||
character_map_file_label.set_text("Character Mapping File:");
|
||||
|
||||
auto& character_map_file_combo = character_map_file_selection_container.add<GUI::ComboBox>();
|
||||
character_map_file_combo.set_fixed_height(22);
|
||||
character_map_file_combo.set_only_allow_values_from_model(true);
|
||||
character_map_file_combo.set_model(*CharacterMapFileListModel::create(character_map_files));
|
||||
character_map_file_combo.set_selected_index(initial_keymap_index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue