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

feat: expose app accessibility transparency settings api #39631

Merged
merged 7 commits into from
Sep 20, 2023

Conversation

georgexu99
Copy link
Contributor

@georgexu99 georgexu99 commented Aug 23, 2023

Description of Change

Exposes an api that reads the System Preferences to determine whether the app avoids using semitransparent backgrounds. If the property is TRUE, don't use use semitransparent backgrounds in the UI.

This setting can be changed by choosing System Preferences > Accessibility > Display and selecting "Reduce transparency".

Checklist

Release Notes

Notes: Added API to allow apps to determine whether to avoid using semitransparent backgrounds.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Aug 23, 2023
@georgexu99 georgexu99 marked this pull request as ready for review August 24, 2023 21:24
@zcbenz zcbenz added semver/minor backwards-compatible functionality no-backport labels Aug 25, 2023
Copy link
Member

@samuelmaddock samuelmaddock left a comment

Choose a reason for hiding this comment

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

API LGTM

@georgexu99 georgexu99 force-pushed the add-accessibility-display-should-reduce-transparency branch from 29afcd0 to 8b68f32 Compare August 29, 2023 00:30
@georgexu99
Copy link
Contributor Author

failing tests seem to be flakes

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Aug 31, 2023
@MarshallOfSound
Copy link
Member

API LGTM

@VerteDinde VerteDinde added target/26-x-y PR should also be added to the "26-x-y" branch. target/27-x-y PR should also be added to the "27-x-y" branch. and removed no-backport labels Sep 7, 2023
@georgexu99 georgexu99 force-pushed the add-accessibility-display-should-reduce-transparency branch from f86cf55 to ed92e6a Compare September 7, 2023 20:19
@georgexu99 georgexu99 force-pushed the add-accessibility-display-should-reduce-transparency branch from 0fef536 to ea0657f Compare September 15, 2023 01:00
@georgexu99 georgexu99 force-pushed the add-accessibility-display-should-reduce-transparency branch from ea0657f to 665d3ec Compare September 19, 2023 18:18
@georgexu99 georgexu99 force-pushed the add-accessibility-display-should-reduce-transparency branch from 443d816 to b276606 Compare September 19, 2023 21:45
@VerteDinde VerteDinde merged commit 7685f27 into main Sep 20, 2023
13 checks passed
@VerteDinde VerteDinde deleted the add-accessibility-display-should-reduce-transparency branch September 20, 2023 19:48
@release-clerk
Copy link

release-clerk bot commented Sep 20, 2023

Release Notes Persisted

Added API to help apps know when to avoid semitransparent backgrounds.

@trop
Copy link
Contributor

trop bot commented Sep 20, 2023

I was unable to backport this PR to "26-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot removed the target/26-x-y PR should also be added to the "26-x-y" branch. label Sep 20, 2023
@trop
Copy link
Contributor

trop bot commented Sep 20, 2023

I was unable to backport this PR to "27-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot added needs-manual-bp/26-x-y needs-manual-bp/27-x-y and removed target/27-x-y PR should also be added to the "27-x-y" branch. labels Sep 20, 2023
georgexu99 added a commit that referenced this pull request Oct 2, 2023
* feat: expose app accessibility transparency settings api

* docs: fix typo

* chore: add doc

* change to property

* add as property instead of method

* chore: fix lint

* rename function name in header

---------

Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
@trop
Copy link
Contributor

trop bot commented Oct 2, 2023

@georgexu99 has manually backported this PR to "26-x-y", please check out #40073

georgexu99 added a commit that referenced this pull request Oct 2, 2023
* feat: expose app accessibility transparency settings api

* docs: fix typo

* chore: add doc

* change to property

* add as property instead of method

* chore: fix lint

* rename function name in header

---------

Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
@trop
Copy link
Contributor

trop bot commented Oct 2, 2023

@georgexu99 has manually backported this PR to "27-x-y", please check out #40074

@trop trop bot added in-flight/27-x-y merged/27-x-y PR was merged to the "27-x-y" branch. and removed needs-manual-bp/27-x-y in-flight/27-x-y labels Oct 2, 2023
VerteDinde added a commit that referenced this pull request Oct 4, 2023
feat: expose app accessibility transparency settings api (#39631)

* feat: expose app accessibility transparency settings api

* docs: fix typo

* chore: add doc

* change to property

* add as property instead of method

* chore: fix lint

* rename function name in header

---------

Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
@trop trop bot added merged/26-x-y PR was merged to the "26-x-y" branch. and removed in-flight/26-x-y labels Oct 4, 2023
MrHuangJser pushed a commit to MrHuangJser/electron that referenced this pull request Dec 11, 2023
)

* feat: expose app accessibility transparency settings api

* docs: fix typo

* chore: add doc

* change to property

* add as property instead of method

* chore: fix lint

* rename function name in header

---------

Co-authored-by: Keeley Hammond <vertedinde@electronjs.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review/approved ✅ merged/26-x-y PR was merged to the "26-x-y" branch. merged/27-x-y PR was merged to the "27-x-y" branch. semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants