Skip to content

Commit

Permalink
bundling selected theme files with the package (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
mintty committed Nov 9, 2017
1 parent 72a6535 commit b15d57a
Show file tree
Hide file tree
Showing 12 changed files with 229 additions and 16 deletions.
5 changes: 5 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,8 @@ The program icon is the apps/utilities-terminal icon from KDE's Oxygen theme,
retrieved from http://websvn.kde.org/trunk/KDE/kdebase/runtime/pics/oxygen.
Thanks to the KDE artists for their sleek design. The Oxygen icons are licensed
under the terms of the LGPLv3; see LICENSE.Oxygen for details.

The colour schemes / theme files bundled with mintty are included
under various licenses. The source and license or permission are
quoted in the respective theme files.

1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ arch_files += src/Makefile src/*.c src/*.h src/*.rc src/*.mft
arch_files += src/[!_]*.t src/mk*
arch_files += tools/mintheme
arch_files += lang/*.pot lang/*.po
arch_files += themes/*[!~]
arch_files += cygwin/*.cygport cygwin/README* cygwin/setup.hint
arch_files += docs/*.1 docs/*.html icon/*
arch_files += wiki/*
Expand Down
2 changes: 2 additions & 0 deletions cygwin/mintty.cygport
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ src_install() {

insinto /usr/share/mintty/lang
doins lang/*.pot lang/*.po
insinto /usr/share/mintty/themes
doins themes/*

for i in 16 24 32 48 64 256
do
Expand Down
32 changes: 16 additions & 16 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,22 +168,22 @@ const config default_cfg = {
.use_system_colours = false,
.ime_cursor_colour = DEFAULT_COLOUR,
.ansi_colours = {
[BLACK_I] = 0x000000,
[RED_I] = 0x0000BF,
[GREEN_I] = 0x00BF00,
[YELLOW_I] = 0x00BFBF,
[BLUE_I] = 0xBF0000,
[MAGENTA_I] = 0xBF00BF,
[CYAN_I] = 0xBFBF00,
[WHITE_I] = 0xBFBFBF,
[BOLD_BLACK_I] = 0x404040,
[BOLD_RED_I] = 0x4040FF,
[BOLD_GREEN_I] = 0x40FF40,
[BOLD_YELLOW_I] = 0x40FFFF,
[BOLD_BLUE_I] = 0xFF6060,
[BOLD_MAGENTA_I] = 0xFF40FF,
[BOLD_CYAN_I] = 0xFFFF40,
[BOLD_WHITE_I] = 0xFFFFFF,
[BLACK_I] = RGB(0x00, 0x00, 0x00),
[RED_I] = RGB(0xBF, 0x00, 0x00),
[GREEN_I] = RGB(0x00, 0xBF, 0x00),
[YELLOW_I] = RGB(0xBF, 0xBF, 0x00),
[BLUE_I] = RGB(0x00, 0x00, 0xBF),
[MAGENTA_I] = RGB(0xBF, 0x00, 0xBF),
[CYAN_I] = RGB(0x00, 0xBF, 0xBF),
[WHITE_I] = RGB(0xBF, 0xBF, 0xBF),
[BOLD_BLACK_I] = RGB(0x40, 0x40, 0x40),
[BOLD_RED_I] = RGB(0xFF, 0x40, 0x40),
[BOLD_GREEN_I] = RGB(0x40, 0xFF, 0x40),
[BOLD_YELLOW_I] = RGB(0xFF, 0xFF, 0x40),
[BOLD_BLUE_I] = RGB(0x60, 0x60, 0xFF),
[BOLD_MAGENTA_I] = RGB(0xFF, 0x40, 0xFF),
[BOLD_CYAN_I] = RGB(0x40, 0xFF, 0xFF),
[BOLD_WHITE_I] = RGB(0xFF, 0xFF, 0xFF)
},
.sixel_clip_char = W(" ")
};
Expand Down
21 changes: 21 additions & 0 deletions themes/dracula
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# source: https://github.com/dracula/mintty
# MIT License

ForegroundColour=248,248,242
BackgroundColour=40,42,54
Black=0,0,0
BoldBlack=40,42,53
Red=255,85,85
BoldRed=255,110,103
Green=80,250,123
BoldGreen=90,247,142
Yellow=241,250,140
BoldYellow=244,249,157
Blue=202,169,250
BoldBlue=202,169,250
Magenta=255,121,198
BoldMagenta=255,146,208
Cyan=139,233,253
BoldCyan=154,237,254
White=191,191,191
BoldWhite=230,230,230
22 changes: 22 additions & 0 deletions themes/flat-ui
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# source: https://github.com/geekjuice/flat-ui-mintty/
# MIT License

ForegroundColour= 236, 240, 241
BackgroundColour= 24, 24, 24
CursorColour= 211, 84, 0
BoldBlack= 52, 73, 94
Black= 44, 62, 80
BoldRed= 231, 76, 60
Red= 192, 57, 43
BoldGreen= 46, 204, 113
Green= 39, 174, 96
BoldYellow= 241, 196, 15
Yellow= 243, 156, 18
BoldBlue= 52, 152, 219
Blue= 41, 128, 185
BoldMagenta= 155, 89, 182
Magenta= 142, 68, 173
BoldCyan= 26, 188, 156
Cyan= 122, 160, 133
BoldWhite= 236, 240, 241
White= 189, 195, 199
35 changes: 35 additions & 0 deletions themes/html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# https://en.wikipedia.org/wiki/Web_colors#HTML_color_names

# Black #000000 (black)
Black = #000000
# Maroon #800000 (low red)
Red = #800000
# Green #008000 (low green)
Green = #008000
# Olive #808000 (brown)
Yellow = #808000
# Navy #000080 (low blue)
Blue = #000080
# Purple #800080 (low magenta)
Magenta = #800080
# Teal #008080 (low cyan)
Cyan = #008080
# Silver #C0C0C0 (light gray)
White = #C0C0C0

# Gray #808080 (dark gray)
BoldBlack = #808080
# Red #FF0000 (high red)
BoldRed = #FF0000
# Lime #00FF00 (high green); green
BoldGreen = #00FF00
# Yellow #FFFF00 (yellow)
BoldYellow = #FFFF00
# Blue #0000FF (high blue)
BoldBlue = #0000FF
# Fuchsia #FF00FF (high magenta); magenta
BoldMagenta = #FF00FF
# Aqua #00FFFF (high cyan); cyan
BoldCyan = #00FFFF
# White #FFFFFF (white)
BoldWhite = #FFFFFF
18 changes: 18 additions & 0 deletions themes/mintty
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# config.c

Black = #000000
Red = #BF0000
Green = #00BF00
Yellow = #BFBF00
Blue = #0000BF
Magenta = #BF00BF
Cyan = #00BFBF
White = #BFBFBF
BoldBlack = #404040
BoldRed = #FF4040
BoldGreen = #40FF40
BoldYellow = #FFFF40
BoldBlue = #6060FF
BoldMagenta = #FF40FF
BoldCyan = #40FFFF
BoldWhite = #FFFFFF
22 changes: 22 additions & 0 deletions themes/nord
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# source: https://github.com/arcticicestudio/nord-mintty
# Apache License

BackgroundColour=46,52,64
ForegroundColour=216,222,233
CursorColour=216,222,233
Black=59,66,82
BoldBlack=76,86,106
Red=191,97,106
BoldRed=191,97,106
Green=163,190,140
BoldGreen=163,190,140
Yellow=235,203,139
BoldYellow=235,203,139
Blue=129,161,193
BoldBlue=129,161,193
Magenta=180,142,173
BoldMagenta=180,142,173
Cyan=136,192,208
BoldCyan=143,188,187
White=229,233,240
BoldWhite=236,239,244
23 changes: 23 additions & 0 deletions themes/rosipov
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# source: http://www.rosipov.com/blog/mintty-color-scheme-cygwin/
# permission: https://github.com/ruslanosipov/ruslanosipov.github.io/issues/1

ForegroundColour = 131, 148, 150
BackgroundColour = 0, 0, 0
CursorColour = 220, 50, 47

Black = 7, 54, 66
BoldBlack = 0, 43, 54
Red = 220, 50, 47
BoldRed = 203, 75, 22
Green = 0, 200, 132
BoldGreen = 0, 200, 132
Yellow = 204, 204, 102
BoldYellow = 204, 204, 102
Blue = 102, 153, 204
BoldBlue = 102, 153, 204
Magenta = 211, 54, 130
BoldMagenta = 108, 113, 196
Cyan = 42, 161, 152
BoldCyan = 147, 161, 161
White = 238, 232, 213
BoldWhite = 253, 246, 227
29 changes: 29 additions & 0 deletions themes/vga
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# https://en.wikipedia.org/wiki/Video_Graphics_Array#Color_palette

Black = #000000
Blue = #0000aa
Green = #00aa00
Cyan = #00aaaa
Red = #aa0000
Magenta = #aa00aa
# brown:
Yellow = #aa5500
# gray:
White = #aaaaaa

# dark gray:
BoldBlack = #555555
# bright blue:
BoldBlue = #5555ff
# bright green:
BoldGreen = #55ff55
# bright cyan:
BoldCyan = #55ffff
# bright red:
BoldRed = #ff5555
# bright magenta:
BoldMagenta = #ff55ff
# yellow:
BoldYellow = #ffff55
# white:
BoldWhite = #ffffff
35 changes: 35 additions & 0 deletions themes/xterm
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# XTerm-col.ad, /usr/share/X11/rgb.txt

#*VT100*color0: black
Black = 0,0,0
#*VT100*color1: red3
Red = 205,0,0
#*VT100*color2: green3
Green = 0,205,0
#*VT100*color3: yellow3
Yellow = 205,205,0
#*VT100*color4: blue2
Blue = 0,0,238
#*VT100*color5: magenta3
Magenta = 205,0,205
#*VT100*color6: cyan3
Cyan = 0,205,205
#*VT100*color7: gray90
White = 229,229,229

#*VT100*color8: gray50
BoldBlack = 127,127,127
#*VT100*color9: red
BoldRed = 255,0,0
#*VT100*color10: green
BoldGreen = 0,255,0
#*VT100*color11: yellow
BoldYellow = 255,255,0
#*VT100*color12: rgb:5c/5c/ff
BoldBlue = rgb:5c/5c/ff
#*VT100*color13: magenta
BoldMagenta = 255,0,255
#*VT100*color14: cyan
BoldCyan = 0,255,255
#*VT100*color15: white
BoldWhite = 255,255,255

0 comments on commit b15d57a

Please sign in to comment.