summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/FontPickerDialog.gml
diff options
context:
space:
mode:
authorJames Triantafylos <JTriantafylos@gmail.com>2021-04-14 09:44:55 -0400
committerLinus Groh <mail@linusgroh.de>2021-04-16 23:54:03 +0200
commitc9196995be1976e51480ec44b79e46d04a47bedd (patch)
treeb02ad33beea381841096b05334b65206251c7ecb /Userland/Libraries/LibGUI/FontPickerDialog.gml
parente4412f1f599bea034dea608b8c7dcc4408d90066 (diff)
downloadserenity-c9196995be1976e51480ec44b79e46d04a47bedd.zip
LibGUI: Allow arbitrary font size in FontPicker
This commit adds a SpinBox to the FontPicker dialog to allow users to set arbitrary font sizes (1 to 255 inclusive) for TTF fonts. The SpinBox is only visible when the user is selecting a TTF font.
Diffstat (limited to 'Userland/Libraries/LibGUI/FontPickerDialog.gml')
-rw-r--r--Userland/Libraries/LibGUI/FontPickerDialog.gml4
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/FontPickerDialog.gml b/Userland/Libraries/LibGUI/FontPickerDialog.gml
index 8f45fb0627..91bea2baa9 100644
--- a/Userland/Libraries/LibGUI/FontPickerDialog.gml
+++ b/Userland/Libraries/LibGUI/FontPickerDialog.gml
@@ -53,6 +53,10 @@
fixed_height: 16
}
+ @GUI::SpinBox {
+ name: "size_spin_box"
+ }
+
@GUI::ListView {
name: "size_list_view"
}