1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:57:44 +00:00

HexEditor: Add comments to annotations

The comment appears as a tooltip when hovering over the annotation.

A couple of properties of the TextEditor would ideally be set in GML,
but either don't have a setter exposed, or the GML compiler doesn't
recognise the enum. I'll fix those up after the current big GML
compiler PR gets merged.
This commit is contained in:
Sam Atkins 2024-01-29 16:03:37 +00:00 committed by Sam Atkins
parent 4b1c7533f5
commit a54952795a
5 changed files with 32 additions and 0 deletions

View file

@ -54,6 +54,22 @@
}
}
@GUI::Widget {
layout: @GUI::VerticalBoxLayout {
margins: [4]
}
preferred_height: "fit"
@GUI::Label {
text: "Comments:"
text_alignment: "CenterLeft"
}
@GUI::TextEditor {
name: "comments"
}
}
@GUI::Widget {
layout: @GUI::HorizontalBoxLayout {
margins: [4]