How to change the default theme


#1

Hey There
I was trying to modify the default theme for all users
I tried to edit constants.jsx then recompile again with make build and make package
and nothing changed
I like to change something like the left side bar color for all users
can anyone point me to which part I should change?
thnx


#2

Hi @ashraffouda! Thank you for this question!

Would there be anything in these 2 docs that would help with what you are looking for:
https://docs.mattermost.com/deployment/customize-mattermost.html?highlight=customize
https://docs.mattermost.com/help/settings/theme-colors.html?highlight=theme

Please let me know if this helps!


#3

Hey @amy.blais thanks for replying.
I found out that I should change the webclient from mattermost-redux repo not from mattermost-webapp repo.
so I changed https://github.com/mattermost/mattermost-redux/blob/master/src/constants/preferences.js
instead of https://github.com/gigforks/mattermost-webapp/blob/master/utils/constants.jsx
btw, it is very confusing this should be either document or removed from webapp if it is not used


#4

Hi @ashraffouda,

Apologies for the confusion and thank you for the feedback!

I will check with our engineers whether the repo you referenced can be removed.


#5

Hi @ashraffouda,

The code is a bit confusing right now since some work has been done to move that over to the redux repo so that it is accessible from the mobile apps, but that work hasn’t been finished yet. For now, you’ll want to change the themes in both places to make sure they apply correctly.