mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +00:00
Taskbar: Show window progress as a progress bar behind the window title
If a window in the taskbar has progress, we'll now draw that progress in the form of a progress bar behind the window title on the taskbar button for the window.
This commit is contained in:
parent
1d6ec51bee
commit
e263dc8427
4 changed files with 107 additions and 0 deletions
|
@ -221,6 +221,7 @@ void TaskbarWindow::wm_event(GUI::WMEvent& event)
|
|||
window.set_rect(changed_event.rect());
|
||||
window.set_active(changed_event.is_active());
|
||||
window.set_minimized(changed_event.is_minimized());
|
||||
window.set_progress(changed_event.progress());
|
||||
if (window.is_minimized()) {
|
||||
window.button()->set_foreground_color(Color::DarkGray);
|
||||
window.button()->set_text(String::format("[%s]", changed_event.title().characters()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue