2009-09-08 19:07:51 +04:00
|
|
|
/*
|
|
|
|
Skins engine.
|
|
|
|
Set of hardcoded skins
|
|
|
|
|
2024-01-01 09:46:17 +03:00
|
|
|
Copyright (C) 2009-2024
|
2014-02-12 10:33:10 +04:00
|
|
|
Free Software Foundation, Inc.
|
2009-09-08 19:07:51 +04:00
|
|
|
|
|
|
|
Written by:
|
2011-10-28 13:57:00 +04:00
|
|
|
Slava Zanko <slavazanko@gmail.com>, 2009
|
|
|
|
Andrew Borodin <aborodin@vmail.ru>, 2012
|
2009-09-08 19:07:51 +04:00
|
|
|
|
|
|
|
This file is part of the Midnight Commander.
|
|
|
|
|
2011-10-15 14:56:47 +04:00
|
|
|
The Midnight Commander is free software: you can redistribute it
|
2009-09-08 19:07:51 +04:00
|
|
|
and/or modify it under the terms of the GNU General Public License as
|
2011-10-15 14:56:47 +04:00
|
|
|
published by the Free Software Foundation, either version 3 of the License,
|
|
|
|
or (at your option) any later version.
|
2009-09-08 19:07:51 +04:00
|
|
|
|
2011-10-15 14:56:47 +04:00
|
|
|
The Midnight Commander is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
2009-09-08 19:07:51 +04:00
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
2011-10-15 14:56:47 +04:00
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2009-09-08 19:07:51 +04:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#include "internal.h"
|
|
|
|
|
|
|
|
/*** global variables ****************************************************************************/
|
|
|
|
|
|
|
|
/*** file scope macro definitions ****************************************************************/
|
|
|
|
|
|
|
|
#define set_lines(x,y) mc_config_set_string(mc_skin->config, "Lines", x, y)
|
|
|
|
|
|
|
|
/*** file scope type declarations ****************************************************************/
|
|
|
|
|
|
|
|
/*** file scope variables ************************************************************************/
|
|
|
|
|
|
|
|
/*** file scope functions ************************************************************************/
|
|
|
|
/* --------------------------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------- */
|
|
|
|
/*** public functions ****************************************************************************/
|
|
|
|
/* --------------------------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
void
|
2024-06-01 21:12:14 +03:00
|
|
|
mc_skin_hardcoded_blackwhite_colors (mc_skin_t *mc_skin)
|
2009-09-08 19:07:51 +04:00
|
|
|
{
|
2009-09-14 17:43:03 +04:00
|
|
|
mc_config_set_string (mc_skin->config, "core", "_default_", "default;default");
|
|
|
|
mc_config_set_string (mc_skin->config, "core", "selected", "A_REVERSE");
|
|
|
|
mc_config_set_string (mc_skin->config, "core", "marked", "A_BOLD");
|
|
|
|
mc_config_set_string (mc_skin->config, "core", "markselect", "A_BOLD_REVERSE");
|
2010-06-29 13:42:39 +04:00
|
|
|
mc_config_set_string (mc_skin->config, "core", "disabled", "default");
|
2009-09-14 17:43:03 +04:00
|
|
|
mc_config_set_string (mc_skin->config, "core", "reverse", "A_REVERSE");
|
|
|
|
mc_config_set_string (mc_skin->config, "dialog", "_default_", "A_REVERSE");
|
2009-09-19 17:54:57 +04:00
|
|
|
mc_config_set_string (mc_skin->config, "dialog", "dfocus", "A_BOLD");
|
2009-09-19 18:23:21 +04:00
|
|
|
mc_config_set_string (mc_skin->config, "dialog", "dhotnormal", "A_UNDERLINE");
|
|
|
|
mc_config_set_string (mc_skin->config, "dialog", "dhotfocus", "A_UNDERLINE");
|
2009-09-19 18:31:22 +04:00
|
|
|
mc_config_set_string (mc_skin->config, "error", "_default_", "A_BOLD");
|
2010-01-26 23:07:11 +03:00
|
|
|
mc_config_set_string (mc_skin->config, "menu", "_default_", "A_REVERSE");
|
|
|
|
mc_config_set_string (mc_skin->config, "menu", "menuhot", "A_BOLD");
|
|
|
|
mc_config_set_string (mc_skin->config, "menu", "menusel", "default");
|
2009-09-19 18:02:27 +04:00
|
|
|
mc_config_set_string (mc_skin->config, "menu", "menuhotsel", "A_UNDERLINE");
|
2010-02-23 14:13:23 +03:00
|
|
|
mc_config_set_string (mc_skin->config, "menu", "menuinactive", "A_REVERSE");
|
2010-11-29 21:46:11 +03:00
|
|
|
mc_config_set_string (mc_skin->config, "popupmenu", "_default_", "A_REVERSE");
|
|
|
|
mc_config_set_string (mc_skin->config, "popupmenu", "menusel", "default");
|
|
|
|
mc_config_set_string (mc_skin->config, "popupmenu", "menutitle", "A_REVERSE");
|
2010-11-11 14:05:34 +03:00
|
|
|
mc_config_set_string (mc_skin->config, "statusbar", "_default_", "A_REVERSE");
|
2009-09-14 17:43:03 +04:00
|
|
|
mc_config_set_string (mc_skin->config, "help", "_default_", "A_REVERSE");
|
2009-09-19 17:54:57 +04:00
|
|
|
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", "helpslink", "A_BOLD");
|
2009-09-19 18:31:22 +04:00
|
|
|
mc_config_set_string (mc_skin->config, "viewer", "viewunderline", "A_UNDERLINE");
|
2009-09-19 17:54:57 +04:00
|
|
|
mc_config_set_string (mc_skin->config, "editor", "editbold", "A_BOLD");
|
|
|
|
mc_config_set_string (mc_skin->config, "editor", "editmarked", "A_REVERSE");
|
2011-10-28 13:57:00 +04:00
|
|
|
mc_config_set_string (mc_skin->config, "editor", "editframeactive", "A_BOLD");
|
|
|
|
mc_config_set_string (mc_skin->config, "editor", "editframedrag", "A_REVERSE");
|
2010-01-26 23:07:11 +03:00
|
|
|
mc_config_set_string (mc_skin->config, "buttonbar", "hotkey", "default");
|
|
|
|
mc_config_set_string (mc_skin->config, "buttonbar", "button", "A_REVERSE");
|
2009-09-08 19:07:51 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
void
|
2024-06-01 21:12:14 +03:00
|
|
|
mc_skin_hardcoded_space_lines (mc_skin_t *mc_skin)
|
2009-09-08 19:07:51 +04:00
|
|
|
{
|
2010-03-21 20:50:20 +03:00
|
|
|
/* single lines */
|
|
|
|
set_lines ("vert", " ");
|
|
|
|
set_lines ("horiz", " ");
|
2009-09-14 17:43:03 +04:00
|
|
|
set_lines ("lefttop", " ");
|
|
|
|
set_lines ("righttop", " ");
|
|
|
|
set_lines ("leftbottom", " ");
|
|
|
|
set_lines ("rightbottom", " ");
|
2010-03-21 20:50:20 +03:00
|
|
|
set_lines ("topmiddle", " ");
|
|
|
|
set_lines ("bottommiddle", " ");
|
2009-09-14 17:43:03 +04:00
|
|
|
set_lines ("leftmiddle", " ");
|
|
|
|
set_lines ("rightmiddle", " ");
|
2010-03-21 20:50:20 +03:00
|
|
|
set_lines ("cross", " ");
|
|
|
|
|
|
|
|
set_lines ("dvert", " ");
|
|
|
|
set_lines ("dhoriz", " ");
|
|
|
|
set_lines ("dlefttop", " ");
|
|
|
|
set_lines ("drighttop", " ");
|
|
|
|
set_lines ("dleftbottom", " ");
|
|
|
|
set_lines ("drightbottom", " ");
|
|
|
|
set_lines ("dtopmiddle", " ");
|
|
|
|
set_lines ("dbottommiddle", " ");
|
|
|
|
set_lines ("dleftmiddle", " ");
|
|
|
|
set_lines ("drightmiddle", " ");
|
2009-09-08 19:07:51 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------- */
|
|
|
|
|
|
|
|
void
|
2024-06-01 21:12:14 +03:00
|
|
|
mc_skin_hardcoded_ugly_lines (mc_skin_t *mc_skin)
|
2009-09-08 19:07:51 +04:00
|
|
|
{
|
2010-03-21 20:50:20 +03:00
|
|
|
/* single lines */
|
|
|
|
set_lines ("vert", "|");
|
|
|
|
set_lines ("horiz", "-");
|
2009-09-14 17:43:03 +04:00
|
|
|
set_lines ("lefttop", "+");
|
|
|
|
set_lines ("righttop", "+");
|
|
|
|
set_lines ("leftbottom", "+");
|
|
|
|
set_lines ("rightbottom", "+");
|
2010-03-21 20:50:20 +03:00
|
|
|
set_lines ("topmiddle", "-");
|
|
|
|
set_lines ("bottommiddle", "-");
|
2009-09-14 17:43:03 +04:00
|
|
|
set_lines ("leftmiddle", "|");
|
|
|
|
set_lines ("rightmiddle", "|");
|
2010-03-21 20:50:20 +03:00
|
|
|
set_lines ("cross", "+");
|
|
|
|
|
|
|
|
/* double lines */
|
|
|
|
set_lines ("dvert", "|");
|
|
|
|
set_lines ("dhoriz", "-");
|
|
|
|
set_lines ("dlefttop", "+");
|
|
|
|
set_lines ("drighttop", "+");
|
|
|
|
set_lines ("dleftbottom", "+");
|
|
|
|
set_lines ("drightbottom", "+");
|
|
|
|
set_lines ("dtopmiddle", "-");
|
|
|
|
set_lines ("dbottommiddle", "-");
|
|
|
|
set_lines ("dleftmiddle", "|");
|
|
|
|
set_lines ("drightmiddle", "|");
|
2009-09-08 19:07:51 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
/* --------------------------------------------------------------------------------------------- */
|