monsta 2017-12-15 12:26:49 +03:00
parent 926ec59919
commit 019042e65f
5 changed files with 39 additions and 3 deletions

View File

@ -77,4 +77,6 @@ N_("XTerm")
/* Translators: This is the name of a colour scheme */ /* Translators: This is the name of a colour scheme */
N_("Rxvt") N_("Rxvt")
/* Translators: This is the name of a colour scheme */ /* Translators: This is the name of a colour scheme */
N_("Solarized")
/* Translators: This is the name of a colour scheme */
N_("Custom") N_("Custom")

View File

@ -64,7 +64,17 @@ static const TerminalColorScheme color_schemes[] =
N_("White on black"), N_("White on black"),
{ 1, 1, 1, 1 }, { 1, 1, 1, 1 },
{ 0, 0, 0, 1 } { 0, 0, 0, 1 }
} },
/* Translators: "Solarized" is the name of a colour scheme, "light" can be translated */
{ N_("Solarized light"),
{ 0.396078, 0.482352, 0.513725, 1 },
{ 0.992156, 0.964705, 0.890196, 1 }
},
/* Translators: "Solarized" is the name of a colour scheme, "dark" can be translated */
{ N_("Solarized dark"),
{ 0.513725, 0.580392, 0.588235, 1 },
{ 0, 0.168627, 0.211764, 1 }
},
}; };
static void profile_forgotten_cb (TerminalProfile *profile, static void profile_forgotten_cb (TerminalProfile *profile,

View File

@ -139,6 +139,9 @@ Author: Wolfgang Ulbrich
<row> <row>
<col id="0" translatable="yes">Rxvt</col> <col id="0" translatable="yes">Rxvt</col>
</row> </row>
<row>
<col id="0" translatable="yes">Solarized</col>
</row>
<row> <row>
<col id="0" translatable="yes">Custom</col> <col id="0" translatable="yes">Custom</col>
</row> </row>

View File

@ -266,7 +266,27 @@ static const GdkRGBA terminal_palettes[TERMINAL_PALETTE_N_BUILTINS][TERMINAL_PAL
{ 1, 0, 1, 1 }, { 1, 0, 1, 1 },
{ 0, 1, 1, 1 }, { 0, 1, 1, 1 },
{ 1, 1, 1, 1 }, { 1, 1, 1, 1 },
} },
/* Solarized palette (1.0.0beta2): http://ethanschoonover.com/solarized */
{
{ 0.02745, 0.211764, 0.258823, 1 },
{ 0.862745, 0.196078, 0.184313, 1 },
{ 0.521568, 0.6, 0, 1 },
{ 0.709803, 0.537254, 0, 1 },
{ 0.149019, 0.545098, 0.823529, 1 },
{ 0.82745, 0.211764, 0.509803, 1 },
{ 0.164705, 0.631372, 0.596078, 1 },
{ 0.933333, 0.909803, 0.835294, 1 },
{ 0, 0.168627, 0.211764, 1 },
{ 0.796078, 0.294117, 0.086274, 1 },
{ 0.345098, 0.431372, 0.458823, 1 },
{ 0.396078, 0.482352, 0.513725, 1 },
{ 0.513725, 0.580392, 0.588235, 1 },
{ 0.423529, 0.443137, 0.768627, 1 },
{ 0.57647, 0.631372, 0.631372, 1 },
{ 0.992156, 0.964705, 0.890196, 1 },
},
}; };
enum enum

View File

@ -62,7 +62,8 @@ typedef enum
#define TERMINAL_PALETTE_LINUX 1 #define TERMINAL_PALETTE_LINUX 1
#define TERMINAL_PALETTE_XTERM 2 #define TERMINAL_PALETTE_XTERM 2
#define TERMINAL_PALETTE_RXVT 3 #define TERMINAL_PALETTE_RXVT 3
#define TERMINAL_PALETTE_N_BUILTINS 4 #define TERMINAL_PALETTE_SOLARIZED 4
#define TERMINAL_PALETTE_N_BUILTINS 5
/* Property names */ /* Property names */
#define TERMINAL_PROFILE_ALLOW_BOLD "allow-bold" #define TERMINAL_PROFILE_ALLOW_BOLD "allow-bold"