Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Close windows from taskbar thumbnail #17477

Open
wants to merge 2 commits into
base: Pharo13
Choose a base branch
from

Conversation

iglosiggio
Copy link
Contributor

@iglosiggio iglosiggio commented Nov 29, 2024

This PR is a sketch on adding a "close window" button to the taskbar thumbnail we show by default. This behavior is currently doable (just do right click on the corresponding taskbar button and click "close") but this is a bit easier when searching a window across the whole taskbar.

The implementation is not up to any decent standard so any suggestions wil be highly appreciated.

This was done on the last pharo sprint with help from @tesonep.

The new thumbnail in action

Copy link
Member

@guillep guillep left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @iglosiggio it would be nice to add some tests, at least behavioral.
Maybe no need to add layout tests, but testing the fade out and simulating the click should be ncie.

@@ -87,15 +87,18 @@ SystemWindow >> taskbarButtonClicked [
SystemWindow >> taskbarButtonEntered: aButton event: evt in: aMorph [
"The mouse has entered out taskbar button.
Show a thumbnail."
| taskbar |
taskbar := aButton owner.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!!!!

borderStyle: (self taskbarThumbnailNormalBorderStyleFor: aWindow);
cornerStyle: (self taskbarThumbnailCornerStyleFor: answer).
^answer
^ TaskbarThumbnailMorph for: aWindow taskbarButton: aButton theme: self
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants