Heliosurge
(Dan DeMontmorency)
21 באפריל, 2025, 12:08am
10
It is just a CSS based solution but will work to restrict users from seeing the premium themes in the selector. Prerequisites is that the user needs to select primary group. Though there is also a TC that will add all user groups as classes.
So for example if I wanted to hide a theme named “Dark Theme” from everyone except those in the Staff group, I could do this:
body:not(.staff) {
.user-preferences .select-kit-row[data-name="Dark Theme"] {
display: none;
}
}
So now “Dark Theme” wouldn’t appear in the user preferences dropdown unless you’re in the staff group.
Someone could figure out a way to dig around in the web inspector and enable these themes, but I imagine most people wouldn’t even look.
All that being said, for the future I think we should definitely consider some “monetization” features that would enable an admin to easily incentivize support with themes, titles, sets of emoji… etc.