Skip to content

Implement unfocused view dimming#189248

Merged
Tyriar merged 3 commits intomainfrom
tyriar/fade_unfocused
Aug 1, 2023
Merged

Implement unfocused view dimming#189248
Tyriar merged 3 commits intomainfrom
tyriar/fade_unfocused

Conversation

@Tyriar
Copy link
Member

@Tyriar Tyriar commented Jul 29, 2023

Fixes #30522


Still pending internal discussion...

Screenshot 2023-07-29 at 3 47 50 pm

@Tyriar Tyriar added this to the August 2023 milestone Jul 29, 2023
@Tyriar Tyriar requested a review from meganrogge July 29, 2023 22:44
@Tyriar Tyriar self-assigned this Jul 29, 2023
@Tyriar Tyriar requested a review from daviddossett July 29, 2023 22:48
@meganrogge
Copy link
Collaborator

Looks a little funny with this set to 0 - should there be a min value? Maybe some people would want this?

Screenshot 2023-07-31 at 8 33 28 AM

@Tyriar
Copy link
Member Author

Tyriar commented Jul 31, 2023

Disallowing 0 is a good idea as it looks broken, I'll make the min 0.1 or 0.2

daviddossett
daviddossett previously approved these changes Jul 31, 2023
Copy link
Collaborator

@daviddossett daviddossett left a comment

Choose a reason for hiding this comment

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

Tried it locally and it feels good 👍

The opacity percentage (0.0 to 1.0)

This feels somewhat misleading since it isn't 0-100 like a traditional %. I know we're mapping this to how CSS opacity is set but I wonder if either rewording this or using a 0-100 scale would be clearer.

@beto811 beto811 mentioned this pull request Jul 31, 2023
@Tyriar
Copy link
Member Author

Tyriar commented Jul 31, 2023

@daviddossett I'd guess we use 0-1 to represent a percentage more than 0-100 already, looking through my settings I see terminal.integrated.lineHeight and editor.lineHeight which use 0-1.

@meganrogge
Copy link
Collaborator

failure @Tyriar maybe rerun?

@Tyriar Tyriar merged commit 8ce2443 into main Aug 1, 2023
@Tyriar Tyriar deleted the tyriar/fade_unfocused branch August 1, 2023 15:48
@lobsterkatie
Copy link

Really excited for this! I can't tell you how often I end up typing 'git' into random spots in my files, thinking I'm typing in the terminal.

Any chance this part could be dimmed, too, so it's the entire terminal pane?
image

@Tyriar
Copy link
Member Author

Tyriar commented Aug 1, 2023

@lobsterkatie great to hear, yes fading the tabs makes sense. I'll try get to that today. Please keep the feedback coming.

Tyriar added a commit that referenced this pull request Aug 1, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dim or otherwise indicate "inactive" editor/terminal

5 participants