jay icon indicating copy to clipboard operation
jay copied to clipboard

Screen Capture UI/UX redesign proposal

Open Stoppedpuma opened this issue 1 year ago • 7 comments

Currently the screen capture UI is a bit lacking, both visually, and UX wise. It's currently just a text overlay that will display large purple boxes over the selection depending on what you choose. This proposal is designed to make it look and feel more modern while still keeping it simple.

This is how the popup would look when an application requests permission to capture, it has the same options that are currently available with the output being altered slightly which I'll touch on further in this proposal. At the top in pink shows the application name with the applications icon to the left, below it tells the user that it's requesting capture permission, below that there are capture options the user can choose. Each option has a little preview to show what will be captured, the orange outlines in particular show what will be captured. At the bottom, there is an informatory text that the user can press escape or click the text to cancel, closing the prompt and denying capture to the program.

Image

Below are the individual designs as well as an attached note, I'll keep these relatively short as this is only a proposal and I don't want to waste time for anyone if this isn't desired.

This is the initial look for when the screen capture toast appears.

Image

Hovering over an option outlines the option and changes the text to a bright yellow, it's the same colour as the orange, just brighter to appear yellow and stand out from the preview.

Image

Hovering over the cancel text make this appear red, this indicates that it's a possibly unwanted action, yet still an action they can click.

Image

This shows if the user presses "Share an output". This just shows all the outputs on the system with the one the toast is currently displayed using orange text for it's name. If the user only has one output, this can be skipped and just capture the output.

Image

The yellow outline and text appear again for the hovered option.

Image

The UX changes come from how these should be coloured. If an application is being chose, the title bar and outline of the application should appear orange and remain orange as long as it's being captured.

Image

If a workspace is being chose, the workspace on the bar should become orange as well as the title and borders of the applications on that workspace, again remaining orange as long as they are being captured.

Image

If the output is being chose, the bar on that output should become orange as well as the workspace indicator and the app title and borders.

Image

The bar changes from the entire output being captured could definitely use some work visually, a gradient would likely look better if you wanted it to keep the current "style", otherwise an icon or some type of similar indicator would probably look more appealing. I've kept it a solid colour for now since I don't know how minimal you want to keep jay.

If the changes in this proposal are desired, please let me know if there's anything you aren't sure of, want changed, or need more discussion on. Thanks for reading!

Stoppedpuma avatar Jul 22 '25 23:07 Stoppedpuma

Jay currently does not have the infrastructure to render UIs that are this complicated. How would you approach implementing this?

mahkoh avatar Jul 23 '25 09:07 mahkoh

I think this depends on how you would feel about some of the things implemented in these designs. Most notably would be things like border radius and opacity. If these are things you would like to see or aren't opposed to having support for in Jay, then expending the renderer may be a good way to handle this. A possible good point of reference is scenefx which has expanded Sway to allow some of the features that people commonly want in sway like rounded corners or blur. Jay doesn't need to be the next Hyprland, but some basic expansions like border radius, opacity, and maybe blur would be a nice thing to make Jay standout from Sway or similar WMs.

Alternatively, A "head" application like the client you've shown at #501 could work as egui is pretty extensible and I have a pretty good idea of what's possible with it as I'm the designer for another egui application called Oculante. Hyprland in particular makes use of a solution similar to this where they have a GUI toolkit for things like ANR dialogs with QT. I find this to work pretty well if you want jay to feel more built together, additionally, I wouldn't mind making some more designs such as for the already WIP output client.

Stoppedpuma avatar Jul 24 '25 14:07 Stoppedpuma

It would probably be simplest to create a new protocol, jay-screencast-ui-provider, that a privileged client could use to register itself. If such a client is available at the time the UI is needed, it would be charged with providing the UI. If the client is not available, then the default UI would be used. Such a client could be developed independently of the compositor and could use whatever dependencies it likes.

mahkoh avatar Jul 24 '25 15:07 mahkoh

Are you interested in making these feel "integrated" together in the sense that they follow a similar design language? If so, I can make some "V2" design drafts if you would like. A public version of the designs I've made for the program mentioned above can be found here if you would like to get a sense of what we've managed with egui.

Stoppedpuma avatar Jul 24 '25 15:07 Stoppedpuma

FWIW as a regular jay user and a regular user of screen capture (one of my 1st initial motivations for considering alternatives to sway) I'd prefer the current interface and the relative simplicity of its implementation and would prefer anything like this being implemented through a new protocol that would make it optional like noted above.

kotarac avatar Jul 25 '25 15:07 kotarac

Are you interested in making these feel "integrated" together in the sense that they follow a similar design language?

The UI for selecting what to capture would be drawn entirely by the application so it would be internally consistent. If you're talking about the window outline etc., I don't believe it would be that important for those to be consistent with the selection UI.

Jay already does highlight workspaces that are being captured with a configurable color. It's currently not done for toplevels but that is a minor thing.

mahkoh avatar Jul 25 '25 16:07 mahkoh

I honestly would love a optional screen-capture UI redesign like this.

witchlliee avatar Jul 16 '26 00:07 witchlliee