summaryrefslogtreecommitdiff
path: root/Userland/Applications/CharacterMap/CharacterMapWindow.gml
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-01-11 20:24:11 +0000
committerAndreas Kling <kling@serenityos.org>2022-01-16 11:17:03 +0100
commit9ca8428238cdb08a60bf1e09798e284fe2bd6285 (patch)
tree9d3aabd33ff9450d5aca3607dfdebba9c17da53c /Userland/Applications/CharacterMap/CharacterMapWindow.gml
parentff500ffcc4f7dbb866bad36132e16169a50059b4 (diff)
downloadserenity-9ca8428238cdb08a60bf1e09798e284fe2bd6285.zip
CharacterMap: Add output box for copying arbitrary character sequences
This adds a TextBox along the bottom of the window. Double-clicking on a character will append it to this box, which you can edit as any other TextBox, or click the copy button to copy the output to the clipboard.
Diffstat (limited to 'Userland/Applications/CharacterMap/CharacterMapWindow.gml')
-rw-r--r--Userland/Applications/CharacterMap/CharacterMapWindow.gml19
1 files changed, 19 insertions, 0 deletions
diff --git a/Userland/Applications/CharacterMap/CharacterMapWindow.gml b/Userland/Applications/CharacterMap/CharacterMapWindow.gml
index 3824614848..0b4b211af1 100644
--- a/Userland/Applications/CharacterMap/CharacterMapWindow.gml
+++ b/Userland/Applications/CharacterMap/CharacterMapWindow.gml
@@ -38,6 +38,25 @@
name: "glyph_map"
}
+ @GUI::Widget {
+ shrink_to_fit: true
+
+ layout: @GUI::HorizontalBoxLayout {
+ spacing: 4
+ margins: [0, 2, 0, 2]
+ }
+
+ @GUI::TextBox {
+ name: "output_box"
+ }
+
+ @GUI::Button {
+ name: "copy_output_button"
+ icon: "/res/icons/16x16/edit-copy.png"
+ fixed_width: 22
+ }
+ }
+
@GUI::Statusbar {
name: "statusbar"
}