Newer
Older
glitch-o-bolt / style.tcss
  1. /***
  2. * colorscheme: https://www.schemecolor.com/metagross-pokemon.php
  3. * Name: Police Blue Hex: #2F596D
  4. * Name: Crystal Blue Hex: #5E99AE
  5. * Name: Pastel Blue Hex: #9DC3CF
  6. * Name: Medium Carmine Hex: #B13840
  7. * Name: Ash Gray Hex: #B3B8BB
  8. * Name: Chinese Black Hex: #141618
  9. ***/
  10.  
  11. Screen {
  12. layout: vertical;
  13. background: #141618;
  14. }
  15. .top_section {
  16. height: 6;
  17. width: 100%;
  18. layout: vertical;
  19. }
  20.  
  21. .program_name {
  22. text-align: center;
  23. width: 100%;
  24. height: 1;
  25. color: #9DC3CF;
  26. }
  27.  
  28. .control_row {
  29. width: 1fr;
  30. height: 1;
  31. layout: horizontal;
  32. align: center middle;
  33. }
  34.  
  35. .control_label {
  36. width: 8;
  37. text-align: right;
  38. padding-right: 1;
  39. }
  40.  
  41. .uart_label {
  42. width: 6;
  43. text-align: right;
  44. padding-right: 1;
  45. }
  46.  
  47. .btn {
  48. width: 6;
  49. min-width: 6;
  50. height: 1;
  51. margin: 0;
  52. padding: 0;
  53. border: none;
  54. text-align: center;
  55. }
  56.  
  57. .btn-100 { width: 6; min-width: 6; }
  58. .btn-10 { width: 5; min-width: 5; }
  59. .btn-1 { width: 4; min-width: 4; }
  60.  
  61. .btn_save {
  62. width: 6;
  63. min-width: 6;
  64. height: 1;
  65. border: none;
  66. text-align: center;
  67. background: #2F596D;
  68. color: #9DC3CF;
  69. }
  70.  
  71. .btn_glitch {
  72. width: 8;
  73. min-width: 8;
  74. height: 1;
  75. border: none;
  76. text-align: center;
  77. background: #2F596D;
  78. color: #9DC3CF;
  79. margin-left: 1;
  80. }
  81.  
  82. #save_uart{ margin-left: 1; }
  83. #save_config{ margin-left: 20; }
  84.  
  85. .btn_toggle_1 {
  86. width: 5;
  87. min-width: 5;
  88. height: 1;
  89. border: none;
  90. text-align: center;
  91. background: #2F596D;
  92. color: #9DC3CF;
  93. }
  94.  
  95. .btn_settings {
  96. /*width: 5;*/
  97. min-width: 5;
  98. height: 1;
  99. border: none;
  100. text-align: center;
  101. background: #2F596D;
  102. color: #9DC3CF;
  103. }
  104.  
  105. .switch_box {
  106. height: 6; /* Reduce the height of the container for better alignment */
  107. width: 12; /* Add a width to the box */
  108. padding: 0; /* Add padding for the switch itself */
  109. border: round #2F596D;
  110. text-align: center;
  111. border-title-color: #2F596D;
  112. border-title-style: bold
  113. }
  114.  
  115. .uart_box {
  116. height: 3; /* Reduce the height of the container for better alignment */
  117. width: 27; /* Add a width to the box */
  118. padding: 0; /* Add padding for the switch itself */
  119. border-top: round #2F596D;
  120. border-right: round #2F596D;
  121. border-title-color: #9DC3CF;
  122. text-align: center;
  123. border-title-color: #2F596D;
  124. border-title-style: bold;
  125. }
  126.  
  127. .config_box {
  128. height: 3; /* Reduce the height of the container for better alignment */
  129. width: 27; /* Add a width to the box */
  130. padding: 0; /* Add padding for the switch itself */
  131. border-top: round #2F596D;
  132. border-right: round #2F596D;
  133. text-align: center;
  134. border-title-color: #2F596D;
  135. border-title-style: bold;
  136. }
  137.  
  138.  
  139. .switch_title {
  140. width: 100%;
  141. color: #9DC3CF;
  142. padding-bottom: 0; /* Add some spacing below the title */
  143. text-align: center;
  144. }
  145.  
  146. .switch {
  147. background: #5E99AE;
  148. text-align: center;
  149. border: none;
  150. }
  151.  
  152. #custom-switch > .switch--slider {
  153. color: #B13840;
  154. background: #141618;
  155. }
  156.  
  157. #custom-switch.-on > .switch--slider {
  158. color: #5E99AE;
  159. }
  160. #glitch-switch > .switch--slider {
  161. color: #B13840;
  162. background: #141618;
  163. }
  164.  
  165. #glitch-switch.-on > .switch--slider {
  166. color: #5E99AE;
  167. }
  168.  
  169. .control_input {
  170. width: 12;
  171. height: 1;
  172. border: none;
  173. text-align: center;
  174. }
  175.  
  176. #baud_rate_input{ width: 13; }
  177.  
  178. #uart_port_input{ width: 20; }
  179. #config_file_input{ width: 20; }
  180. .onerow {
  181. height: 1;
  182. }
  183.  
  184. .top_text {
  185. width: 1fr;
  186. }
  187.  
  188. .top_right {
  189. width: 37;
  190. height: 6;
  191. dock: right;
  192. color: #9DC3CF;
  193. border: none;
  194. }
  195.  
  196. .top_left {
  197. width: 30;
  198. height: 6;
  199. dock: left;
  200. color: #9DC3CF;
  201. border: none;
  202. padding: 0;
  203. }
  204. .top_box {
  205. width: 24;
  206. height: 6;
  207. dock: right;
  208. color: #9DC3CF;
  209. border: double #2F596D;
  210. border-title-color: #2F596D;
  211. border-title-style: bold
  212. }
  213. .main_section {
  214. layout: horizontal;
  215. width: 100vw;
  216. height: 1fr;
  217. /* border: solid; */
  218. }
  219. .left_sidebar {
  220. width: 16;
  221. layout: vertical;
  222. }
  223.  
  224. .sidebar_triggers_content{
  225. height: 9;
  226. border-top: round #2F596D;
  227. border-right: round #2F596D;
  228. border-title-color: #2F596D;
  229. border-title-style: bold
  230. }
  231.  
  232. .sidebar_conditions_content{
  233. /*height: auto;*/
  234. border-top: round #2F596D;
  235. border-right: round #2F596D;
  236. border-title-color: #2F596D;
  237. border-title-style: bold
  238. }
  239.  
  240. .sidebar_settings_content{
  241. height: 1fr;
  242. border-top: round #2F596D;
  243. border-right: round #2F596D;
  244. border-title-color: #2F596D;
  245. border-title-style: bold
  246. }
  247. .sidebar_triggers {
  248. height: 9;
  249. color: #9DC3CF;
  250. border: none;
  251. layout: grid;
  252. grid-size: 4 8;
  253. grid-columns: 3 3 4 6;
  254. }
  255. .sidebar_trigger_string{
  256. margin-left: 1;
  257. }
  258.  
  259. .sidebar_conditions {
  260. color: #9DC3CF;
  261. border: none;
  262. layout: grid;
  263. grid-size: 3;
  264. grid-columns: 6 4 6;
  265. grid-rows: 1;
  266. }
  267.  
  268. .sidebar_settings_switches{
  269. color: #9DC3CF;
  270. height: 2;
  271. border: none;
  272. layout: grid;
  273. grid-size: 2;
  274. grid-columns: 12 4;
  275. grid-rows: 1;
  276. /*border: solid;*/
  277. }
  278.  
  279. .centre_settings_buttons {
  280. align: center top;
  281. text-align: center;
  282. content-align: center middle;
  283. layout: vertical;
  284. width: 100%;
  285. height: 2;
  286. padding-top: 1;
  287. }
  288.  
  289. .sidebar_trigger_switch{
  290. padding:0;
  291. border:none;
  292. width:3;
  293. }
  294.  
  295. .sidebar_trigger_switch > .switch--slider {
  296. color: #B13840;
  297. background: #141618;
  298. }
  299.  
  300. .sidebar_trigger_switch.-on > .switch--slider {
  301. color: #5E99AE;
  302. }
  303.  
  304. .main_content {
  305. width: 1fr;
  306. border-top: round #2F596D;
  307. border-title-color: #5E99AE;
  308. border-title-align: left;
  309. border-title-style: bold;
  310. layout: vertical;
  311. /*border: solid red;*/
  312. }
  313. .scrollable_log {
  314. height: 1fr;
  315. max-width: 100vw;
  316. overflow-y: scroll;
  317. background: #141618;
  318. color: #B3B8BB;
  319. padding: 0;
  320. overflow-x: auto;
  321. scrollbar-color-active: #5E99AE;
  322. scrollbar-color-hover: #5E99AE;
  323. scrollbar-color: #2F596D;
  324. /*border: solid #888;*/
  325. }
  326. .input_container {
  327. width: 100%;
  328. height: 1;
  329. layout: horizontal;
  330. }
  331.  
  332. .input_prompt {
  333. width: 2;
  334. text-align: right;
  335. background: #141618;
  336. color: #9DC3CF;
  337. }
  338.  
  339. .input_area {
  340. height: 1;
  341. width: 1fr;
  342. border: none;
  343. background: #141618;
  344. color: #9DC3CF;
  345. }
Buy Me A Coffee