Dark theme in Dolphin file manager
Solution 1
I recently switched from Debian to Manjaro and from Cinnamon to Mate, but this solution should hopefully apply to all distributions and desktop environments:
Firstly, the program "qt5ct" can be used to edit the theme of programs using Qt themes instead of whatever Cinnamon, Mate, etc. use. On Manjaro I installed it with yay qt5ct
, on Debian it's probably sudo apt-get install qt5ct
. I selected an arbitrary dark theme ("style") in there.
But that doesn't change the background image, that is still white. So I found this answer on AskUbuntu. It's pretty long, but what matters, if you just want a black background, is:
- Create a file somewhere that contains a custom Qt style sheet, with this content:
DolphinViewContainer > DolphinView > QAbstractScrollArea {
background-color: black;
}
- Start Dolphin like this in the future:
dolphin -stylesheet /path/to/style_sheet.qss
Solution 2
Go to the ~/.config/kdeglobals
and add these lines
[Colors:View] BackgroundNormal=94, 104, 109
the numbers representing the RGB value of whatever color you choose.
Solution 3
I'm using a dark theme and it simply applies to Dolphin as well.
I just tested it out again and I did notice that after switching from light to dark again, I had to close the running Dolphin instance and start a new one to have the dark theme take effect. But I guess you tried that already..?
Btw, I use the Breeze Dark
theme:
You can find this setting under KDE's System Settings > Appearance > Workspace theme > Look and Feel
Maybe it is a bug in that KDE version or debian release, did you try testing out the latest version (in a virtual machine)? I'm on Dolphin 17.04.2.
Related videos on Youtube

Fabian Röling
[email protected] t.me/Fabian42 YouTube: bit.ly/2MxqIPs Atmos: bit.ly/2ZrByMp Reddit: bit.ly/3qBWVIv I update all gamingSE posts ≥2 to MC 1.x.0. Currently busy, will catch up later. My best posts IDs for bit.ly links Thinking outside the blox Crash game for time travel! 2kKlXYj Death loop: 2mjqbXp Boom! Awake! 2mcEv3H Do you exist? 2mh5V8L Hidden messages: 2kN5Ed8 Abuse gamerule for logging: 2kniyi4 Of cake and integrals: 2miBdw1 (2. answer better) Execute them! 2kdEVpU Group NBT tags: 2mfFss5 # of items, not item entities: 2kgc700 From score to hearts: 2kniaQE Backwards filter: 2kNfr2T I put in effort, so you don't have to Kill all the mobs! 2kN5Kl0 Break all the blocks! 2kNbcV3 Place on all the blocks! 34cMajC Rotate in all the directions! 2lSk1x5 Being thorough Warning about 1.13+: 2mfFBvD (especially comments) Most unlikely snowman: 2khBZIT When water isn't water: 2kB8NwS Ghast-safe blocks in Nether: 2shMX5d What counts as kill? 2lRuqJo How many recipes possible? 2lWu5Fa Pushable comparator input: 2kLVWrE Who shot it? 2mbkpa3 Keep furnace busy: 2lWu8Rm Research&documentation data modify: 2kljdR5 Default NBT types: 2lUzFZ2 NBT in JSON: 2kB92bg All about languages: 2QnHhyD hoverEvent show_item: 2mjmBwx Mob farms high or low? 2kycVO9 Light: 2lVaMvY Fastest arrow: 2khCoen Flight acceleration: 2klj00f Pickaxe-resistant blocks: 2kluK2M Silence! 2mdQ0rG Lightning inside: 2lPUnJo Programming&redstone Evil redstone: 3dkFmVn Fibonacci: 2lQkzDG Dynamically sized array: 3a1R4mv Swap wires vertically: 2mbkrPd (5 answers) Raycasting: 2t3mWab Detect rectangles: 2mhDc3I One-commands: 3eC2XlL Binary search: 3aSUVCd Block check optimisation: 2yfTjVm Many pulses: 2O71I2j Shoot TNT from your face! 2kLgqAM Shoot arrows from your face… in multiplayer! 2kNRGYH Modded item sorter: 2miBPBP Ridden by who? 2sFCb91 TP to any coordinates with /trigger: 2miBRcV Signal halver: 2kNRN6z XP halver: 2kKmERp Cycling through 4 outputs: 2lRuJUy Veinminer concept 2lRuKYC and implementation 2w93Ild Q&As Auto-upload files to Telegram: 2kmH4jk Auto-move items in Minecraft chests: 2kincxE Qs Far future CMB: 2kmH8j4 CP violation: 2lWcpcN Random maximum: 2kLWb62 TinyTask for Linux: 2lPp0ic Video editor for Linux: 2lWuZl2 Auto-create Takeouts: 2lWuZBy Custom Notepad++ menu: 2mizoPG Combine lists better: 2kivgP3 Watched&ignored tags: 2mhDk3c Tag&question edits: 2kKFtnz Hold mails if question in review: 2mhDl7g
Updated on September 18, 2022Comments
-
Fabian Röling 3 months
I'm using a dark theme in Debian, but the Dolphin file manager just ignores it.
I have seen some examples of a dark theme in Dolphin, but I can't find a way to do it. I've seen some ways to set a background image, but of course that doesn't help me, because I would have black text on black background.
From what I've seen I might need a KDE theme. I have found this, but it gives me a
.qtcurve
file.
I looked up how to use it and this page told me to use KDE system settings. Sounds weird, but ok, I installed thesystemsettings
package.
But in the KDE system settings I only had the categories "shortcuts", "network settings" and "network connectivity". So I installedkde-config-gtk-style
and it did indeed add the "application style" category to the KDE settings.
There I first tried setting "BlackMATE" as the GTK2 and GTK3 theme, which did nothing. Then I tried importing the downloaded theme file, which didn't work, because it expected a.tar
file.
So I packed the theme file into a.tar
archive (which seems weird, why would I need to do that?) and imported that, which made the settings window become unresponsive and then close itself. I guess it's not the sort oftar
file it expects?
When I click "download GTK2 themes" or "download GTK3 themes", it stays at "initialising" and does nothing.So how do I set a dark theme in Dolphin? Do I even need the KDE settings?
Debian 9.5
Cinnamon 3.2.7
Dolphin 16.08.3 -
Fabian Röling about 4 yearsMy Dolphin version is 16.08.3 and Synaptic (and
apt-get
) doesn't find any updates for it. My settings have the categories "Startup", "View modes", "Navigation", "Services", "Trash" and "General", also there are less buttons at the bottom. Since I didn't really write that into the question, my Debian version is 9.5. -
mx1up about 4 yearsThe setting I showed is in the KDE System Settings. I updated the answer to explain where to find it. In your question you mention the categories you have in your System Settings but Workspace Theme does not seem present. Maybe you have to install a package to have the workspace theme settings?
-
Fabian Röling about 4 yearsI installed
plasma-workspace
and it does add a few more menus, but not that one. I have now: "Application style", "Desktop behaviour", "Shortcuts", "Applications", "Settings", "Connectivity", "Power management". -
mx1up about 4 yearsI looked up the file to be responsible for the "Workspace Theme" settings: settings-appearance-workspacetheme.desktop. This file is contained in the
systemsettings
package: packages.debian.org/stretch/amd64/systemsettings/filelist . Do you have this one installed? -
Fabian Röling about 4 yearsAfter letting a file search in Dolphin run for more than a day without results, I let Konqueror search for that file and it found it in a second, wow. That file is in
/usr/share/kservices5
for me. The packagesystemsettings
is installed, that's how I got KDE system settings at all. -
mx1up about 4 yearsI recommend rebuilding the KService desktop file system configuration cache. You can do that for your user with the command
kbuildsycoca5 --noincremental
and see of the "workspace theme" setting appears. If that doesn't help, try rebuilding the global (=system) cache:sudo kbuildsycoca5 --noincremental --global
. If any of those commands yields an error, please post the output -
Fabian Röling about 4 yearsFirst command:
kbuildsycoca5 running... Recreating ksycoca file ("/home/fabian/.cache/ksycoca5_en-GB_4PUFeZmyndN20Om1YAsxYs8NJdk=", version 303) kf5.kservice.sycoca: Parse error in "/home/fabian/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu" , line 1 , col 1 : "unexpected end of file" Menu "applications-kmenuedit.menu" not found. The desktop entry file "/usr/share/applications/evince.desktop" has an empty mimetype! The desktop file "/home/fabian/.local/share/applications/appimagekit-shotcut.desktop" references the action "Uninstall" but doesn't define it Saving
-
Fabian Röling about 4 yearsSecond command:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' kbuildsycoca5 running... Recreating ksycoca file ("/usr/local/share/ksycoca/ksycoca5_en-GB", version 303) Menu "applications-kmenuedit.menu" not found. The desktop entry file "/usr/share/applications/evince.desktop" has an empty mimetype! Saving
-
Fabian Röling about 4 yearsI installed the package
kmenuedit
, but that also doesn't change anything, the output is the same and the menu item is still not there. -
sam over 2 yearsit's
yay -S qt5ct
in arch and manjaro you forget-S
and worked for me thanks. -
Fabian Röling over 2 yearsJust
yay search_term
gives a list of possible packages. Since you can often choose between the default package, the Git version, older version, differently packaged ones, etc., I find it useful to always open the menu, even if you know the package name. Of course in a script you would usepacman
directly or something else, but this is not a script usecase. -
Fabian Röling over 2 yearsBTW, I switched from Mate to KDE after I wrote this answer and there it simply uses the system theme, even for the background colour, no special treatment required.
-
sam over 2 yearsi was switched to
Thunar
filemanager fromdolphin
in archlinux with xfce4 desktop -
Fabian Röling over 2 yearsI don't know what you mean with "I was switched", but you can just install and use Dolphin if you prefer that. It's mostly independent of the desktop environment.
-
Fabian Röling over 2 yearsThis would be better as an edit to my answer. Also, the icons are not definitely gone, only if the theme doesn't work properly.
-
ewen-goisot almost 2 yearsYour solution worked for me. But is there a way to also change text color to white ? I mean, if I make my foreground black (and not only grey like in your example), I will be unable to read text.
-
Indacochea Wachín over 1 yearThanks, working for my in MX Linux 19 with openbox (using the Breeze Dark Theme inside the package Breeze)