2016-06-13 20:24:23 -04:00
---
layout: doc
2016-06-14 09:52:17 -04:00
title: Dark Theme in Dom0 and DomU
2016-06-13 20:24:23 -04:00
permalink: /doc/dark-theme/
---
2016-06-15 19:48:47 -04:00
Dark Theme in Dom0
==================
Dark KDE in Dom0
2016-06-13 20:24:23 -04:00
----------------
2016-06-15 19:48:47 -04:00
The following text describes how to change the default light theme to a dark theme. This is just an example, feel free to adjust the appearance to your taste.
The image below shows the default light theme after installation.
![begin light theme ](/attachment/wiki/Dark-Theme/kde-fresh-installed-standard.png )
This is the result after applying the steps described here.
![end result dark theme ](/attachment/wiki/Dark-Theme/kde-end-result.png )
2016-06-25 20:20:13 -04:00
1. Change `Workspace Appearance`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
1. Open the `Workspace Appearance` window
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
Qubes Menu -> System Tools -> System Settings -> Workspace Appearance
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![Workspace Appearance ](/attachment/wiki/Dark-Theme/kde-app-appearance-menu-style.png )
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
2. Go to `Desktop Theme`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![Desktop Menu ](/attachment/wiki/Dark-Theme/kde-appearance-settings-desktop-theme-oxygen.png )
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
3. Select `Oxygen` and `Apply` the change
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
2. (Optional) Remove blue glowing task items
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![blue glowing task bar items ](/attachment/wiki/Dark-Theme/kde-taskbar-blue-glowing-border.png )
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
1. Adjust Oxygen `Details`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
Qubes Menu -> System Tools -> System Settings -> Workspace Appearance -> Desktop Theme -> Details (Tab)
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
2. Select `Oxygen`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
3. Change `Theme Item -> Task Items` from `Oxygen Task Items` to `Air Task Items`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![Change Task items look ](/attachment/wiki/Dark-Theme/kde-desktop-theme-details.png )
2016-06-25 19:08:11 -04:00
2016-06-25 20:20:13 -04:00
4. Apply changes
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![task bar items blue glowing removed ](/attachment/wiki/Dark-Theme/kde-taskbar-blue-glowing-removed.png )
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
3. Change `Application Appearance`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
1. Open the `Application Appearance` window
2016-06-25 19:08:11 -04:00
2016-06-25 20:20:13 -04:00
Qubes Menu -> System Tools -> System Settings -> Application Appearance
2016-06-25 19:08:11 -04:00
2016-06-25 20:20:13 -04:00
2. Go to `Colors`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![colors tab ](/attachment/wiki/Dark-Theme/kde-app-appearance-menu-colors.png )
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
3. Select `Obsidian Coast`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![set to Obsidian Coast ](/attachment/wiki/Dark-Theme/kde-app-appearance-menu-colors-set.png )
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
4. Apply Changes
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
Qubes VM Manager should now look like the image below.
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![result black Qubes Manager ](/attachment/wiki/Dark-Theme/kde-black-qubes-manager.png )
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
**Note:** Chaning the `Window Decorations` from `Plastik for Qubes` will remove the border color and the VM name. The problem with `Plastik for Qubes` is, that it does not overwrite the background and text color for Minimize, Maximize and Close buttons. The three button are therefor hard to read.
2016-06-15 19:48:47 -04:00
Dark XCFE in Dom0
-----------------
The following text describes how to change the default light theme to a dark theme. This is just an example, feel free to adjust the appearance to your taste.
The image below shows the default light theme after installation.
![begin light theme ](/attachment/wiki/Dark-Theme/xfce-fresh-installed.png )
This is the result after applying the steps described here.
![end result dark theme ](/attachment/wiki/Dark-Theme/xfce-end-result.png )
2016-06-25 20:20:13 -04:00
1. Change Appearance
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
1. Open the `Appearance` dialog
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
Qubes Menu -> System Tools -> Appearance
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![appearance dialog ](/attachment/wiki/Dark-Theme/xfce-appearance-dialog.png )
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
2. Change Style to `Albatross`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
**Note:** The black appearance theme `Xfce-dusk` makes the VM names in the `Qubes OS Manager` unreadable.
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
2. *(Optional)* Change Window Manager Style
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
1. Open the `Window Manager` dialog
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
Qubes Menu -> System Tools -> Appearance
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![window manager dialog ](/attachment/wiki/Dark-Theme/xfce-window-manager-theme.png )
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
2. Change the Theme in the `Style` Tab (e. g. Defcon-IV). All available themes work.
2016-06-15 19:48:47 -04:00
Dark App VM, Template VM, Standalone VM, HVM (Linux Gnome)
==========================================================
Almost all Qubes VM's are based on the Gnome desktop. Therefor the description below is focused on the Gnome Desktop Environment.
2016-06-25 19:08:11 -04:00
Using "Gnome-Tweak-Tool"
2016-06-15 19:48:47 -04:00
------------------------
The advantage of creating a dark themed Template VM is, that each AppVM which is derived from the Template VM will be dark themed by default.
**Note:** Gnome-Tweak-Tool crashes under Archlinux. A workaround is to assign the AppVM to another TemplateVM (Debian, Fedora) which has Gnome-Tweak-Tool installed. Start the AppVM and configure the settings. Shutdown the machine and switch the template VM back to Archlinux.
2016-06-25 20:20:13 -04:00
1. Start VM
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
**Note:** In case of App VM start the Template on which the AppVM is based on.
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
2. Install `Gnome-Tweak-Tool`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
- Fedora
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
sudo dnf install gnome-tweak-tool
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
- Debian
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
sudo apt-get install gnome-tweak-tool
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
3. *(Only AppVM)* Stop template and start AppVM
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
4. Add `Gnome-Tweak-Tool` to the Application Menu
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
1. `Right-click` on VM entry in `Qubes VM Manager` select `Add/remove app shortcuts`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
2. Select `Tweak Tool` and press the `>` button to add it
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![Application Dialog ](/attachment/wiki/Dark-Theme/dialog-add-gnome-tweak-tool.png )
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
5. Enable `Global Dark Theme`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
1. *Debian only*
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
cd ~/.config/
mkdir gtk-3.0
cd gtk-3.0/
touch settings.ini
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
2. Start `Tweak Tool` from the VM application menu and set the `Global Dark Theme` switch to `on`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
![Global Dark Theme enabled ](/attachment/wiki/Dark-Theme/gnome-tweak-tool.png )
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
6. *(Optional)* Modify Firefox
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
**Note:** Firefox uses GTK style settings by default. This can create side effects such as unusable forms or search fields. There are two different ways to avoid this. Either by using a add-on or by overwriting the defaults.
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
- use the theme [GTK+ Dark Theme Global Fixes ](https://userstyles.org/styles/111694/gtk-dark-theme-global-fixes ) and the [Stylish ](https://addons.mozilla.org/en-US/firefox/addon/stylish/ ) addon
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
- or add the following line to `/rw/config/rc.local`
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
sed -i.bak "s/Exec=firefox %u/Exec=bash -c 'GTK_THEME=Adwaita:light firefox %u'/g" /usr/share/applications/firefox.desktop
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
7. Restart VM or all application
2016-06-15 19:48:47 -04:00
Manually
--------
Manually works for Debian, Fedora and Archlinux.
2016-06-25 20:20:13 -04:00
1. Start VM
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
**Note:** In case of App VM start the Template on which the AppVM is based on.
2016-06-15 19:48:47 -04:00
2016-06-25 20:20:13 -04:00
2. Enable `Global Dark Theme`
2016-06-15 19:48:47 -04:00
2016-06-25 19:08:11 -04:00
cd ~/.config/
mkdir gtk-3.0
cd gtk-3.0/
touch settings.ini
2016-06-13 20:24:23 -04:00
2016-06-25 20:20:13 -04:00
add the following lines to `settings.ini`
2016-06-14 09:52:17 -04:00
2016-06-25 19:08:11 -04:00
[Settings]
gtk-application-prefer-dark-theme=1
2016-06-14 09:52:17 -04:00
2016-06-25 20:20:13 -04:00
3. follow step 6 and 7 in: Using `Gnome-Tweak-Tool`