(blocking_factor, record_size): change type.
[midnight-commander.git] / lib / skin / hc-skins.c
blob26a20ed73edaf0bf229a9a14ce734bbb752973dc
1 /*
2 Skins engine.
3 Set of hardcoded skins
5 Copyright (C) 2009-2024
6 Free Software Foundation, Inc.
8 Written by:
9 Slava Zanko <slavazanko@gmail.com>, 2009
10 Andrew Borodin <aborodin@vmail.ru>, 2012
12 This file is part of the Midnight Commander.
14 The Midnight Commander is free software: you can redistribute it
15 and/or modify it under the terms of the GNU General Public License as
16 published by the Free Software Foundation, either version 3 of the License,
17 or (at your option) any later version.
19 The Midnight Commander is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License for more details.
24 You should have received a copy of the GNU General Public License
25 along with this program. If not, see <http://www.gnu.org/licenses/>.
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, "editor", "editframeactive", "A_BOLD");
80 mc_config_set_string (mc_skin->config, "editor", "editframedrag", "A_REVERSE");
81 mc_config_set_string (mc_skin->config, "buttonbar", "hotkey", "default");
82 mc_config_set_string (mc_skin->config, "buttonbar", "button", "A_REVERSE");
85 /* --------------------------------------------------------------------------------------------- */
87 void
88 mc_skin_hardcoded_space_lines (mc_skin_t *mc_skin)
90 /* single lines */
91 set_lines ("vert", " ");
92 set_lines ("horiz", " ");
93 set_lines ("lefttop", " ");
94 set_lines ("righttop", " ");
95 set_lines ("leftbottom", " ");
96 set_lines ("rightbottom", " ");
97 set_lines ("topmiddle", " ");
98 set_lines ("bottommiddle", " ");
99 set_lines ("leftmiddle", " ");
100 set_lines ("rightmiddle", " ");
101 set_lines ("cross", " ");
103 set_lines ("dvert", " ");
104 set_lines ("dhoriz", " ");
105 set_lines ("dlefttop", " ");
106 set_lines ("drighttop", " ");
107 set_lines ("dleftbottom", " ");
108 set_lines ("drightbottom", " ");
109 set_lines ("dtopmiddle", " ");
110 set_lines ("dbottommiddle", " ");
111 set_lines ("dleftmiddle", " ");
112 set_lines ("drightmiddle", " ");
115 /* --------------------------------------------------------------------------------------------- */
117 void
118 mc_skin_hardcoded_ugly_lines (mc_skin_t *mc_skin)
120 /* single lines */
121 set_lines ("vert", "|");
122 set_lines ("horiz", "-");
123 set_lines ("lefttop", "+");
124 set_lines ("righttop", "+");
125 set_lines ("leftbottom", "+");
126 set_lines ("rightbottom", "+");
127 set_lines ("topmiddle", "-");
128 set_lines ("bottommiddle", "-");
129 set_lines ("leftmiddle", "|");
130 set_lines ("rightmiddle", "|");
131 set_lines ("cross", "+");
133 /* double lines */
134 set_lines ("dvert", "|");
135 set_lines ("dhoriz", "-");
136 set_lines ("dlefttop", "+");
137 set_lines ("drighttop", "+");
138 set_lines ("dleftbottom", "+");
139 set_lines ("drightbottom", "+");
140 set_lines ("dtopmiddle", "-");
141 set_lines ("dbottommiddle", "-");
142 set_lines ("dleftmiddle", "|");
143 set_lines ("drightmiddle", "|");
146 /* --------------------------------------------------------------------------------------------- */