我需要在 KDE Konsole 中使用 GNOME 终端颜色。
我不确定从哪里可以从 GNOME 终端获取最新的调色板,但我想这可能有效: https: //gitlab.gnome.org/GNOME/gnome-terminal/-/blame/master /src/terminal-profile-editor.cc?ref_type=heads#L198
static const GdkRGBA terminal_palettes[TERMINAL_PALETTE_N_BUILTINS][PALETTE_SIZE] =
{
/* Based on GNOME 3.32 palette: https://developer.gnome.org/hig/stable/icon-design.html.en#palette */
{
COLOR (0x1e, 0x1e, 0x1e), /* Suggested background for contrast */
COLOR (0xc0, 0x1c, 0x28), /* Red 4 */
COLOR (0x26, 0xa2, 0x69), /* Green 5 */
COLOR (0xa2, 0x73, 0x4c), /* Blend of Brown 2 and Brown 3 */
COLOR (0x12, 0x48, 0x8b), /* Blend of Blue 5 and Dark 4 */
COLOR (0xa3, 0x47, 0xba), /* Purple 3 */
COLOR (0x2a, 0xa1, 0xb3), /* Linear addition Blue 5 + Green 5, darkened slightly */
COLOR (0xff, 0xff, 0xff), /* Light 1 */
COLOR (0x5e, 0x5c, 0x64), /* Dark 2 */
COLOR (0xf6, 0x61, 0x51), /* Red 1 */
COLOR (0x33, 0xd1, 0x7a), /* Green 3 */
COLOR (0xe9, 0xad, 0x0c), /* Blend of Yellow 4 and Yellow 5 */
COLOR (0x2a, 0x7b, 0xde), /* Blend of Blue 3 and Blue 4 */
COLOR (0xc0, 0x61, 0xcb), /* Purple 2 */
COLOR (0x33, 0xc7, 0xde), /* Linear addition Blue 4 + Green 4, darkened slightly */
COLOR (0xd0, 0xcf, 0xcc) /* Blend of Light 3 and Light 4 */
},
— 总共 16 种颜色。
现在我需要将它们变成 KDE Konsole 调色板,但我不明白上面的颜色如何与 Konsole 配色方案编辑器中显示的颜色相对应:
各位有什么想法吗?