# Automatischer Dunkelmodus wählt falsches Logo, es sei denn, die richtige Farbpalette wird manuell ausgewählt

**URL:** https://meta.discourse.org/t/automatic-dark-mode-picks-wrong-logo-unless-correct-colour-palette-is-selected-manually/230656
**Category:** Bug
**Created:** [21. Juni 2022 um 19:18 UTC](https://meta.discourse.org/t/automatic-dark-mode-picks-wrong-logo-unless-correct-colour-palette-is-selected-manually/230656 "2022-06-21T19:18:08Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![MattiaB](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattiab/32/262975_2.png) [@MattiaB](https://meta.discourse.org/u/MattiaB)
#### Post date: [21. Juni 2022 um 19:18 UTC](https://meta.discourse.org/t/automatic-dark-mode-picks-wrong-logo-unless-correct-colour-palette-is-selected-manually/230656/1 "2022-06-21T19:18:08Z")

</div>

Der Titel sagt eigentlich schon alles: Ich habe ein Theme (Standard) mit WCAG Light als Standard-Farbpalette. Ich habe die automatische Dunkelmodus-Umschaltung aktiviert und die „Standard-ID des Farbschemas für den Dunkelmodus“ auf WCAG Dark gesetzt.  
Auf meinem Computer ist der Dunkelmodus aktiviert und wenn ich jeden Browser öffne, ohne mich anzumelden, sehe ich die WCAG Dark-Farben, aber das Logo ist das helle, normale. Wenn ich mich anmelde, dann in meinen Einstellungen zu „Oberfläche“ gehe und dort manuell WCAG Dark auswähle und aktualisiere, erscheint das richtige Logo.

Ich kann nicht herausfinden, was falsch ist. Ich habe im Bereich „Branding“ zwei verschiedene Arten von Logos festgelegt.  
Das bekomme ich mit aktiviertem Dunkelmodus auf meinem Computer:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/d/7/fd737cfbceda62bd1d63d73c21ba885419dbccae.png)

Auswahl des richtigen Farbschemas:

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/b/0/4b0ad50a5d9749d9930c3cc587e2d2bfd57beed7.png)

Ich kann meine Farbpalette manuell korrekt einstellen, aber nicht angemeldete Benutzer mit aktiviertem Dunkelmodus sehen einen schwarzen Hintergrund, aber mit einem hellen Logo. Wie kann ich das beheben?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [21. Juni 2022 um 19:23 UTC](https://meta.discourse.org/t/automatic-dark-mode-picks-wrong-logo-unless-correct-colour-palette-is-selected-manually/230656/2 "2022-06-21T19:23:15Z")

</div>

Vielleicht damit zusammenhängend? [Some themes on Meta look too similar suddenly? - #10 by david](https://meta.discourse.org/t/some-themes-on-meta-look-too-similar-suddenly/230364/10?u=pfaffman)

---

<div class="post-metadata">

### Author: ![MattiaB](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattiab/32/262975_2.png) [@MattiaB](https://meta.discourse.org/u/MattiaB)
#### Post date: [21. Juni 2022 um 19:55 UTC](https://meta.discourse.org/t/automatic-dark-mode-picks-wrong-logo-unless-correct-colour-palette-is-selected-manually/230656/3 "2022-06-21T19:55:48Z")

</div>

Ich bin mir nicht sicher, ob das das Problem ist, das ich habe. Die Farbpalette ist richtig und sie ändert sich, aber das Logo nicht. Es ist, als ob der automatische Dunkelmodus das Logo aus irgendeinem Grund nicht auch umschaltet.

---

<div class="post-metadata">

### Author: ![MattiaB](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattiab/32/262975_2.png) [@MattiaB](https://meta.discourse.org/u/MattiaB)
#### Post date: [21. Juni 2022 um 21:33 UTC](https://meta.discourse.org/t/automatic-dark-mode-picks-wrong-logo-unless-correct-colour-palette-is-selected-manually/230656/4 "2022-06-21T21:33:35Z")

</div>

Ich habe auch versucht, es ohne Erfolg neu zu erstellen.

Wenn der Dunkelmodus auf meinem Computer aktiviert ist, sehe ich im Quellcode des Forums Folgendes:

```plaintext
data-color-scheme-is-dark="false"

```

Dies setzt das Farbschema auf ein dunkles, aber anscheinend ist es nicht dunkel genug, damit das Logo ebenfalls dunkel ist..?

---

<div class="post-metadata">

### Author: ![DragonByte](https://avatars.discourse-cdn.com/v4/letter/d/41988e/32.png) [@DragonByte](https://meta.discourse.org/u/DragonByte)
#### Post date: [21. Juni 2022 um 22:47 UTC](https://meta.discourse.org/t/automatic-dark-mode-picks-wrong-logo-unless-correct-colour-palette-is-selected-manually/230656/5 "2022-06-21T22:47:57Z")

</div>

> [@Theme Switcher Component](https://meta.discourse.org/t/theme-switcher-component/113460/37?u=dragonbyte):
>
> This theme component have bug, if user set dark mode on him device and set light mode in switch on the forum, logo not change, user view light-logo (for dark mode) on light mode.

---

<div class="post-metadata">

### Author: ![MattiaB](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mattiab/32/262975_2.png) [@MattiaB](https://meta.discourse.org/u/MattiaB)
#### Post date: [22. Juni 2022 um 08:07 UTC](https://meta.discourse.org/t/automatic-dark-mode-picks-wrong-logo-unless-correct-colour-palette-is-selected-manually/230656/6 "2022-06-22T08:07:30Z")

</div>

Ich verwende diese Themenkomponente jedoch nicht.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [22. Juni 2022 um 16:07 UTC](https://meta.discourse.org/t/automatic-dark-mode-picks-wrong-logo-unless-correct-colour-palette-is-selected-manually/230656/7 "2022-06-22T16:07:38Z")

</div>

Vielleicht behebt das auch Ihr Problem

> [@Logo stopped updating if dark mode is enabled](https://meta.discourse.org/t/logo-stopped-updating-if-dark-mode-is-enabled/230782/2?u=moin):
>
> We had a dark mode bug shipped a few days ago that was corrected in the same day. Since the dark logo is working here on Meta at the moment can you try updating?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [22. Juni 2022 um 16:52 UTC](https://meta.discourse.org/t/automatic-dark-mode-picks-wrong-logo-unless-correct-colour-palette-is-selected-manually/230656/8 "2022-06-22T16:52:12Z")

</div>

Danke für den Bericht, ich habe einen Fehler identifiziert und wir haben eine Korrektur

> <https://github.com/discourse/discourse/pull/17207>
>
> This regressed on 2f66eb5 where CSS was moved from the HTML document
> head to the… body.
> 
> Bug report at https://meta.discourse.org/t/-/230656?u=falco

Hier auf Meta bereitgestellte Korrektur. Bitte aktualisieren Sie Ihre Website, um die Korrektur zu erhalten.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [25. Juni 2022 um 11:00 UTC](https://meta.discourse.org/t/automatic-dark-mode-picks-wrong-logo-unless-correct-colour-palette-is-selected-manually/230656/10 "2022-06-25T11:00:36Z")

</div>

Dieses Thema wurde nach 2 Tagen automatisch geschlossen. Neue Antworten sind nicht mehr möglich.
