| Summary: | Allow the user to graphically choose which individual UI elements on screen to include in the screenshot | ||
|---|---|---|---|
| Product: | [Applications] Spectacle | Reporter: | andreas <kainz.a> |
| Component: | General | Assignee: | Boudhayan Gupta <me> |
| Status: | CONFIRMED --- | ||
| Severity: | wishlist | CC: | kde, mail, nate, noahadvs, unblended_icing552 |
| Priority: | NOR | ||
| Version First Reported In: | 22.12.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Other | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
andreas
2022-12-12 13:21:57 UTC
The main issue is, that .png didn't offer layers by default. This would be super cool. It reminds me of GammaRay and Firefox's screenshot tool. I kind of doubt we could get it to work with individual UI elements like Firefox. Unlike the web where everything mostly boils down to HTML, JavaScript and CSS, there are multiple GUI toolkits that are used in desktop environments. Supporting all of the most common ones, or even just Qt, would probably also require depending on private library code, which is part of how GammaRay is able to work. Some of what you mentioned is already possible to take exact screenshots of using Active Window or Window Under Cursor, though not currently in the integrated workflow you seem to be thinking of. A UI that can interactively let you add windows, context menus, applet popups and the desktop is certainly something I'd like to add to Spectacle, although I think for wayland, the UI might need to be handled by KWin rather than Spectacle due to technical reasons (we'll see). I'm not sure what can be done for X11, but considering how much more permissive it is, I don't see why it couldn't be done. Maybe it could also allow grabbing panels and plasma widgets on the desktop separately from the desktop (as you seem to be requesting in item 2), though not sure about that last one. Actually, I wonder if there's some way we could use accessibility infrastructure to get UI elements from within a UI, regardless of toolkit as long as it has basic accessibility support? KWin knows what a window is, which is something we can count on. So at a minimum, we could implement "pick a window" mode. Then we could collapse Active Window and Window Under Cursor mode into that, and be left with only three modes for the single-monitor use case: - Full screen - Pick a region of the screen - Pick a window *** Bug 472410 has been marked as a duplicate of this bug. *** Snipaste (https://www.snipaste.com/) implements this in fine-grain with Accessibility API on Windows. Perhaps something similar could be done on KDE? |