Skip to content

fix: read GTK dark theme setting on Linux - #23678

Merged
MarshallOfSound merged 1 commit into
masterfrom
fix-linux-dark-theme
May 21, 2020
Merged

MarshallOfSound merged 1 commit into
masterfrom
fix-linux-dark-theme

Conversation

@zcbenz

@zcbenz zcbenz commented May 20, 2020 •

Copy link
Copy Markdown
Contributor

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.

@zcbenz
zcbenz requested review from MarshallOfSound and ckerr May 20, 2020 09:12
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label May 20, 2020
@zcbenz
zcbenz force-pushed the fix-linux-dark-theme branch from e3fd8b0 to 31e32c9 Compare May 20, 2020 11:29
@zarubond zarubond mentioned this pull request May 20, 2020
3 tasks done
@zcbenz
zcbenz force-pushed the fix-linux-dark-theme branch from 31e32c9 to 00a3f97 Compare May 20, 2020 23:41
@zcbenz
zcbenz requested a review from deepak1556 May 20, 2020 23:44
@zcbenz
zcbenz force-pushed the fix-linux-dark-theme branch from 00a3f97 to 2bf5541 Compare May 21, 2020 00:05

@deepak1556 deepak1556 left a comment

Copy link
Copy Markdown
Member

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 recently label May 21, 2020
@jkleinsc
jkleinsc requested a review from MarshallOfSound May 21, 2020 15:47
@MarshallOfSound
MarshallOfSound merged commit fdf40ce into master May 21, 2020
@release-clerk

release-clerk Bot commented May 21, 2020

Copy link
Copy Markdown

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
Copy Markdown
Member

/trop run backport-to 10-x-y

@trop

trop Bot commented May 21, 2020

Copy link
Copy Markdown
Contributor

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

@MarshallOfSound

Copy link
Copy Markdown
Member

/trop run backport

@trop

trop Bot commented May 21, 2020

Copy link
Copy Markdown
Contributor

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

@MarshallOfSound

Copy link
Copy Markdown
Member

/trop run backport

@MarshallOfSound

Copy link
Copy Markdown
Member

/trop run backport-to 10-x-y

@trop

trop Bot commented May 21, 2020

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented May 21, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

/trop run backport-to 10-x-y

@trop

trop Bot commented May 21, 2020

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented May 21, 2020

Copy link
Copy Markdown
Contributor

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

@codebytere

Copy link
Copy Markdown
Member

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

@zcbenz

zcbenz commented Jun 4, 2020

Copy link
Copy Markdown
Contributor Author

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

@trop

trop Bot commented Jun 4, 2020

Copy link
Copy Markdown
Contributor

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

@trop

trop Bot commented Jun 4, 2020

Copy link
Copy Markdown
Contributor

@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