hc-skins.c 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /*
  2. Skins engine.
  3. Set of hardcoded skins
  4. Copyright (C) 2009, 2011
  5. The Free Software Foundation, Inc.
  6. Written by:
  7. Slava Zanko <slavazanko@gmail.com>, 2009.
  8. This file is part of the Midnight Commander.
  9. The Midnight Commander is free software: you can redistribute it
  10. and/or modify it under the terms of the GNU General Public License as
  11. published by the Free Software Foundation, either version 3 of the License,
  12. or (at your option) any later version.
  13. The Midnight Commander is distributed in the hope that it will be useful,
  14. but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. GNU General Public License for more details.
  17. You should have received a copy of the GNU General Public License
  18. along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. */
  20. #include <config.h>
  21. #include "internal.h"
  22. /*** global variables ****************************************************************************/
  23. /*** file scope macro definitions ****************************************************************/
  24. #define set_lines(x,y) mc_config_set_string(mc_skin->config, "Lines", x, y)
  25. /*** file scope type declarations ****************************************************************/
  26. /*** file scope variables ************************************************************************/
  27. /*** file scope functions ************************************************************************/
  28. /* --------------------------------------------------------------------------------------------- */
  29. /* --------------------------------------------------------------------------------------------- */
  30. /*** public functions ****************************************************************************/
  31. /* --------------------------------------------------------------------------------------------- */
  32. void
  33. mc_skin_hardcoded_blackwhite_colors (mc_skin_t * mc_skin)
  34. {
  35. mc_config_set_string (mc_skin->config, "core", "_default_", "default;default");
  36. mc_config_set_string (mc_skin->config, "core", "selected", "A_REVERSE");
  37. mc_config_set_string (mc_skin->config, "core", "marked", "A_BOLD");
  38. mc_config_set_string (mc_skin->config, "core", "markselect", "A_BOLD_REVERSE");
  39. mc_config_set_string (mc_skin->config, "core", "disabled", "default");
  40. mc_config_set_string (mc_skin->config, "core", "reverse", "A_REVERSE");
  41. mc_config_set_string (mc_skin->config, "dialog", "_default_", "A_REVERSE");
  42. mc_config_set_string (mc_skin->config, "dialog", "dfocus", "A_BOLD");
  43. mc_config_set_string (mc_skin->config, "dialog", "dhotnormal", "A_UNDERLINE");
  44. mc_config_set_string (mc_skin->config, "dialog", "dhotfocus", "A_UNDERLINE");
  45. mc_config_set_string (mc_skin->config, "error", "_default_", "A_BOLD");
  46. mc_config_set_string (mc_skin->config, "menu", "_default_", "A_REVERSE");
  47. mc_config_set_string (mc_skin->config, "menu", "menuhot", "A_BOLD");
  48. mc_config_set_string (mc_skin->config, "menu", "menusel", "default");
  49. mc_config_set_string (mc_skin->config, "menu", "menuhotsel", "A_UNDERLINE");
  50. mc_config_set_string (mc_skin->config, "menu", "menuinactive", "A_REVERSE");
  51. mc_config_set_string (mc_skin->config, "popupmenu", "_default_", "A_REVERSE");
  52. mc_config_set_string (mc_skin->config, "popupmenu", "menusel", "default");
  53. mc_config_set_string (mc_skin->config, "popupmenu", "menutitle", "A_REVERSE");
  54. mc_config_set_string (mc_skin->config, "statusbar", "_default_", "A_REVERSE");
  55. mc_config_set_string (mc_skin->config, "help", "_default_", "A_REVERSE");
  56. mc_config_set_string (mc_skin->config, "help", "helpitalic", "A_REVERSE");
  57. mc_config_set_string (mc_skin->config, "help", "helpbold", "A_REVERSE");
  58. mc_config_set_string (mc_skin->config, "help", "helpslink", "A_BOLD");
  59. mc_config_set_string (mc_skin->config, "viewer", "viewunderline", "A_UNDERLINE");
  60. mc_config_set_string (mc_skin->config, "editor", "editbold", "A_BOLD");
  61. mc_config_set_string (mc_skin->config, "editor", "editmarked", "A_REVERSE");
  62. mc_config_set_string (mc_skin->config, "buttonbar", "hotkey", "default");
  63. mc_config_set_string (mc_skin->config, "buttonbar", "button", "A_REVERSE");
  64. }
  65. /* --------------------------------------------------------------------------------------------- */
  66. void
  67. mc_skin_hardcoded_space_lines (mc_skin_t * mc_skin)
  68. {
  69. /* single lines */
  70. set_lines ("vert", " ");
  71. set_lines ("horiz", " ");
  72. set_lines ("lefttop", " ");
  73. set_lines ("righttop", " ");
  74. set_lines ("leftbottom", " ");
  75. set_lines ("rightbottom", " ");
  76. set_lines ("topmiddle", " ");
  77. set_lines ("bottommiddle", " ");
  78. set_lines ("leftmiddle", " ");
  79. set_lines ("rightmiddle", " ");
  80. set_lines ("cross", " ");
  81. set_lines ("dvert", " ");
  82. set_lines ("dhoriz", " ");
  83. set_lines ("dlefttop", " ");
  84. set_lines ("drighttop", " ");
  85. set_lines ("dleftbottom", " ");
  86. set_lines ("drightbottom", " ");
  87. set_lines ("dtopmiddle", " ");
  88. set_lines ("dbottommiddle", " ");
  89. set_lines ("dleftmiddle", " ");
  90. set_lines ("drightmiddle", " ");
  91. }
  92. /* --------------------------------------------------------------------------------------------- */
  93. void
  94. mc_skin_hardcoded_ugly_lines (mc_skin_t * mc_skin)
  95. {
  96. /* single lines */
  97. set_lines ("vert", "|");
  98. set_lines ("horiz", "-");
  99. set_lines ("lefttop", "+");
  100. set_lines ("righttop", "+");
  101. set_lines ("leftbottom", "+");
  102. set_lines ("rightbottom", "+");
  103. set_lines ("topmiddle", "-");
  104. set_lines ("bottommiddle", "-");
  105. set_lines ("leftmiddle", "|");
  106. set_lines ("rightmiddle", "|");
  107. set_lines ("cross", "+");
  108. /* double lines */
  109. set_lines ("dvert", "|");
  110. set_lines ("dhoriz", "-");
  111. set_lines ("dlefttop", "+");
  112. set_lines ("drighttop", "+");
  113. set_lines ("dleftbottom", "+");
  114. set_lines ("drightbottom", "+");
  115. set_lines ("dtopmiddle", "-");
  116. set_lines ("dbottommiddle", "-");
  117. set_lines ("dleftmiddle", "|");
  118. set_lines ("drightmiddle", "|");
  119. }
  120. /* --------------------------------------------------------------------------------------------- */