The discussion revolves around adding different logos for light and dark themes in Discourse. djcyry asks how to achieve this and also inquires about adding a night/day mode button. cpradio suggests enabling the “Theme can be selected by users” checkbox in Admin settings, but djcyry wants a floating button.
sam shares a technique for allowing users to select dark/light themes, but n-b-sonar reports that this method no longer works due to a regression.
david recommends using a theme component, but Johnny_McIvor and tim_sevDesk ask about the availability of the plugin. david finally provides a solution, stating that users can now upload ‘dark mode’ versions of their logos in the site settings under the branding tab.
Hello ,
How can i add different logos for booth theme ?
I mean , for black theme a white logo (i have it already)
But for the light theme , a black logo ?
That could likely be done via a customization, but it would involve JavaScript and some CSS to style the button. Not sure how hard it would be to do, but I imagine it shouldn’t be terribly difficult as the themes should be exposed via the API.
Vous pouvez désormais téléverser des versions « mode sombre » de votre logo dans les paramètres du site. Accédez à l’onglet « Image de marque », puis faites défiler jusqu’à « Logo sombre » et « Petit logo sombre » :