Ticket #2028: fixed memory leak in mc_search__hex_translate_to_regex() function.
[kaloumi3.git] / lib / skin / hc-skins.c
blob17ebfefb7d51c1eea2c5fad5f7f25da3d9d44d5c
1 /*
2 Skins engine.
3 Set of hardcoded skins
5 Copyright (C) 2009 The Free Software Foundation, Inc.
7 Written by:
8 Slava Zanko <slavazanko@gmail.com>, 2009.
10 This file is part of the Midnight Commander.
12 The Midnight Commander is free software; you can redistribute it
13 and/or modify it under the terms of the GNU General Public License as
14 published by the Free Software Foundation; either version 2 of the
15 License, or (at your option) any later version.
17 The Midnight Commander is distributed in the hope that it will be
18 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
19 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
25 MA 02110-1301, USA.
28 #include <config.h>
30 #include "internal.h"
33 /*** global variables ****************************************************************************/
35 /*** file scope macro definitions ****************************************************************/
37 #define set_lines(x,y) mc_config_set_string(mc_skin->config, "Lines", x, y)
39 /*** file scope type declarations ****************************************************************/
41 /*** file scope variables ************************************************************************/
43 /*** file scope functions ************************************************************************/
44 /* --------------------------------------------------------------------------------------------- */
46 /* --------------------------------------------------------------------------------------------- */
47 /*** public functions ****************************************************************************/
48 /* --------------------------------------------------------------------------------------------- */
50 void
51 mc_skin_hardcoded_blackwhite_colors (mc_skin_t * mc_skin)
53 mc_config_set_string (mc_skin->config, "core", "_default_", "default;default");
54 mc_config_set_string (mc_skin->config, "core", "selected", "A_REVERSE");
55 mc_config_set_string (mc_skin->config, "core", "marked", "A_BOLD");
56 mc_config_set_string (mc_skin->config, "core", "markselect", "A_BOLD_REVERSE");
57 mc_config_set_string (mc_skin->config, "core", "reverse", "A_REVERSE");
58 mc_config_set_string (mc_skin->config, "dialog", "_default_", "A_REVERSE");
59 mc_config_set_string (mc_skin->config, "dialog", "dfocus", "A_BOLD");
60 mc_config_set_string (mc_skin->config, "dialog", "dhotnormal", "A_UNDERLINE");
61 mc_config_set_string (mc_skin->config, "dialog", "dhotfocus", "A_UNDERLINE");
62 mc_config_set_string (mc_skin->config, "error", "_default_", "A_BOLD");
63 mc_config_set_string (mc_skin->config, "menu", "_default_", "A_REVERSE");
64 mc_config_set_string (mc_skin->config, "menu", "menuhot", "A_BOLD");
65 mc_config_set_string (mc_skin->config, "menu", "menusel", "default");
66 mc_config_set_string (mc_skin->config, "menu", "menuhotsel", "A_UNDERLINE");
67 mc_config_set_string (mc_skin->config, "help", "_default_", "A_REVERSE");
68 mc_config_set_string (mc_skin->config, "help", "helpitalic", "A_REVERSE");
69 mc_config_set_string (mc_skin->config, "help", "helpbold", "A_REVERSE");
70 mc_config_set_string (mc_skin->config, "help", "helpslink", "A_BOLD");
71 mc_config_set_string (mc_skin->config, "viewer", "viewunderline", "A_UNDERLINE");
72 mc_config_set_string (mc_skin->config, "editor", "editbold", "A_BOLD");
73 mc_config_set_string (mc_skin->config, "editor", "editmarked", "A_REVERSE");
74 mc_config_set_string (mc_skin->config, "buttonbar", "hotkey", "default");
75 mc_config_set_string (mc_skin->config, "buttonbar", "button", "A_REVERSE");
78 /* --------------------------------------------------------------------------------------------- */
80 void
81 mc_skin_hardcoded_space_lines (mc_skin_t * mc_skin)
83 set_lines ("lefttop", " ");
84 set_lines ("righttop", " ");
85 set_lines ("centertop", " ");
86 set_lines ("centerbottom", " ");
87 set_lines ("leftbottom", " ");
88 set_lines ("rightbottom", " ");
89 set_lines ("leftmiddle", " ");
90 set_lines ("rightmiddle", " ");
91 set_lines ("centermiddle", " ");
92 set_lines ("horiz", " ");
93 set_lines ("vert", " ");
94 set_lines ("thinhoriz", " ");
95 set_lines ("thinvert", " ");
98 /* --------------------------------------------------------------------------------------------- */
100 void
101 mc_skin_hardcoded_ugly_lines (mc_skin_t * mc_skin)
103 set_lines ("lefttop", "+");
104 set_lines ("righttop", "+");
105 set_lines ("centertop", "-");
106 set_lines ("centerbottom", "-");
107 set_lines ("leftbottom", "+");
108 set_lines ("rightbottom", "+");
109 set_lines ("leftmiddle", "|");
110 set_lines ("rightmiddle", "|");
111 set_lines ("centermiddle", "+");
112 set_lines ("horiz", "-");
113 set_lines ("vert", "|");
114 set_lines ("thinhoriz", "-");
115 set_lines ("thinvert", "|");
118 /* --------------------------------------------------------------------------------------------- */