Lissy93 / dashy

🚀 A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Home Page:https://dashy.to

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[QUESTION] theme for each user

irasdesire opened this issue · comments

commented

Question

Hello! i have a question about dashy theme;

context: i m using dashy with keycloak so i didn t have a user type, i changed somehow the isUserAdmin() function to return isAdmin based on usermane 🤐. and now the admin users have the theme i chose in the config.yml and the rest of users have the default theme.

question: can anyone tell me where i can see if each user has a theme set somewhere so i can go and change there so every user could have the theme i choose for them?

i can provide more info if needed, hope someone would help me and thank you in advance! 🥳

Category

Setup and Deployment

Please tick the boxes

Hey @irasdesire
You can have a theme for each page, and a locally stored theme on each browser (so different users could have different themes that way, if they have different computers), but right now there's no option for a theme for each user.

Realistically, I don't think this will be a feature that I implement, as the complexity would be quite high, for something quite niche.

commented

hey, thank you for the answear! maybe i wasn t clear in my question, the problem is that i want only one theme for everyone and for some reason admin user see a theme, the rest of the users see other theme (the default one) and i don t know how comes this behavior.
the change i made : for the config, in SettingsContainer.vue i added a v-if based on computed isUserAdmin() . so, only if the user is admin, he can see , , , . for the admin user everything is fine, for the rest of the users it shows the default theme....also i added some console.logs and i see that the theme looks corectly set (i chose material) still the default one is shown in browser :( maybe i did something wrong i don t know, maybe you can make it clear for me

So you are speaking of a config option to set a default theme globally, for all users?

commented

yes, i set it using theme selector (chose material) + also in config.yml i made theme: material. and other users still se the default one

Ah, I see. Yes, if you set a theme in your config, that will be applied for everyone / all users.

When a user changes the theme through the UI, their chosen theme is remembered in their browsers local storage.
So if you're seeing a different theme, to what you set in the config, try clearing local storage (under the Config Menu --> Reset Local Settings)