I installed elementary tweaks and enabled the dark mode toggle but the dark theme isn't applied to system settings app, although it works on other apps like files Using 5.1.5 Hera
replace the file at /usr/share/dbus-1/interfaces/io.elementary.pantheon.AccountsService.xml with the contents of
- Open terminal
sudo vi /usr/share/dbus-1/interfaces/io.elementary.pantheon.AccountsService.xml
- Replace the whole code with https://github.com/elementary/default-settings/blob/master/accountsservice/io.elementary.pantheon.AccountsService.xml,
- Change the PrefersColorScheme value from 0 to 1.
- Save the changes,
- Restart the system, don't just
sudo service lightdm restartbecause it won't work.
Tested on eOS 5.1.6.
I would like to add to MA Jacob's solution that, if you follow his solution but still don't see a dark mode in things like:
- The system settings
- The Applications Menu and other wingpanel indicators
It might be because you changed your Plank Theme.
I did this, since I wanted a transparent dock (Ctrl + Click on Dock, Preferences, Theme) and the aforementioned stayed in light mode.
Changing it back to "Default" solved it for me. I still got my transparent dock by copying /usr/share/plank/themes/Transparent/dock.theme to /usr/share/plank/themes/Default/dock.theme (backup the Default/dock.theme first) and leaving the setting on Default to keep dark mode.