src/lib/darkmatter.py 990 B raw
1
"""The Darkmatter palette, in one place.
2
3
Kept in sync by hand with gtk-3.0/_darkmatter.scss — that file is the source of
4
truth for the stylesheets, this one for the raster and SVG assets.
5
"""
6
7
# Surfaces, deepest to lightest
8
SHADOW    = "#060506"
9
DARK      = "#121113"   # headerbars, panels, xfwm4 frame; level with BG
10
BG        = "#121113"   # window background
11
SIDEBAR   = "#171618"
12
BASE      = "#1c1b1d"   # entries, views
13
HOVER     = "#222222"
14
BORDER    = "#2b2b2b"
15
BORDER_HI = "#333333"
16
17
# Text, dimmest to brightest
18
DIM     = "#888888"
19
MUTED   = "#999999"
20
SOFT    = "#aaaaaa"
21
SUBTLE  = "#c1c1c1"
22
FG      = "#ffffff"
23
24
# Accents
25
TEAL   = "#5f8787"
26
CREAM  = "#fbcb97"
27
ORANGE = "#e78a53"
28
RED    = "#e75353"
29
30
# Accent ramp, for source gradients that ran through several cyans
31
ORANGE_D2 = "#b96a3d"
32
ORANGE_D1 = "#d17b48"
33
ORANGE_L1 = "#eb9663"
34
ORANGE_L2 = "#ee9c6b"
35
ORANGE_L3 = "#f2a97e"
36
37
38
def rgb(h):
39
    h = h.lstrip("#")
40
    return (int(h[0:2], 16), int(h[2:4], 16), int(h[4:6], 16))