DankMaterialShell icon indicating copy to clipboard operation
DankMaterialShell copied to clipboard

Dark/Light mode switching not working

Open KornienkoDev opened this issue 4 months ago • 6 comments

Compositor

Hyprland

Distribution

Arch Linux

If Other, please specify

No response

Select your Installation Method

Distro Packaging

Was this your original Installation method?

Yes

If no, specify

No response

dms doctor -vC

Output of dms doctor -vC

DMS Doctor Report

System

  • [ok] Operating System: Arch Linux
    • ID: arch, Version: rolling, Arch: amd64
  • [ok] Architecture: amd64
  • [ok] Display Server: Wayland
    • WAYLAND_DISPLAY=wayland-1

Versions

  • [ok] DMS CLI: dms v1.5.0
    • /usr/bin/dms
  • [ok] Quickshell: Quickshell 0.3.0 (revision , distributed by Arch Linux)
    • /usr/bin/qs
  • [ok] DMS Shell: v1.5.0
    • /usr/share/quickshell/dms

Installation

  • [ok] DMS Configuration: Found
    • /usr/share/quickshell/dms
  • [ok] shell.qml: Present
    • /usr/share/quickshell/dms/shell.qml
  • [info] Install Type: System package
    • /usr/share/quickshell/dms

Compositor

  • [ok] Hyprland: 0.55.4
    • /usr/bin/hyprland
  • [info] Active: Hyprland
  • [warn] Background Blur: Unsupported
    • Compositor does not support ext-background-effect-v1

Quickshell Features

  • [ok] Polkit: Available
    • Authentication prompts
  • [ok] IdleMonitor: Available
    • Idle detection
  • [ok] IdleInhibitor: Available
    • Prevent idle/sleep
  • [ok] ShortcutInhibitor: Available
    • Allow shortcut management (niri)
  • [ok] BackgroundBlur: Available
    • Background blur API support in Quickshell

Optional Features

  • [ok] accountsservice: Available
    • User accounts
  • [ok] power-profiles-daemon: Available
    • Power profile management
  • [ok] logind: Available
    • Session management
  • [warn] cups-pk-helper: Not available (install cups-pk-helper)
    • Printer management
  • [ok] I2C/DDC: 1 monitor(s) detected
    • External monitor brightness control
  • [ok] qt6-imageformats: Installed (1 formats)
    • Formats: GIF (/usr/lib/qt6/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
  • [ok] kimageformats: Installed (4 formats)
    • Formats: AVIF, HEIF, JXL, EXR (/usr/lib/qt6/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
  • [ok] Terminal: alacritty
  • [ok] Network: NetworkManager
    • NetworkManager present. Using NM API.
  • [ok] matugen: Installed
    • Dynamic theming
  • [ok] dgop: Installed
    • System monitoring
  • [ok] cava: Installed
    • Audio visualizer
  • [info] khal: Not installed
    • Calendar events
  • [ok] danksearch: Installed
    • File search
  • [info] dankcalendar: Not installed
    • Calendar app
  • [info] fprintd: Not installed
    • Fingerprint auth

Config Files

  • [ok] settings.json: Present
    • /home/power007/.config/DankMaterialShell/settings.json
  • [info] clsettings.json: Not yet created
    • /home/power007/.config/DankMaterialShell/clsettings.json
  • [info] plugin_settings.json: Not yet created
    • /home/power007/.config/DankMaterialShell/plugin_settings.json
  • [ok] session.json: Present
    • /home/power007/.local/state/DankMaterialShell/session.json
  • [ok] dms-colors.json: Present
    • /home/power007/.cache/DankMaterialShell/dms-colors.json

Services

  • [ok] dms.service: enabled, active
  • [ok] greetd: enabled

Environment

  • [info] QT_QPA_PLATFORMTHEME: qt6ct
  • [info] QS_ICON_THEME: Not set

Fonts

  • [ok] Normal Font: Adwaita Sans
    • Available
  • [ok] Monospace Font: Adwaita Sans
    • Available

Summary: 0 error(s), 2 warning(s), 33 ok

Description

When I try to switch from light mode to dark mode or dark mode to light mode, it automatically reverts to the previous mode. Now the portal doesn't obey the DMS, but vice versa. To apply dark or light mode, you need to use the portal command: gsettings set org.gnome.desktop.interface color-scheme prefer-light. If you disable Sync Mod with Portal in the settings, then DMS switches its theme, but not the system one.

Expected Behavior

By clicking on the control center - Dark mode, the entire system should switch to dark mode.

Steps to Reproduce

  1. Open control center.
  2. Press "Dark mode"

Error Messages/Logs

No response

Screenshots/Recordings

https://github.com/user-attachments/assets/6c0d642c-b333-4dc9-b237-34ab8340df24

KornienkoDev avatar Jul 09 '26 06:07 KornienkoDev

I am seeing the same behavior on Void Linux w/ niri

cgwhouse avatar Jul 09 '26 14:07 cgwhouse

This happened to me too, it was because in my setting I had the automatic color mode on, when I turn it off it didn't change anymore

You can look for the option on Setting and search "color mode"

Image

Axl-91 avatar Jul 09 '26 19:07 Axl-91

Same issue on NixOS, even with Automatic Color Mode off. As soon as I close the setting pane, it reverts to the other mode.

clementpoiret avatar Jul 10 '26 08:07 clementpoiret

I'm seeing this on EndeavourOS with Niri as well. Automatic Color Mode off and when I set dark mode it switches back to light mode.

Edit: This seems to be due to installing Gnome, which I needed to do to get the xdg-desktop-portal working. I ran the gsettings command that OP mentioned to "prefer-dark" and turned off Sync Mode with Portal and that seems to be working for most apps.

kgarrison343 avatar Jul 10 '26 17:07 kgarrison343

See if the referenced committ fixes it d82d86df5cb932fc275dcf30c35cd72705a21065

bbedward avatar Jul 10 '26 19:07 bbedward

See if the referenced committ fixes it d82d86d

Yeah this commit fixed issue. Thanks!

KornienkoDev avatar Jul 11 '26 13:07 KornienkoDev