1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 21:48:13 +00:00
serenity/Userland/Applications/CharacterMap/CharacterMapWindow.gml
Sam Atkins 9ca8428238 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.
2022-01-16 11:17:03 +01:00

63 lines
1.3 KiB
Text

@GUI::Frame {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
}
@GUI::ToolbarContainer {
@GUI::Toolbar {
layout: @GUI::HorizontalBoxLayout {
spacing: 4
margins: [0, 0, 0, 4]
}
name: "toolbar"
@GUI::Label {
text: "Font: "
autosize: true
}
@GUI::Frame {
background_role: "Base"
fill_with_background_color: true
fixed_height: 20
layout: @GUI::VerticalBoxLayout {
}
@GUI::Label {
name: "font_name"
text: "Cool Font 16 400"
}
}
}
}
@GUI::GlyphMapWidget {
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"
}
}