Skip to content

Commit 1c417ac

Browse files
author
Humdinger
committed
Use off-white/black
Read that using total white/black (255/0) isn't nice for text and backgrounds. Using off-white/black instead.
1 parent 07c8509 commit 1c417ac

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

DeskNoteView.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -283,14 +283,14 @@ DeskNoteView::_SetColors()
283283
float thresh
284284
= background.red + (background.green * 1.25f) + (background.blue * 0.45f);
285285
if (thresh >= 360) {
286-
foreground.red = 0;
287-
foreground.green = 0;
288-
foreground.blue = 0;
286+
foreground.red = 11;
287+
foreground.green = 11;
288+
foreground.blue = 11;
289289
widgetcolour = tint_color(background, B_DARKEN_1_TINT);
290290
} else {
291-
foreground.red = 255;
292-
foreground.green = 255;
293-
foreground.blue = 255;
291+
foreground.red = 244;
292+
foreground.green = 244;
293+
foreground.blue = 244;
294294
widgetcolour = tint_color(background, B_LIGHTEN_1_TINT);
295295
}
296296

DeskNoteView.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ const rgb_color palette[] = {
4646
{ 67, 131, 196, 255 }, // blue
4747
{ 36, 71, 106, 255 }, // dark blue
4848

49-
{ 255, 255, 255, 255 }, // white
49+
{ 244, 244, 244, 255 }, // off white
5050
{ 188, 188, 188, 255 }, // light grey
5151
{ 96, 96, 96, 255 }, // dark grey
52-
{ 0, 0, 0, 255 }, // black
52+
{ 11, 11, 11, 255 }, // off black
5353
};
5454

5555
class DeskNoteTextView;

0 commit comments

Comments
 (0)