Merge pull request #2214 from matrix-org/travis/fix-default-tint

Apply the user's tint once the MatrixClientPeg is moderately ready
This commit is contained in:
Travis Ralston 2018-10-16 08:08:02 -06:00 committed by GitHub
commit 49bd5441d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1403,6 +1403,11 @@ export default React.createClass({
break; break;
} }
}); });
// Fire the tinter right on startup to ensure the default theme is applied
// A later sync can/will correct the tint to be the right value for the user
const color_scheme = SettingsStore.getValue("roomColor");
Tinter.tint(color_scheme.primary_color, color_scheme.secondary_color);
}, },
/** /**