root/lib/skin/hc-skins.c

/* [previous][next][first][last][top][bottom][index][help]  */

DEFINITIONS

This source file includes following definitions.
  1. mc_skin_hardcoded_blackwhite_colors
  2. mc_skin_hardcoded_space_lines
  3. mc_skin_hardcoded_ugly_lines

   1 /*
   2    Skins engine.
   3    Set of hardcoded skins
   4 
   5    Copyright (C) 2009-2019
   6    Free Software Foundation, Inc.
   7 
   8    Written by:
   9    Slava Zanko <slavazanko@gmail.com>, 2009
  10    Andrew Borodin <aborodin@vmail.ru>, 2012
  11 
  12    This file is part of the Midnight Commander.
  13 
  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.
  18 
  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.
  23 
  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/>.
  26  */
  27 
  28 #include <config.h>
  29 
  30 #include "internal.h"
  31 
  32 /*** global variables ****************************************************************************/
  33 
  34 /*** file scope macro definitions ****************************************************************/
  35 
  36 #define set_lines(x,y) mc_config_set_string(mc_skin->config, "Lines", x, y)
  37 
  38 /*** file scope type declarations ****************************************************************/
  39 
  40 /*** file scope variables ************************************************************************/
  41 
  42 /*** file scope functions ************************************************************************/
  43 /* --------------------------------------------------------------------------------------------- */
  44 
  45 /* --------------------------------------------------------------------------------------------- */
  46 /*** public functions ****************************************************************************/
  47 /* --------------------------------------------------------------------------------------------- */
  48 
  49 void
  50 mc_skin_hardcoded_blackwhite_colors (mc_skin_t * mc_skin)
     /* [previous][next][first][last][top][bottom][index][help]  */
  51 {
  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");
  83 }
  84 
  85 /* --------------------------------------------------------------------------------------------- */
  86 
  87 void
  88 mc_skin_hardcoded_space_lines (mc_skin_t * mc_skin)
     /* [previous][next][first][last][top][bottom][index][help]  */
  89 {
  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", " ");
 102 
 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", " ");
 113 }
 114 
 115 /* --------------------------------------------------------------------------------------------- */
 116 
 117 void
 118 mc_skin_hardcoded_ugly_lines (mc_skin_t * mc_skin)
     /* [previous][next][first][last][top][bottom][index][help]  */
 119 {
 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", "+");
 132 
 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", "|");
 144 }
 145 
 146 /* --------------------------------------------------------------------------------------------- */

/* [previous][next][first][last][top][bottom][index][help]  */