diff --git a/src/MatrixClientPeg.js b/src/MatrixClientPeg.js index f02c751a2c..3fca482aba 100644 --- a/src/MatrixClientPeg.js +++ b/src/MatrixClientPeg.js @@ -26,6 +26,7 @@ import EventTimelineSet from 'matrix-js-sdk/lib/models/event-timeline-set'; import createMatrixClient from './utils/createMatrixClient'; import SettingsStore from './settings/SettingsStore'; import MatrixActionCreators from './actions/MatrixActionCreators'; +import Tinter from "./Tinter"; interface MatrixClientCreds { homeserverUrl: string, @@ -128,6 +129,9 @@ class MatrixClientPeg { opts.lazyLoadMembers = true; } + const color_scheme = SettingsStore.getValue("roomColor"); + Tinter.tint(color_scheme.primary_color, color_scheme.secondary_color); + // Connect the matrix client to the dispatcher MatrixActionCreators.start(this.matrixClient);