# QT applications does not start in dark mode when lauched from .config/autostart in Gnome

**URL:** https://discourse.nixos.org/t/qt-applications-does-not-start-in-dark-mode-when-lauched-from-config-autostart-in-gnome/30851
**Category:** Help
**Created:** [July 23, 2023, 5:24pm UTC](https://discourse.nixos.org/t/qt-applications-does-not-start-in-dark-mode-when-lauched-from-config-autostart-in-gnome/30851 "2023-07-23T17:24:52Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![eljamm](https://discourse.nixos.org/user_avatar/discourse.nixos.org/eljamm/32/16466_2.png) [@eljamm](https://discourse.nixos.org/u/eljamm)
#### Post date: [April 8, 2024, 6:47pm UTC](https://discourse.nixos.org/t/qt-applications-does-not-start-in-dark-mode-when-lauched-from-config-autostart-in-gnome/30851/3 "2024-04-08T18:47:16Z")

</div>

I don’t know if the OP still has this issue, but for KeepassXC you can manually change the theme to `Dark` in `KeepassXC -> View -> Theme -> Dark`. You can also set it to `Classic (Platform-Native)` if you have a theme installed and you want it to follow that.

**Edit:** Probably unrelated  
~~Another thing you can try is use another [qt.platformTheme](https://mynixos.com/search?q=qt.platformTheme). I use `qtct` with home-manager and it works without issues. You just need to set the correct theme and icons in `qt5ct` and `qt6ct`.~~

~~You can have a look at this post which might help you in the right direction:~~

> [@Struggling to configure GTk/QT theme on laptop](https://discourse.nixos.org/t/struggling-to-configure-gtk-qt-theme-on-laptop/42268/4):
>
> This was literally me a few days ago, except I went full catppuccin cat I’m running Gnome under Wayland, so I’m not sure how well this applies to Sway, but I hope this helps you in the right direction. Also, if there is a better way to do this then I hope someone corrects me. PS: This is all done using home-manager, so you only need to edit your home.nix. With Breeze leavesFirst add the required packages, the rest will be specified later within options: home.packages = with pkgs; [ …

> [@Struggling to configure GTk/QT theme on laptop](https://discourse.nixos.org/t/struggling-to-configure-gtk-qt-theme-on-laptop/42268/10):
>
> AHA! Got it working! I manually wrote the configuration files for qt5ct and qt6ct this way: xdg.configFile = lib.mkIf hasSeat { kvantum = { target = "Kvantum/kvantum.kvconfig"; text = lib.generators.toINI { } { General.theme = "Catppuccin-Mocha-Blue"; }; }; qt5ct = { target = "qt5ct/qt5ct.conf"; text = lib.generators.toINI { } { Appearance = { icon\_theme = "Papirus-Dark"; }; }; }; qt6ct = { targ…

---

_[View the full topic](https://discourse.nixos.org/t/qt-applications-does-not-start-in-dark-mode-when-lauched-from-config-autostart-in-gnome/30851)._
