1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

Taskbar: Don't wrap minimized window titles in []

This actually looks a lot nicer without the [] and I'm not sure that
the visual cue about minimization state was actually useful.
This commit is contained in:
Andreas Kling 2020-07-04 19:43:30 +02:00
parent a409e6d27d
commit 8bd2fd8df9

View file

@ -224,11 +224,10 @@ void TaskbarWindow::wm_event(GUI::WMEvent& event)
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()));
} else {
window.button()->set_foreground_color(Color::Black);
window.button()->set_text(changed_event.title());
}
window.button()->set_text(changed_event.title());
window.button()->set_checked(changed_event.is_active());
break;
}