mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 10:07:35 +00:00
Piano: Show a progress window when exporting WAV
This exposes that the export is pretty slow, but it's much nicer than having the GUI lock up for 20s :^)
This commit is contained in:
parent
392dac0818
commit
e127c4acdc
7 changed files with 132 additions and 3 deletions
22
Userland/Applications/Piano/ExportProgressWidget.gml
Normal file
22
Userland/Applications/Piano/ExportProgressWidget.gml
Normal file
|
@ -0,0 +1,22 @@
|
|||
@GUI::Widget {
|
||||
fill_with_background_color: true
|
||||
layout: @GUI::VerticalBoxLayout {
|
||||
margins: [4]
|
||||
}
|
||||
|
||||
@GUI::Label {
|
||||
name: "export_message"
|
||||
text_alignment: "Center"
|
||||
// FIXME: Change to dynamic width once that works.
|
||||
min_width: 300
|
||||
preferred_height: "fit"
|
||||
}
|
||||
|
||||
@GUI::HorizontalProgressbar {
|
||||
name: "progress_bar"
|
||||
min: 0
|
||||
max: 100
|
||||
preferred_width: "grow"
|
||||
min_height: 40
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue