1
1

Trinvial refactoring: changed order of color definitions.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Этот коммит содержится в:
Andrew Borodin 2009-09-19 18:31:22 +04:00 коммит произвёл Slava Zanko
родитель e46e414f2a
Коммит d2e6ca7b6e
3 изменённых файлов: 22 добавлений и 26 удалений

Просмотреть файл

@ -52,34 +52,34 @@ typedef struct mc_skin_colors_old_struct {
mc_skin_colors_old_t old_colors[] = { mc_skin_colors_old_t old_colors[] = {
{"normal", "core", "_default_"}, {"normal", "core", "_default_"},
{"selected", "core", "selected"},
{"marked", "core", "marked"}, {"marked", "core", "marked"},
{"selected", "core", "selected"},
{"markselect", "core", "markselect"}, {"markselect", "core", "markselect"},
{"errors", "error", "_default_"},
{"menu", "menu", "_default_"},
{"reverse", "core", "reverse"}, {"reverse", "core", "reverse"},
{"dnormal", "dialog", "_default_"}, {"dnormal", "dialog", "_default_"},
{"dfocus", "dialog", "dfocus"}, {"dfocus", "dialog", "dfocus"},
{"dhotnormal", "dialog", "dhotnormal"}, {"dhotnormal", "dialog", "dhotnormal"},
{"dhotfocus", "dialog", "dhotfocus"}, {"dhotfocus", "dialog", "dhotfocus"},
{"viewunderline", "viewer", "viewunderline"}, {"errors", "error", "_default_"},
{"errdhotnormal", "error", "errdhotnormal"},
{"errdhotfocus", "error", "errdhotfocus"},
{"menu", "menu", "_default_"},
{"menuhot", "menu", "menuhot"}, {"menuhot", "menu", "menuhot"},
{"menusel", "menu", "menusel"}, {"menusel", "menu", "menusel"},
{"menuhotsel", "menu", "menuhotsel"}, {"menuhotsel", "menu", "menuhotsel"},
{"gauge", "core", "gauge"},
{"input", "core", "input"},
{"helpnormal", "help", "_default_"}, {"helpnormal", "help", "_default_"},
{"helpitalic", "help", "helpitalic"}, {"helpitalic", "help", "helpitalic"},
{"helpbold", "help", "helpbold"}, {"helpbold", "help", "helpbold"},
{"helplink", "help", "helplink"}, {"helplink", "help", "helplink"},
{"helpslink", "help", "helpslink"}, {"helpslink", "help", "helpslink"},
{"gauge", "core", "gauge"}, {"viewunderline", "viewer", "viewunderline"},
{"input", "core", "input"},
{"editnormal", "editor", "_default_"}, {"editnormal", "editor", "_default_"},
{"editbold", "editor", "editbold"}, {"editbold", "editor", "editbold"},
{"editmarked", "editor", "editmarked"}, {"editmarked", "editor", "editmarked"},
{"editwhitespace", "editor", "editwhitespace"}, {"editwhitespace", "editor", "editwhitespace"},
{"editlinestate", "editor", "linestate"}, {"editlinestate", "editor", "linestate"},
{"errdhotnormal", "error", "errdhotnormal"},
{"errdhotfocus", "error", "errdhotfocus"},
{NULL, NULL, NULL} {NULL, NULL, NULL}
}; };

Просмотреть файл

@ -195,40 +195,39 @@ mc_skin_color_cache_init (void)
NORMAL_COLOR = mc_skin_color_get ("core", "_default_"); NORMAL_COLOR = mc_skin_color_get ("core", "_default_");
MARKED_COLOR = mc_skin_color_get ("core", "marked"); MARKED_COLOR = mc_skin_color_get ("core", "marked");
SELECTED_COLOR = mc_skin_color_get ("core", "selected"); SELECTED_COLOR = mc_skin_color_get ("core", "selected");
REVERSE_COLOR = mc_skin_color_get ("core", "reverse");
MARKED_SELECTED_COLOR = mc_skin_color_get ("core", "markselect"); MARKED_SELECTED_COLOR = mc_skin_color_get ("core", "markselect");
ERROR_COLOR = mc_skin_color_get ("error", "_default_"); REVERSE_COLOR = mc_skin_color_get ("core", "reverse");
MENU_ENTRY_COLOR = mc_skin_color_get ("menu", "_default_");
COLOR_NORMAL = mc_skin_color_get ("dialog", "_default_"); COLOR_NORMAL = mc_skin_color_get ("dialog", "_default_");
COLOR_FOCUS = mc_skin_color_get ("dialog", "dfocus"); COLOR_FOCUS = mc_skin_color_get ("dialog", "dfocus");
COLOR_HOT_NORMAL = mc_skin_color_get ("dialog", "dhotnormal"); COLOR_HOT_NORMAL = mc_skin_color_get ("dialog", "dhotnormal");
COLOR_HOT_FOCUS = mc_skin_color_get ("dialog", "dhotfocus"); COLOR_HOT_FOCUS = mc_skin_color_get ("dialog", "dhotfocus");
VIEW_UNDERLINED_COLOR = mc_skin_color_get ("viewer", "viewunderline"); ERROR_COLOR = mc_skin_color_get ("error", "_default_");
ERROR_HOT_NORMAL = mc_skin_color_get ("error", "errdhotnormal");
ERROR_HOT_FOCUS = mc_skin_color_get ("error", "errdhotfocus");
MENU_ENTRY_COLOR = mc_skin_color_get ("menu", "_default_");
MENU_SELECTED_COLOR = mc_skin_color_get ("menu", "menusel"); MENU_SELECTED_COLOR = mc_skin_color_get ("menu", "menusel");
MENU_HOT_COLOR = mc_skin_color_get ("menu", "menuhot"); MENU_HOT_COLOR = mc_skin_color_get ("menu", "menuhot");
MENU_HOTSEL_COLOR = mc_skin_color_get ("menu", "menuhotsel"); MENU_HOTSEL_COLOR = mc_skin_color_get ("menu", "menuhotsel");
GAUGE_COLOR = mc_skin_color_get ("core", "gauge");
INPUT_COLOR = mc_skin_color_get ("core", "input");
HELP_NORMAL_COLOR = mc_skin_color_get ("help", "_default_"); HELP_NORMAL_COLOR = mc_skin_color_get ("help", "_default_");
HELP_ITALIC_COLOR = mc_skin_color_get ("help", "helpitalic"); HELP_ITALIC_COLOR = mc_skin_color_get ("help", "helpitalic");
HELP_BOLD_COLOR = mc_skin_color_get ("help", "helpbold"); HELP_BOLD_COLOR = mc_skin_color_get ("help", "helpbold");
HELP_LINK_COLOR = mc_skin_color_get ("help", "helplink"); HELP_LINK_COLOR = mc_skin_color_get ("help", "helplink");
HELP_SLINK_COLOR = mc_skin_color_get ("help", "helpslink"); HELP_SLINK_COLOR = mc_skin_color_get ("help", "helpslink");
GAUGE_COLOR = mc_skin_color_get ("core", "gauge"); VIEW_UNDERLINED_COLOR = mc_skin_color_get ("viewer", "viewunderline");
INPUT_COLOR = mc_skin_color_get ("core", "input");
EDITOR_NORMAL_COLOR = mc_skin_color_get ("editor", "_default_"); EDITOR_NORMAL_COLOR = mc_skin_color_get ("editor", "_default_");
EDITOR_BOLD_COLOR = mc_skin_color_get ("editor", "editbold"); EDITOR_BOLD_COLOR = mc_skin_color_get ("editor", "editbold");
EDITOR_MARKED_COLOR = mc_skin_color_get ("editor", "editmarked"); EDITOR_MARKED_COLOR = mc_skin_color_get ("editor", "editmarked");
EDITOR_WHITESPACE_COLOR = mc_skin_color_get ("editor", "editwhitespace"); EDITOR_WHITESPACE_COLOR = mc_skin_color_get ("editor", "editwhitespace");
ERROR_HOT_NORMAL = mc_skin_color_get ("error", "errdhotnormal");
ERROR_HOT_FOCUS = mc_skin_color_get ("error", "errdhotfocus");
LINE_STATE_COLOR = mc_skin_color_get ("editor", "linestate"); LINE_STATE_COLOR = mc_skin_color_get ("editor", "linestate");
} }
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */
@ -236,11 +235,8 @@ mc_skin_color_cache_init (void)
static gboolean static gboolean
mc_skin_color_check_inisection (const gchar * group) mc_skin_color_check_inisection (const gchar * group)
{ {
if ((strcasecmp ("skin", group) == 0) return !((strcasecmp ("skin", group) == 0)
|| (strcasecmp ("lines", group) == 0)) || (strcasecmp ("lines", group) == 0));
return FALSE;
return TRUE;
} }
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */

Просмотреть файл

@ -61,6 +61,7 @@ mc_skin_hardcoded_blackwhite_colors (mc_skin_t * mc_skin)
mc_config_set_string (mc_skin->config, "dialog", "dfocus", "A_BOLD"); mc_config_set_string (mc_skin->config, "dialog", "dfocus", "A_BOLD");
mc_config_set_string (mc_skin->config, "dialog", "dhotnormal", "A_UNDERLINE"); mc_config_set_string (mc_skin->config, "dialog", "dhotnormal", "A_UNDERLINE");
mc_config_set_string (mc_skin->config, "dialog", "dhotfocus", "A_UNDERLINE"); mc_config_set_string (mc_skin->config, "dialog", "dhotfocus", "A_UNDERLINE");
mc_config_set_string (mc_skin->config, "error", "_default_", "A_BOLD");
mc_config_set_string (mc_skin->config, "menu", "_default_", "default"); mc_config_set_string (mc_skin->config, "menu", "_default_", "default");
mc_config_set_string (mc_skin->config, "menu", "menuhot", "A_UNDERLINE"); mc_config_set_string (mc_skin->config, "menu", "menuhot", "A_UNDERLINE");
mc_config_set_string (mc_skin->config, "menu", "menusel", "A_REVERSE"); mc_config_set_string (mc_skin->config, "menu", "menusel", "A_REVERSE");
@ -69,10 +70,9 @@ mc_skin_hardcoded_blackwhite_colors (mc_skin_t * mc_skin)
mc_config_set_string (mc_skin->config, "help", "helpitalic", "A_REVERSE"); mc_config_set_string (mc_skin->config, "help", "helpitalic", "A_REVERSE");
mc_config_set_string (mc_skin->config, "help", "helpbold", "A_REVERSE"); mc_config_set_string (mc_skin->config, "help", "helpbold", "A_REVERSE");
mc_config_set_string (mc_skin->config, "help", "helpslink", "A_BOLD"); mc_config_set_string (mc_skin->config, "help", "helpslink", "A_BOLD");
mc_config_set_string (mc_skin->config, "viewer", "viewunderline", "A_UNDERLINE");
mc_config_set_string (mc_skin->config, "editor", "editbold", "A_BOLD"); mc_config_set_string (mc_skin->config, "editor", "editbold", "A_BOLD");
mc_config_set_string (mc_skin->config, "editor", "editmarked", "A_REVERSE"); mc_config_set_string (mc_skin->config, "editor", "editmarked", "A_REVERSE");
mc_config_set_string (mc_skin->config, "viewer", "viewunderline", "A_UNDERLINE");
mc_config_set_string (mc_skin->config, "error", "_default_", "A_BOLD");
} }
/* --------------------------------------------------------------------------------------------- */ /* --------------------------------------------------------------------------------------------- */