Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve legibility of blue and grey on light backgrounds #1156

Merged
merged 1 commit into from Apr 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/config.c
@@ -1,5 +1,5 @@
// config.c (part of mintty)
// Copyright 2008-22 Andy Koppe, 2015-2022 Thomas Wolff
// Copyright 2008-2022 Andy Koppe, 2015-2022 Thomas Wolff
// Based on code from PuTTY-0.60 by Simon Tatham and team.
// Licensed under the terms of the GNU General Public License v3 or later.

Expand Down Expand Up @@ -269,18 +269,18 @@ const config default_cfg = {
[BOLD_WHITE_I] = RGB(0xFF, 0xFF, 0xFF)
#else // theme "helmholtz"
[BLACK_I] = { RGB( 0, 0, 0), RGB( 0, 0, 0) },
[RED_I] = { RGB(212, 44, 58), RGB(167, 35, 46) },
[GREEN_I] = { RGB( 28, 168, 0), RGB( 22, 132, 0) },
[RED_I] = { RGB(212, 44, 58), RGB(162, 30, 41) },
[GREEN_I] = { RGB( 28, 168, 0), RGB( 28, 168, 0) },
[YELLOW_I] = { RGB(192, 160, 0), RGB(192, 160, 0) },
[BLUE_I] = { RGB( 30, 123, 216), RGB( 0, 45, 180) },
[MAGENTA_I] = { RGB(177, 72, 198), RGB(138, 58, 154) },
[CYAN_I] = { RGB( 0, 168, 154), RGB( 0, 132, 121) },
[BLUE_I] = { RGB( 0, 93, 255), RGB( 0, 32, 192) },
[MAGENTA_I] = { RGB(177, 72, 198), RGB(134, 54, 150) },
[CYAN_I] = { RGB( 0, 168, 154), RGB( 0, 168, 154) },
[WHITE_I] = { RGB(191, 191, 191), RGB(191, 191, 191) },
[BOLD_BLACK_I] = { RGB(127, 127, 127), RGB( 85, 85, 85) },
[BOLD_BLACK_I] = { RGB( 96, 96, 96), RGB( 72, 72, 72) },
[BOLD_RED_I] = { RGB(255, 118, 118), RGB(255, 118, 118) },
[BOLD_GREEN_I] = { RGB( 0, 242, 0), RGB( 0, 242, 0) },
[BOLD_YELLOW_I] = { RGB(242, 242, 0), RGB(242, 242, 0) },
[BOLD_BLUE_I] = { RGB(125, 177, 255), RGB(125, 177, 255) },
[BOLD_BLUE_I] = { RGB(125, 151, 255), RGB(125, 151, 255) },
[BOLD_MAGENTA_I] = { RGB(255, 112, 255), RGB(255, 112, 255) },
[BOLD_CYAN_I] = { RGB( 0, 240, 240), RGB( 0, 240, 240) },
[BOLD_WHITE_I] = { RGB(255, 255, 255), RGB(255, 255, 255) }
Expand Down
24 changes: 14 additions & 10 deletions themes/helmholtz
@@ -1,9 +1,13 @@
# "helmholtz" colour theme for mintty
#
# Copyright (C) 2022 Andy Koppe.
# Licensed under the terms of the MIT License.
#
# The aim of this theme is to provide vibrant colours where the normal and bold
# levels each have approximately equal brightness. Additionally, the normal
# colours apart from yellow have darker variants for use as background colours,
# to help legibility of light text on them.
# levels each have approximately equal brightness, with the exception of blue,
# which is somewhat darker than the others to aid its legibility on light
# backgrounds. Additionally, blue, red, magenta and grey have darker variants
# for use as background colours to help legibility of light text on them.
#
# To level the colours, their luminance was calculated as follows:
# - Gamma-expand the sRGB components by dividing each by 255 and applying the
Expand All @@ -28,19 +32,19 @@
# Of course, that is a highly subjective process ...

Black=0,0,0
Red=212,44,58;167,35,46
Green=28,168,0;22,132,0
Red=212,44,58;162,30,41
Green=28,168,0
Yellow=192,160,0
Blue=30,123,216;0,45,180
Magenta=177,72,198;138,58,154
Cyan=0,168,154;0,132,121
Blue=0,93,255;0,32,192
Magenta=177,72,198;134,54,150
Cyan=0,168,154
White=191,191,191

BoldBlack=127,127,127;85,85,85
BoldBlack=96,96,96;72,72,72
BoldRed=255,118,118
BoldGreen=0,242,0
BoldYellow=242,242,0
BoldBlue=125,177,255
BoldBlue=125,151,255
BoldMagenta=255,112,255
BoldCyan=0,240,240
BoldWhite=255,255,255
21 changes: 11 additions & 10 deletions themes/kohlrausch
@@ -1,5 +1,8 @@
# "kohlrausch" colour theme for mintty
#
# Copyright (C) 2022 Andy Koppe.
# Licensed under the terms of the MIT License.
#
# This is a variant of the "helmholtz" theme that has been designed for use
# with a dark text colour and light background, by darkening the foreground
# variants of the normal colours and brightening the background ones.
Expand Down Expand Up @@ -29,23 +32,21 @@
ForegroundColour=0,0,0
BackgroundColour=255,255,255
CursorColour=0,0,0
BoldAsColour=no
BoldAsFont=yes

Black=0,0,0
Red=167,35,46;212,44,58
Green=22,132,0;28,168,0
Yellow=150,125,0;192,160,0
Blue=0,45,180
Magenta=138,58,154;177,72,198
Cyan=0,132,121;0,168,154
Red=162,30,41;212,44,58
Green=21,126,0;28,168,0
Yellow=144,120,0;192,160,0
Blue=0,32,192;0,93,255
Magenta=134,54,150;177,72,198
Cyan=0,126,115;0,168,154
White=191,191,191

BoldBlack=64,64,64;127,127,127
BoldBlack=96,96,96;127,127,127
BoldRed=255,118,118
BoldGreen=0,242,0
BoldYellow=242,242,0
BoldBlue=125,177,255
BoldBlue=125,151,255
BoldMagenta=255,112,255
BoldCyan=0,240,240
BoldWhite=255,255,255