Adjust hot and control (softer) colors

Fix #16353, close #16354
This commit is contained in:
ozone10 2025-04-01 22:14:09 +02:00 committed by Don Ho
parent 9122f45bdf
commit 15b92c69d7

View File

@ -178,131 +178,126 @@ namespace NppDarkMode
// black (default) // black (default)
static const Colors darkColors{ static const Colors darkColors{
HEXRGB(0x202020), // background HEXRGB(0x202020), // background
HEXRGB(0x404040), // softerBackground HEXRGB(0x383838), // softerBackground
HEXRGB(0x404040), // hotBackground HEXRGB(0x454545), // hotBackground
HEXRGB(0x202020), // pureBackground HEXRGB(0x202020), // pureBackground
HEXRGB(0xB00000), // errorBackground HEXRGB(0xB00000), // errorBackground
HEXRGB(0xE0E0E0), // textColor HEXRGB(0xE0E0E0), // textColor
HEXRGB(0xC0C0C0), // darkerTextColor HEXRGB(0xC0C0C0), // darkerTextColor
HEXRGB(0x808080), // disabledTextColor HEXRGB(0x808080), // disabledTextColor
HEXRGB(0xFFFF00), // linkTextColor HEXRGB(0xFFFF00), // linkTextColor
HEXRGB(0x646464), // edgeColor HEXRGB(0x646464), // edgeColor
HEXRGB(0x9B9B9B), // hotEdgeColor HEXRGB(0x9B9B9B), // hotEdgeColor
HEXRGB(0x484848) // disabledEdgeColor HEXRGB(0x484848) // disabledEdgeColor
}; };
constexpr int offsetEdge = HEXRGB(0x1C1C1C);
// red tone // red tone
constexpr int offsetRed = HEXRGB(0x100000);
static const Colors darkRedColors{ static const Colors darkRedColors{
HEXRGB(0x302020), // background darkColors.background + offsetRed,
HEXRGB(0x504040), // softerBackground darkColors.softerBackground + offsetRed,
HEXRGB(0x504040), // hotBackground darkColors.hotBackground + offsetRed,
HEXRGB(0x302020), // pureBackground darkColors.pureBackground + offsetRed,
HEXRGB(0xC00000), // errorBackground darkColors.errorBackground,
HEXRGB(0xE0E0E0), // textColor darkColors.text,
HEXRGB(0xC0C0C0), // darkerTextColor darkColors.darkerText,
HEXRGB(0x808080), // disabledTextColor darkColors.disabledText,
HEXRGB(0xFFFF00), // linkTextColor darkColors.linkText,
HEXRGB(0x908080), // edgeColor darkColors.edge + offsetEdge + offsetRed,
HEXRGB(0xBBABAB), // hotEdgeColor darkColors.hotEdge + offsetRed,
HEXRGB(0x584848) // disabledEdgeColor darkColors.disabledEdge + offsetRed
}; };
// green tone // green tone
constexpr int offsetGreen = HEXRGB(0x001000);
static const Colors darkGreenColors{ static const Colors darkGreenColors{
HEXRGB(0x203020), // background darkColors.background + offsetGreen,
HEXRGB(0x405040), // softerBackground darkColors.softerBackground + offsetGreen,
HEXRGB(0x405040), // hotBackground darkColors.hotBackground + offsetGreen,
HEXRGB(0x203020), // pureBackground darkColors.pureBackground + offsetGreen,
HEXRGB(0xB01000), // errorBackground darkColors.errorBackground,
HEXRGB(0xE0E0E0), // textColor darkColors.text,
HEXRGB(0xC0C0C0), // darkerTextColor darkColors.darkerText,
HEXRGB(0x808080), // disabledTextColor darkColors.disabledText,
HEXRGB(0xFFFF00), // linkTextColor darkColors.linkText,
HEXRGB(0x809080), // edgeColor darkColors.edge + offsetEdge + offsetGreen,
HEXRGB(0xABBBAB), // hotEdgeColor darkColors.hotEdge + offsetGreen,
HEXRGB(0x485848) // disabledEdgeColor darkColors.disabledEdge + offsetGreen
}; };
// blue tone // blue tone
constexpr int offsetBlue = HEXRGB(0x000020);
static const Colors darkBlueColors{ static const Colors darkBlueColors{
HEXRGB(0x202040), // background darkColors.background + offsetBlue,
HEXRGB(0x404060), // softerBackground darkColors.softerBackground + offsetBlue,
HEXRGB(0x404060), // hotBackground darkColors.hotBackground + offsetBlue,
HEXRGB(0x202040), // pureBackground darkColors.pureBackground + offsetBlue,
HEXRGB(0xB00020), // errorBackground darkColors.errorBackground,
HEXRGB(0xE0E0E0), // textColor darkColors.text,
HEXRGB(0xC0C0C0), // darkerTextColor darkColors.darkerText,
HEXRGB(0x808080), // disabledTextColor darkColors.disabledText,
HEXRGB(0xFFFF00), // linkTextColor darkColors.linkText,
HEXRGB(0x8080A0), // edgeColor darkColors.edge + offsetEdge + offsetBlue,
HEXRGB(0xABABCB), // hotEdgeColor darkColors.hotEdge + offsetBlue,
HEXRGB(0x484868) // disabledEdgeColor darkColors.disabledEdge + offsetBlue
}; };
// purple tone // purple tone
constexpr int offsetPurple = HEXRGB(0x100020);
static const Colors darkPurpleColors{ static const Colors darkPurpleColors{
HEXRGB(0x302040), // background darkColors.background + offsetPurple,
HEXRGB(0x504060), // softerBackground darkColors.softerBackground + offsetPurple,
HEXRGB(0x504060), // hotBackground darkColors.hotBackground + offsetPurple,
HEXRGB(0x302040), // pureBackground darkColors.pureBackground + offsetPurple,
HEXRGB(0xC00020), // errorBackground darkColors.errorBackground,
HEXRGB(0xE0E0E0), // textColor darkColors.text,
HEXRGB(0xC0C0C0), // darkerTextColor darkColors.darkerText,
HEXRGB(0x808080), // disabledTextColor darkColors.disabledText,
HEXRGB(0xFFFF00), // linkTextColor darkColors.linkText,
HEXRGB(0x9080A0), // edgeColor darkColors.edge + offsetEdge + offsetPurple,
HEXRGB(0xBBABCB), // hotEdgeColor darkColors.hotEdge + offsetPurple,
HEXRGB(0x584868) // disabledEdgeColor darkColors.disabledEdge + offsetPurple
}; };
// cyan tone // cyan tone
constexpr int offsetCyan = HEXRGB(0x001020);
static const Colors darkCyanColors{ static const Colors darkCyanColors{
HEXRGB(0x203040), // background darkColors.background + offsetCyan,
HEXRGB(0x405060), // softerBackground darkColors.softerBackground + offsetCyan,
HEXRGB(0x405060), // hotBackground darkColors.hotBackground + offsetCyan,
HEXRGB(0x203040), // pureBackground darkColors.pureBackground + offsetCyan,
HEXRGB(0xB01020), // errorBackground darkColors.errorBackground,
HEXRGB(0xE0E0E0), // textColor darkColors.text,
HEXRGB(0xC0C0C0), // darkerTextColor darkColors.darkerText,
HEXRGB(0x808080), // disabledTextColor darkColors.disabledText,
HEXRGB(0xFFFF00), // linkTextColor darkColors.linkText,
HEXRGB(0x8090A0), // edgeColor darkColors.edge + offsetEdge + offsetCyan,
HEXRGB(0xBBBBCB), // hotEdgeColor darkColors.hotEdge + offsetCyan,
HEXRGB(0x485868) // disabledEdgeColor darkColors.disabledEdge + offsetCyan
}; };
// olive tone // olive tone
constexpr int offsetOlive = HEXRGB(0x101000);
static const Colors darkOliveColors{ static const Colors darkOliveColors{
HEXRGB(0x303020), // background darkColors.background + offsetOlive,
HEXRGB(0x505040), // softerBackground darkColors.softerBackground + offsetOlive,
HEXRGB(0x505040), // hotBackground darkColors.hotBackground + offsetOlive,
HEXRGB(0x303020), // pureBackground darkColors.pureBackground + offsetOlive,
HEXRGB(0xC01000), // errorBackground darkColors.errorBackground,
HEXRGB(0xE0E0E0), // textColor darkColors.text,
HEXRGB(0xC0C0C0), // darkerTextColor darkColors.darkerText,
HEXRGB(0x808080), // disabledTextColor darkColors.disabledText,
HEXRGB(0xFFFF00), // linkTextColor darkColors.linkText,
HEXRGB(0x909080), // edgeColor darkColors.edge + offsetEdge + offsetOlive,
HEXRGB(0xBBBBAB), // hotEdgeColor darkColors.hotEdge + offsetOlive,
HEXRGB(0x585848) // disabledEdgeColor darkColors.disabledEdge + offsetOlive
}; };
// customized // customized
Colors darkCustomizedColors{ Colors darkCustomizedColors{ darkColors };
HEXRGB(0x202020), // background
HEXRGB(0x404040), // softerBackground
HEXRGB(0x404040), // hotBackground
HEXRGB(0x202020), // pureBackground
HEXRGB(0xB00000), // errorBackground
HEXRGB(0xE0E0E0), // textColor
HEXRGB(0xC0C0C0), // darkerTextColor
HEXRGB(0x808080), // disabledTextColor
HEXRGB(0xFFFF00), // linkTextColor
HEXRGB(0x646464), // edgeColor
HEXRGB(0x9B9B9B), // hotEdgeColor
HEXRGB(0x484848) // disabledEdgeColor
};
ColorTone g_colorToneChoice = blackTone; ColorTone g_colorToneChoice = blackTone;