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

fix: read GTK dark theme setting on Linux #23678

Merged
merged 1 commit into from
May 21, 2020
Merged

Conversation

zcbenz
Copy link
Contributor

@zcbenz zcbenz commented May 20, 2020

Description of Change

Close #21427.

Chromium does not respect the dark theme settings from GTK, according to a Chromium issue it is intended and because of Chromium having its own settings of themes (custom theme, WebUI theme, forced dark theme).

This PR makes sure the default dark theme setting of Electron is synced with GTK.

I don't have a test for this though, since it involves desktop environment settings of the host machine. (We don't test dark theme for macOS neither.)

Release Notes

Notes: Fix GTK dark theme setting not respected in Electron on Linux.

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label May 20, 2020
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

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

LGTM

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label May 21, 2020
@MarshallOfSound MarshallOfSound merged commit fdf40ce into master May 21, 2020
@release-clerk
Copy link

release-clerk bot commented May 21, 2020

Release Notes Persisted

Fix GTK dark theme setting not respected in Electron on Linux.

@MarshallOfSound MarshallOfSound deleted the fix-linux-dark-theme branch May 21, 2020 22:41
@MarshallOfSound
Copy link
Member

/trop run backport-to 10-x-y

@trop
Copy link
Contributor

trop bot commented May 21, 2020

10-x-y is no longer supported - no backport will be initiated.

@MarshallOfSound
Copy link
Member

/trop run backport

@trop
Copy link
Contributor

trop bot commented May 21, 2020

The backport process for this PR has been manually initiated, here we go! :D

@MarshallOfSound
Copy link
Member

/trop run backport

@MarshallOfSound
Copy link
Member

/trop run backport-to 10-x-y

@trop
Copy link
Contributor

trop bot commented May 21, 2020

10-x-y is no longer supported - no backport will be initiated.

@trop
Copy link
Contributor

trop bot commented May 21, 2020

I have automatically backported this PR to "9-x-y", please check out #23712

@trop trop bot added the in-flight/9-x-y label May 21, 2020
@jkleinsc
Copy link
Contributor

/trop run backport-to 10-x-y

@trop
Copy link
Contributor

trop bot commented May 21, 2020

The backport process for this PR has been manually initiated -
sending your commits to "10-x-y"!

@trop
Copy link
Contributor

trop bot commented May 21, 2020

I have automatically backported this PR to "10-x-y", please check out #23718

@codebytere
Copy link
Member

@zcbenz can this be backported to 8? It utilizes gtk_ui_delegate_ which doesn't exist on that branch.

@zcbenz
Copy link
Contributor Author

zcbenz commented Jun 4, 2020

It should be able to be backported, I'll take care of it.

@trop
Copy link
Contributor

trop bot commented Jun 4, 2020

@zcbenz has manually backported this PR to "8-x-y", please check out #23965

@trop
Copy link
Contributor

trop bot commented Jun 4, 2020

@zcbenz has manually backported this PR to "7-3-x", please check out #23966

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.

Always matches prefers-color-scheme: light media-query (no dark mode)
5 participants