GTKDarkThemeVariantSetter
Make Sublime Text use the dark GTK+ theme variant (NO LONGER MAINTAINED)
Details
Installs
- Total 4K
- Win 1
- Mac 0
- Linux 4K
| Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | Feb 28 | Feb 27 | Feb 26 | Feb 25 | Feb 24 | Feb 23 | Feb 22 | Feb 21 | Feb 20 | Feb 19 | Feb 18 | Feb 17 | Feb 16 | Feb 15 | Feb 14 | Feb 13 | Feb 12 | Feb 11 | Feb 10 | Feb 9 | Feb 8 | Feb 7 | Feb 6 | Feb 5 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
| Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Make Sublime Text Dark and Beautiful on GTK+ 3
This Sublime Text 2/3 plugin sets the dark theme variant for Sublime's windows on GTK+ 3-based systems that support it, such as recent GNOME distributions.
The result is a much more beautiful Sublime when using dark UI themes because the distracting contrast between title bar and chrome is eliminated. The window border also becomes dark, making the window blend into the desktop better.
Before (Sublime Text 3 on Fedora 20)

After

Installation
Through Package Control (recommended)
- Run “Package Control: Install Package” from the Sublime Text Command Palette (Shift+Ctrl+P)
- In the list, select “GTKDarkThemeVariantSetter” and press Return
Manually
cdinto your Sublime Text packages directory (e.g..config/sublime-text-2/Packages)- Run
git clone https://github.com/p-e-w/GTKDarkThemeVariantSetter.git
How it works
Sublime Text (like most other extensible applications) does not provide hooks into its low-level windowing logic. This plugin demonstrates a technique that nevertheless allows for fine-grained control over windows, provided that standard Linux and X.Org tools are present on the system:
- Find the application's process ID by name with
pidof [NAME] - Find all top-level windows (and their IDs) with
xprop -root _NET_CLIENT_LIST - For each window ID thus found, get the associated process ID with
xprop -id [ID] _NET_WM_PID - If the process ID thus obtained matches the application's process ID, set the dark theme variant for the window with
xprop -id [ID] -f _GTK_THEME_VARIANT 8u -set _GTK_THEME_VARIANT dark(some background on this very poorly documented property can be found here and here)
License
Copyright © 2014 Philipp Emanuel Weidmann (pew@worldwidemann.com)
Released under the terms of the MIT License