Skip to content

Commit

Permalink
New color scheme: Colored glass
Browse files Browse the repository at this point in the history
First builtin color scheme that makes use of transparency
(mainly for demonstration purposes)
  • Loading branch information
udda committed Sep 21, 2016
1 parent 7ad7004 commit 1753d4a
Show file tree
Hide file tree
Showing 3 changed files with 211 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ COLOR_SCHEME_ICONS = \
$(top_srcdir)/data/color-scheme-solarized-dark.xpm \
$(top_srcdir)/data/color-scheme-solarized-light.xpm \
$(top_srcdir)/data/color-scheme-fruity.xpm \
$(top_srcdir)/data/color-scheme-colored-glass.xpm \
$(top_srcdir)/data/color-scheme-ubuntu-ambiance.xpm \
$(top_srcdir)/data/color-scheme-ubuntu-radiance.xpm \
$(top_srcdir)/data/color-scheme-linux-mint.xpm \
Expand Down
58 changes: 58 additions & 0 deletions common/colors.c
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,64 @@ const MultiloadColorScheme multiload_builtin_color_schemes[] = {
}
},

{ "Colored Glass", color_scheme_colored_glass_xpm,
{ { // CPU
HEX_TO_RGBA(FFFFFF, D8), // User
HEX_TO_RGBA(FFFFFF, A5), // System
HEX_TO_RGBA(FFFFFF, 72), // Nice
HEX_TO_RGBA(FFFFFF, 3F), // IOWait
HEX_TO_RGBA(FFFFFF, FF), // Border
HEX_TO_RGBA(BEEEFF, FF), // Background (top)
HEX_TO_RGBA(48BDE6, FF) // Background (bottom)
}, { // MEM
HEX_TO_RGBA(FFFFFF, D8), // User
HEX_TO_RGBA(FFFFFF, A5), // Shared
HEX_TO_RGBA(FFFFFF, 72), // Buffers
HEX_TO_RGBA(FFFFFF, 3F), // Cached
HEX_TO_RGBA(FFFFFF, FF), // Border
HEX_TO_RGBA(BFFFE0, FF), // Background (top)
HEX_TO_RGBA(43D18D, FF) // Background (bottom)
}, { // NET
HEX_TO_RGBA(FFFFFF, D8), // In
HEX_TO_RGBA(FFFFFF, A5), // Out
HEX_TO_RGBA(FFFFFF, 72), // Local
HEX_TO_RGBA(FFFFFF, FF), // Border
HEX_TO_RGBA(F1F6D1, FF), // Background (top)
HEX_TO_RGBA(D7CD46, FF) // Background (bottom)
}, { // SWAP
HEX_TO_RGBA(FFFFFF, D8), // Used
HEX_TO_RGBA(FFFFFF, FF), // Border
HEX_TO_RGBA(E6D6F0, FF), // Background (top)
HEX_TO_RGBA(D0A1E1, FF) // Background (bottom)
}, { // LOAD
HEX_TO_RGBA(FFFFFF, D8), // Average
HEX_TO_RGBA(FFFFFF, FF), // Border
HEX_TO_RGBA(EACECE, FF), // Background (top)
HEX_TO_RGBA(DF8181, FF) // Background (bottom)
}, { // DISK
HEX_TO_RGBA(FFFFFF, D8), // Read
HEX_TO_RGBA(FFFFFF, A5), // Write
HEX_TO_RGBA(FFFFFF, FF), // Border
HEX_TO_RGBA(F3E8DD, FF), // Background (top)
HEX_TO_RGBA(E2AB70, FF) // Background (bottom)
}, { // TEMP
HEX_TO_RGBA(FFFFFF, D8), // Value
HEX_TO_RGBA(FFFFFF, A5), // Critical
HEX_TO_RGBA(FFFFFF, FF), // Border
HEX_TO_RGBA(FAD8F3, FF), // Background (top)
HEX_TO_RGBA(F28AE1, FF) // Background (bottom)
}, { // PARM
HEX_TO_RGBA(FFFFFF, D8), // Result 1
HEX_TO_RGBA(FFFFFF, A5), // Result 2
HEX_TO_RGBA(FFFFFF, 72), // Result 3
HEX_TO_RGBA(FFFFFF, 3F), // Result 4
HEX_TO_RGBA(FFFFFF, FF), // Border
HEX_TO_RGBA(DDDDDD, FF), // Background (top)
HEX_TO_RGBA(BBBBBB, FF) // Background (bottom)
}
}
},

{ "Ubuntu Ambiance", color_scheme_ubuntu_ambiance_xpm,
{ { // CPU
HEX_TO_RGBA(E96F20, FF), // User
Expand Down
152 changes: 152 additions & 0 deletions data/color-scheme-colored-glass.xpm
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
/* XPM */
static char * color_scheme_colored_glass_xpm[] = {
"20 20 129 2",
" c None",
". c #5A7B97",
"+ c #EDBBEC",
"@ c #EABEEA",
"# c #E8C0E7",
"$ c #E1C4E4",
"% c #DDCBDD",
"& c #D8D0D8",
"* c #D3D5D3",
"= c #CEDACE",
"- c #CBE0C8",
"; c #C8E3C5",
"> c #C6E5C3",
", c #C3E8C0",
"' c #E7BFE9",
") c #E7C1E6",
"! c #E3C5E2",
"~ c #D7D1D4",
"{ c #C0EABE",
"] c #BEEDBB",
"^ c #E4C4E3",
"/ c #D3D8D0",
"( c #CDDDCB",
"_ c #C0EDBB",
": c #C3EDBB",
"< c #C9EBBB",
"[ c #D0D8D0",
"} c #C3E5C3",
"| c #C2ECBC",
"1 c #C4ECBC",
"2 c #CEEBBB",
"3 c #D0EBBB",
"4 c #D6EBBB",
"5 c #D9E9BD",
"6 c #DEE9BD",
"7 c #C5EABE",
"8 c #CBEBBB",
"9 c #D3EBBB",
"0 c #E3E9BD",
"a c #E6E7BD",
"b c #E9E6BD",
"c c #EBE6BB",
"d c #D7E9BD",
"e c #E1E9BD",
"f c #EDE5BB",
"g c #ECE3BC",
"h c #E9E4BF",
"i c #E7E1C1",
"j c #E6E9BD",
"k c #EAE6BE",
"l c #E8E5C0",
"m c #E2E3C5",
"n c #D9DECC",
"o c #D0DAD2",
"p c #E8E2C0",
"q c #DCDECA",
"r c #D2DAD0",
"s c #CBDADD",
"t c #C5D8E3",
"u c #C0D7E8",
"v c #E4E1C4",
"w c #E0E0C8",
"x c #CEDADA",
"y c #C8DBE0",
"z c #C3D8E5",
"A c #BED5EA",
"B c #BBD5ED",
"C c #E5E2C3",
"D c #DEE1C7",
"E c #D5DDCD",
"F c #BED3EA",
"G c #E3E4C4",
"H c #D8DDCD",
"I c #CFD9D7",
"J c #BBD8ED",
"K c #BFD7E9",
"L c #C1D4E7",
"M c #C7D1E1",
"N c #CCD1DC",
"O c #D3D0D8",
"P c #D0DAD5",
"Q c #C1D6E7",
"R c #C9D9E1",
"S c #CED9DC",
"T c #D4D4D6",
"U c #D9D1CF",
"V c #DECCCA",
"W c #E4C7C4",
"X c #E7C1C1",
"Y c #C0D3E8",
"Z c #C4D2E4",
"` c #C7D4E1",
" . c #CCD7DC",
".. c #D1D7D7",
"+. c #D9D4D1",
"@. c #E1C9C7",
"#. c #E7C4C1",
"$. c #E9BFBF",
"%. c #EABEBE",
"&. c #EAC1BE",
"*. c #E5C3C3",
"=. c #C5D0E3",
"-. c #C8CDE0",
";. c #D0CEDA",
">. c #D7CFD7",
",. c #DACED0",
"'. c #E5C6C3",
"). c #E9C2BF",
"!. c #EDBEBB",
"~. c #EBBDBB",
"{. c #E8C0C0",
"]. c #E3C5C5",
"^. c #DACECE",
"/. c #D0D8D3",
"(. c #DFC7CC",
"_. c #E3C3C8",
":. c #E5C3C6",
"<. c #ECBCBC",
"[. c #E0C8C8",
"}. c #D6D3D0",
"|. c #CBDDD8",
"1. c #C5E3E0",
"2. c #C0E8E2",
"3. c #EDBBBB",
"4. c #DDCBC9",
"5. c #D8D1CE",
"6. c #C8E0DB",
"7. c #BEEAE6",
"8. c #BBEDE7",
". . . . . . . . . . . . . . . . . . . . ",
". . . . . . . . . . . . . . . . . . . . ",
". . + + + + + @ # $ % & * = - ; > , . . ",
". . + @ ' ) ! % ~ = ; > , { ] ] ] ] . . ",
". . ^ % & / ( ; , { ] ] ] _ _ : : < . . ",
". . [ - } { { ] ] _ | 1 < 2 3 4 5 6 . . ",
". . , { ] _ _ | 7 8 9 5 6 0 a b c c . . ",
". . ] _ : < 3 d 6 e a b c f f g h i . . ",
". . : < 9 6 j b c f f f f k l m n o . . ",
". . d 6 j c f f f k k p m q r s t u . . ",
". . b c f g k p v w n r x y z A B B . . ",
". . g h C D E o x y t u A B B B A F . . ",
". . G H I y z u A A B J K K L M N O . . ",
". . P t A A B B K K Q R S T U V W X . . ",
". . z A F Y Z ` ...+.V @.#.$.%.&.*.. . ",
". . =.-.;.>.,.V W '.).%.!.~.{.].^./.. . ",
". . (._.:.{.&.%.<.~.%.%.{.[.}.|.1.2.. . ",
". . %.<.3.3.3.{.'.[.4.5.* 6.2.7.8.8.. . ",
". . . . . . . . . . . . . . . . . . . . ",
". . . . . . . . . . . . . . . . . . . . "};

0 comments on commit 1753d4a

Please sign in to comment.