Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Nov 20, 2019

Uses CSS prefers-color-scheme to get the user's preferred colour
scheme. Also bundles up some theme logic into its own class.

This also works with electron (no need for the special electron API)

Screenshot 2019-11-20 at 13 48 13
Nov-20-2019 13-51-14

element-hq/element-web#11442

Uses CSS `prefers-color-scheme` to get the user's preferred colour scheme. Also bundles up some theme logic into its own class.
@dbkr dbkr requested a review from a team November 20, 2019 13:45
dbkr added a commit to element-hq/element-web that referenced this pull request Nov 20, 2019
A thesis presented in two parts. This part has the absolute minimum logic changes to the themeing code in vector/index.js because I know how subtle and fragile this code is. However, it also looks like it's completely duplicated from react-sdk, so in the next part I'm going to remove that logic and make it use the logic in react-sdk, then we can see what breaks. Requires matrix-org/matrix-react-sdk#3637
dbkr added a commit to element-hq/element-web that referenced this pull request Nov 20, 2019
Following on from matrix-org/matrix-react-sdk#3637 this removes the code dealing with themes in vector/index.js and uses the code from react-sdk. The two did almost exactly the same thing but in subtley different ways. This code can be incredibly subtle though, so doing this a separate PR.
@bwindels bwindels self-assigned this Nov 20, 2019
@bwindels bwindels requested review from bwindels and removed request for a team November 20, 2019 15:49
Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

lgtm, just a few questions

@dbkr dbkr merged commit 00241a8 into develop Nov 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants