mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
HackStudio: Add new multiline commit dialog
This new commit dialog features multi-line input and a line and column indicator. A great improvement over the last one, if you ask me! :^)
This commit is contained in:
parent
e92b6047ad
commit
4cfc992125
5 changed files with 141 additions and 6 deletions
42
Userland/DevTools/HackStudio/Dialogs/Git/GitCommitDialog.gml
Normal file
42
Userland/DevTools/HackStudio/Dialogs/Git/GitCommitDialog.gml
Normal file
|
@ -0,0 +1,42 @@
|
|||
@GUI::Frame {
|
||||
fill_with_background_color: true
|
||||
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
spacing: 4
|
||||
margins: [4, 4, 4, 4]
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
text: "Enter commit message:"
|
||||
text_alignment: "CenterLeft"
|
||||
fixed_height: 20
|
||||
}
|
||||
|
||||
@GUI::TextEditor {
|
||||
name: "message_editor"
|
||||
}
|
||||
|
||||
@GUI::Widget {
|
||||
layout: @GUI::HorizontalBoxLayout
|
||||
shrink_to_fit: true
|
||||
|
||||
@GUI::Label {
|
||||
name: "line_and_col_label"
|
||||
text: "Line: 1, Col: 0"
|
||||
text_alignment: "CenterLeft"
|
||||
fixed_height: 20
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
name: "commit_button"
|
||||
text: "Commit"
|
||||
fixed_width: 75
|
||||
}
|
||||
|
||||
@GUI::Button {
|
||||
name: "cancel_button"
|
||||
text: "Cancel"
|
||||
fixed_width: 75
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue