revolt icon indicating copy to clipboard operation
revolt copied to clipboard

Select light/dark theme variant depending on Riot's theme setting

Open aperezdc opened this issue 8 years ago • 1 comments

Riot has not a dark theme variant (vector-im/riot-web#1635). It would be desirable that the GTK+ theme variant being used follows the user setting in Riot. This will be a little bit involved, as we would like to pick the user setting from Riot's preferences, which means:

  • [ ] Adding a WebKitWebExtension to gain access to the DOM, or using an injected JS snippet plus user script messages (see WebKitUserContentManager).
  • [ ] Listen for onclick events on the radio buttons used to select the theme.
    • [ ] On logout, we probably want to revert to the default (light) theme.
    • [ ] When Riot finishes loading, we check what is the selected variant, and apply it to the GTK+ theme variant selection if needed.
    • [ ] Also, remember the choice as a GSetting so Revolt does not initially start with a different theme variant than that used by Riot.
  • [ ] Once this is done, it could be that running inside the Flatpak sandbox still triggers issue #11. Double check that.

aperezdc avatar Jan 23 '17 19:01 aperezdc

Dark theme in Riot has landed, vector-im/riot-web#1635 is closed now.

MightyCreak avatar Mar 01 '17 13:03 MightyCreak