fixed relative symlink operations. Symlink now stay relative
[midnight-commander.git] / lib / skin / hc-skins.c
blobb289c94c4b1f446be71e013e5e33d13a1265bf42
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"
32 /*** global variables ****************************************************************************/
34 /*** file scope macro definitions ****************************************************************/
36 #define set_lines(x,y) mc_config_set_string(mc_skin->config, "Lines", x, y)
38 /*** file scope type declarations ****************************************************************/
40 /*** file scope variables ************************************************************************/
42 /*** file scope functions ************************************************************************/
43 /* --------------------------------------------------------------------------------------------- */
45 /* --------------------------------------------------------------------------------------------- */
46 /*** public functions ****************************************************************************/
47 /* --------------------------------------------------------------------------------------------- */
49 void
50 mc_skin_hardcoded_blackwhite_colors (mc_skin_t * mc_skin)
52 mc_config_set_string (mc_skin->config, "core", "_default_", "default;default");
53 mc_config_set_string (mc_skin->config, "core", "selected", "A_REVERSE");
54 mc_config_set_string (mc_skin->config, "core", "marked", "A_BOLD");
55 mc_config_set_string (mc_skin->config, "core", "markselect", "A_BOLD_REVERSE");
56 mc_config_set_string (mc_skin->config, "core", "disabled", "default");
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, "menu", "menuinactive", "A_REVERSE");
68 mc_config_set_string (mc_skin->config, "popupmenu", "_default_", "A_REVERSE");
69 mc_config_set_string (mc_skin->config, "popupmenu", "menusel", "default");
70 mc_config_set_string (mc_skin->config, "popupmenu", "menutitle", "A_REVERSE");
71 mc_config_set_string (mc_skin->config, "statusbar", "_default_", "A_REVERSE");
72 mc_config_set_string (mc_skin->config, "help", "_default_", "A_REVERSE");
73 mc_config_set_string (mc_skin->config, "help", "helpitalic", "A_REVERSE");
74 mc_config_set_string (mc_skin->config, "help", "helpbold", "A_REVERSE");
75 mc_config_set_string (mc_skin->config, "help", "helpslink", "A_BOLD");
76 mc_config_set_string (mc_skin->config, "viewer", "viewunderline", "A_UNDERLINE");
77 mc_config_set_string (mc_skin->config, "editor", "editbold", "A_BOLD");
78 mc_config_set_string (mc_skin->config, "editor", "editmarked", "A_REVERSE");
79 mc_config_set_string (mc_skin->config, "buttonbar", "hotkey", "default");
80 mc_config_set_string (mc_skin->config, "buttonbar", "button", "A_REVERSE");
83 /* --------------------------------------------------------------------------------------------- */
85 void
86 mc_skin_hardcoded_space_lines (mc_skin_t * mc_skin)
88 /* single lines */
89 set_lines ("vert", " ");
90 set_lines ("horiz", " ");
91 set_lines ("lefttop", " ");
92 set_lines ("righttop", " ");
93 set_lines ("leftbottom", " ");
94 set_lines ("rightbottom", " ");
95 set_lines ("topmiddle", " ");
96 set_lines ("bottommiddle", " ");
97 set_lines ("leftmiddle", " ");
98 set_lines ("rightmiddle", " ");
99 set_lines ("cross", " ");
101 set_lines ("dvert", " ");
102 set_lines ("dhoriz", " ");
103 set_lines ("dlefttop", " ");
104 set_lines ("drighttop", " ");
105 set_lines ("dleftbottom", " ");
106 set_lines ("drightbottom", " ");
107 set_lines ("dtopmiddle", " ");
108 set_lines ("dbottommiddle", " ");
109 set_lines ("dleftmiddle", " ");
110 set_lines ("drightmiddle", " ");
113 /* --------------------------------------------------------------------------------------------- */
115 void
116 mc_skin_hardcoded_ugly_lines (mc_skin_t * mc_skin)
118 /* single lines */
119 set_lines ("vert", "|");
120 set_lines ("horiz", "-");
121 set_lines ("lefttop", "+");
122 set_lines ("righttop", "+");
123 set_lines ("leftbottom", "+");
124 set_lines ("rightbottom", "+");
125 set_lines ("topmiddle", "-");
126 set_lines ("bottommiddle", "-");
127 set_lines ("leftmiddle", "|");
128 set_lines ("rightmiddle", "|");
129 set_lines ("cross", "+");
131 /* double lines */
132 set_lines ("dvert", "|");
133 set_lines ("dhoriz", "-");
134 set_lines ("dlefttop", "+");
135 set_lines ("drighttop", "+");
136 set_lines ("dleftbottom", "+");
137 set_lines ("drightbottom", "+");
138 set_lines ("dtopmiddle", "-");
139 set_lines ("dbottommiddle", "-");
140 set_lines ("dleftmiddle", "|");
141 set_lines ("drightmiddle", "|");
144 /* --------------------------------------------------------------------------------------------- */