mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
FontEditor: Correct NewFontDialog layout issues
Fixes incorrect scale initialization and inconsistent margins, sets minimum values for glyph width and height to 1, and labels page 1 more precisely as "Typeface" properties.
This commit is contained in:
parent
9b184fc1cb
commit
ca77aea099
2 changed files with 9 additions and 8 deletions
|
@ -111,7 +111,7 @@ private:
|
|||
update();
|
||||
}
|
||||
|
||||
int m_scale { 20 };
|
||||
int m_scale { 10 };
|
||||
int m_width { 20 };
|
||||
int m_height { 20 };
|
||||
int m_glyph_width { 20 };
|
||||
|
@ -127,7 +127,7 @@ NewFontDialog::NewFontDialog(GUI::Window* parent_window)
|
|||
{
|
||||
set_title("New Font");
|
||||
|
||||
m_font_properties_page = GUI::WizardPage::construct("Font properties", "Edit details about this font.");
|
||||
m_font_properties_page = GUI::WizardPage::construct("Typeface properties", "Edit details about this font.");
|
||||
m_font_properties_page->body_widget().load_from_gml(new_font_dialog_page_1_gml);
|
||||
|
||||
m_name_textbox = m_font_properties_page->body_widget().find_descendant_of_type_named<GUI::TextBox>("name_textbox");
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
title: "Metadata"
|
||||
fixed_width: 200
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [4]
|
||||
margins: [6]
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
|
@ -26,7 +26,7 @@
|
|||
|
||||
@GUI::SpinBox {
|
||||
name: "height_spinbox"
|
||||
min: 0
|
||||
min: 1
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@
|
|||
|
||||
@GUI::SpinBox {
|
||||
name: "width_spinbox"
|
||||
min: 0
|
||||
min: 1
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -104,14 +104,15 @@
|
|||
layout: @GUI::HorizontalBoxLayout {
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
fixed_width: 80
|
||||
}
|
||||
|
||||
@GUI::CheckBox {
|
||||
name: "fixed_width_checkbox"
|
||||
text: "Fixed width"
|
||||
autosize: true
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue