You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Move tinter init to MatrixChat
This is a much better place for it to live
This commit is contained in:
committed by
Bruno Windels
parent
cbb117552f
commit
fa14d0ed3c
@@ -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);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user