djcyry
(Cosmin)
24. September 2017 um 20:22
1
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 ?
Black theme :
Light theme:
Also , is there any option to add a button for night/day mode in index , to change the theme ?
Thanks.
riking
(Kane York)
24. September 2017 um 22:34
2
Try changing the theme here - note that there’s a partial white background included in the logo. You could do the same with an off-black background.
edit: Screenshot
2 „Gefällt mir“
djcyry
(Cosmin)
24. September 2017 um 22:36
3
Ok , i will try with the photoshop (poor skills )
What about this :
Also , is there any option to add a button for night/day mode in index , to change the theme ?
cpradio
(cpradio)
24. September 2017 um 22:37
4
If you check the “Theme can be selected by users” checkbox in Admin > Customize, it will show up as a link in the Hamburger menu.
1 „Gefällt mir“
djcyry
(Cosmin)
24. September 2017 um 22:38
5
Yes i know .
But i want to add a float button on index to do that .
Its a bad idea ? Just ask . Thanks
cpradio
(cpradio)
25. September 2017 um 12:07
6
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.
1 „Gefällt mir“
sam
(Sam Saffron)
26. September 2017 um 07:11
7
I covered the technique here btw:
This is actually pretty simple:
old method .logo-big {
display: block;
-moz-box-sizing: border-box;
box-sizing: border-box;
background: url(awesome-dark-logo.png) no-repeat;
width: 150px;
height: 40px;
padding-left: 150px;
background-size: 150px 40px;
}
You basically evict the existing image out of the IMG tag
8 „Gefällt mir“
n-b-sonar
(Nicolas)
6. Dezember 2018 um 10:14
8
Am getting reports on our instance that @sam techniques (css trick ) no longer works, and instead leads to double logo:
Is this a regression ? Any recommendation to mitigate this ?
Thanks!
david
(David Taylor)
6. Dezember 2018 um 10:21
9
The best method now is to use this theme component:
https://meta.discourse.org/t/alternative-logo-for-dark-themes/88502?u=david
I will update the post you linked so it doesn’t confuse people in future.
5 „Gefällt mir“
Hallo, ist dieses Plugin noch verfügbar?
Gibt es derzeit eine Lösung dafür? Der Link ist nicht mehr verfügbar @david .
david
(David Taylor)
29. März 2022 um 14:38
12
Sie können jetzt „Dark Mode“-Versionen Ihres Logos in den Website-Einstellungen hochladen. Gehen Sie einfach zum Reiter „Branding“ und scrollen Sie nach unten zu „Logo dunkel“ und „Logo klein dunkel“:
Weitere Informationen hier:
You can now set up your Discourse site to automatically switch color schemes when the user’s device is in dark mode. For a quick preview, head over to the try.discourse.org instance and toggle your device’s dark mode on and off to see this new feature in action. (This feature not enabled on meta.)
Enabling automatic dark mode
To enable this feature on your instance, you can pick the dark mode color scheme in your site settings:
[image]
Once that setting is set, you can reload your site with …
2 „Gefällt mir“
david
(David Taylor)
Hat dieses Thema aufgeteilt,
30. März 2022 um 08:28
13
david
(David Taylor)
Geschlossen,
29. April 2022 um 08:28
14
Dieses Thema wurde 30 Tage nach der letzten Antwort automatisch geschlossen. Neue Antworten sind nicht mehr erlaubt.