Files
ladybird/Userland/Applications/FileManager/FileOperationProgress.gml
Leandro Pereira 8d25290198 FileManager: Show file copying animation
Bring some mid-90s charm and show a file flying animation while copying
files.  Icons for both source and destination directories are currently
the default icons, but in the future they could be the respective icons
for the destination directory.
2021-04-17 09:41:35 +02:00

109 lines
2.0 KiB
Plaintext

@GUI::Widget {
fill_with_background_color: true
layout: @GUI::VerticalBoxLayout {
margins: [4, 4, 4, 4]
}
@GUI::Widget {
fixed_height: 32
layout: @GUI::HorizontalBoxLayout {
}
@GUI::ImageWidget {
name: "source_folder_icon"
}
@GUI::ImageWidget {
name: "file_copy_animation"
}
@GUI::ImageWidget {
name: "destination_folder_icon"
}
}
@GUI::Label {
text: "Copying files..."
text_alignment: "CenterLeft"
font_weight: "Bold"
fixed_height: 32
}
@GUI::HorizontalSeparator {
fixed_height: 2
}
@GUI::Widget {
fixed_height: 32
layout: @GUI::HorizontalBoxLayout {
}
@GUI::Label {
text: "Copying: "
font_weight: "Bold"
text_alignment: "CenterLeft"
fixed_width: 80
}
@GUI::Label {
name: "current_file_label"
text: "Placeholder"
text_alignment: "CenterLeft"
}
}
@GUI::Progressbar {
fixed_height: 22
name: "current_file_progressbar"
min: 0
}
@GUI::Widget {
fixed_height: 32
layout: @GUI::HorizontalBoxLayout {
}
@GUI::Label {
text: "Overall progress: "
font_weight: "Bold"
text_alignment: "CenterLeft"
fixed_width: 120
}
@GUI::Label {
name: "overall_progress_label"
text: "Placeholder"
text_alignment: "CenterLeft"
}
}
@GUI::Progressbar {
fixed_height: 22
name: "overall_progressbar"
min: 0
}
@GUI::Widget {
fixed_height: 2
}
@GUI::Widget {
shrink_to_fit: true
layout: @GUI::HorizontalBoxLayout {
}
@GUI::Widget {
}
@GUI::Button {
text: "Cancel"
name: "button"
fixed_width: 80
}
}
}