dark_theme.css 28 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001
  1. /*******************************************************************************
  2. * *
  3. * Fonts *
  4. * *
  5. ******************************************************************************/
  6. @font-face {
  7. src: url('opensans_regular.ttf');
  8. }
  9. @font-face {
  10. src: url('opensans_semibold.ttf');
  11. }
  12. @font-face {
  13. src: url('opensans_bold.ttf');
  14. }
  15. /*******************************************************************************
  16. * *
  17. * Root Styling & Colors *
  18. * *
  19. ******************************************************************************/
  20. .root {
  21. PRIMARY_D2: #2D4D2E;
  22. PRIMARY_D1: #407F41;
  23. PRIMARY: #49B04A;
  24. PRIMARY_L1: #66CC68;
  25. PRIMARY_L2: #EBF5EB;
  26. SECONDARY: #008A7B;
  27. GRAY_0: #1F2122;
  28. GRAY_1: #35393B;
  29. GRAY_2: #494E51;
  30. GRAY_3: #585E62;
  31. GRAY_4: #71797E;
  32. GRAY_5: #8E989E;
  33. GRAY_6: #9FAAB1;
  34. GRAY_7: #BEC9CF;
  35. GRAY_8: #D3DCE1;
  36. GRAY_9: #EDF3F7;
  37. GREEN_3: PRIMARY_D1;
  38. GREEN_5: PRIMARY;
  39. RED_5: #E74C3C;
  40. ORANGE_5: #E67E22;
  41. YELLOW_5: #F1C40F;
  42. MAIN_BG: GRAY_1;
  43. MUTED_BG: GRAY_3;
  44. TEXT_FILL: GRAY_9;
  45. TEXT_FILL_HIGHLIGHTED: PRIMARY;
  46. TEXT_FILL_MUTED: GRAY_5;
  47. TITLE_BG: linear-gradient(to bottom, GRAY_2, GRAY_1);
  48. TITLE_TEXT_FILL: PRIMARY;
  49. CONTROL_BORDER_NORMAL: GRAY_3;
  50. CONTROL_BORDER_FOCUSED: GRAY_5;
  51. CONTROL_BORDER_DISABLED: GRAY_2;
  52. CONTROL_BG_NORMAL: GRAY_0;
  53. CONTROL_BG_HOVER: GRAY_1;
  54. CONTROL_BG_ARMED: GRAY_2;
  55. CONTROL_BG_DISABLED: GRAY_1;
  56. CONTROL_BG_SELECTED: GRAY_1;
  57. CONTROL_PRIMARY_BORDER_NORMAL: PRIMARY;
  58. CONTROL_PRIMARY_BORDER_ARMED: PRIMARY_L1;
  59. CONTROL_PRIMARY_BORDER_FOCUSED: SECONDARY;
  60. CONTROL_PRIMARY_BG_NORMAL: PRIMARY;
  61. CONTROL_PRIMARY_BG_ARMED: PRIMARY_L1;
  62. SCROLL_BAR_THUMB_NORMAL: GRAY_3;
  63. SCROLL_BAR_THUMB_HOVER: GRAY_4;
  64. PROGRESS_INDICATOR_BEGIN: GRAY_7;
  65. PROGRESS_INDICATOR_END: GRAY_5;
  66. PROGRESS_BAR_BG: GRAY_2;
  67. -fx-background-color: MAIN_BG;
  68. -fx-text-fill: TEXT_FILL;
  69. -fx-font-family: 'Open Sans';
  70. }
  71. /*******************************************************************************
  72. * *
  73. * Labels *
  74. * *
  75. ******************************************************************************/
  76. .label {
  77. -fx-text-fill: TEXT_FILL;
  78. }
  79. .label-muted {
  80. -fx-text-fill: TEXT_FILL_MUTED;
  81. }
  82. .label-extra-large {
  83. -fx-font-family: 'Open Sans SemiBold';
  84. -fx-font-size: 1.5em;
  85. }
  86. .label-large {
  87. -fx-font-family: 'Open Sans SemiBold';
  88. -fx-font-size: 1.2em;
  89. }
  90. .label-small {
  91. -fx-font-size: 0.8em;
  92. }
  93. .label-extra-small {
  94. -fx-font-size: 0.64em;
  95. }
  96. .label-red {
  97. -fx-text-fill: RED_5;
  98. }
  99. .text-flow > * {
  100. -fx-fill: TEXT_FILL;
  101. }
  102. /*******************************************************************************
  103. * *
  104. * Glyph Icons *
  105. * *
  106. ******************************************************************************/
  107. .glyph-icon {
  108. -fx-fill: TEXT_FILL;
  109. }
  110. .glyph-icon-primary,
  111. .glyph-icon.glyph-icon-primary,
  112. .list-cell .glyph-icon.glyph-icon-primary,
  113. .list-cell:selected .glyph-icon.glyph-icon-primary {
  114. -fx-fill: PRIMARY;
  115. }
  116. .glyph-icon-muted,
  117. .glyph-icon.glyph-icon-muted,
  118. .list-cell .glyph-icon.glyph-icon-muted,
  119. .list-cell:selected .glyph-icon.glyph-icon-muted {
  120. -fx-fill: TEXT_FILL_MUTED;
  121. }
  122. .glyph-icon-white,
  123. .glyph-icon.glyph-icon-white,
  124. .list-cell .glyph-icon.glyph-icon-white,
  125. .list-cell:selected .glyph-icon.glyph-icon-white {
  126. -fx-fill: white;
  127. }
  128. .glyph-icon-red,
  129. .glyph-icon.glyph-icon-red,
  130. .list-cell .glyph-icon.glyph-icon-red,
  131. .list-cell:selected .glyph-icon.glyph-icon-red {
  132. -fx-fill: RED_5;
  133. }
  134. .glyph-icon-orange,
  135. .glyph-icon.glyph-icon-orange,
  136. .list-cell .glyph-icon.glyph-icon-orange,
  137. .list-cell:selected .glyph-icon.glyph-icon-orange {
  138. -fx-fill: ORANGE_5;
  139. }
  140. /*******************************************************************************
  141. * *
  142. * Main Window *
  143. * *
  144. ******************************************************************************/
  145. /* windows needs an explicit border: */
  146. .main-window.os-windows {
  147. -fx-border-color: TITLE_BG;
  148. -fx-border-width: 1px;
  149. }
  150. .main-window .title {
  151. -fx-background-color: CONTROL_BORDER_NORMAL, TITLE_BG;
  152. -fx-background-insets: 0, 0 0 1px 0;
  153. }
  154. .main-window .title .button {
  155. -fx-pref-height: 30px;
  156. -fx-pref-width: 30px;
  157. -fx-background-color: none;
  158. -fx-padding: 0;
  159. }
  160. .main-window .title .button .glyph-icon {
  161. -fx-fill: white;
  162. }
  163. .main-window .title .button:armed .glyph-icon {
  164. -fx-fill: GRAY_8;
  165. }
  166. .main-window .update-indicator {
  167. -fx-background-color: white, RED_5;
  168. -fx-background-insets: 1px, 2px;
  169. -fx-background-radius: 6px, 5px;
  170. -fx-effect: dropshadow(three-pass-box, rgba(0, 0, 0, 0.8), 2, 0, 0, 0);
  171. }
  172. /*******************************************************************************
  173. * *
  174. * TabPane *
  175. * *
  176. ******************************************************************************/
  177. .tab-pane {
  178. -fx-tab-min-height: 2em;
  179. }
  180. .tab-pane > .tab-header-area {
  181. -fx-padding: 0 12px;
  182. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  183. -fx-background-insets: 0, 0 0 3px 0;
  184. }
  185. .tab-pane .tab {
  186. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  187. -fx-background-insets: 0, 0 0 3px 0;
  188. -fx-padding: 6px 12px;
  189. }
  190. .tab-pane .tab:selected {
  191. -fx-background-color: PRIMARY, CONTROL_BG_SELECTED;
  192. }
  193. .tab-pane .tab .tab-label {
  194. -fx-text-fill: TEXT_FILL_MUTED;
  195. -fx-alignment: CENTER;
  196. }
  197. .tab-pane .tab .glyph-icon {
  198. -fx-fill: TEXT_FILL_MUTED;
  199. }
  200. .tab-pane .tab:selected .glyph-icon {
  201. -fx-fill: PRIMARY;
  202. }
  203. .tab-pane .tab:selected .tab-label {
  204. -fx-text-fill: TEXT_FILL_HIGHLIGHTED;
  205. }
  206. /*******************************************************************************
  207. * *
  208. * SplitPane *
  209. * *
  210. ******************************************************************************/
  211. .split-pane > .split-pane-divider {
  212. -fx-padding: 0px 1px;
  213. }
  214. .split-pane:horizontal > .split-pane-divider {
  215. -fx-background-color: MAIN_BG, CONTROL_BORDER_NORMAL;
  216. -fx-background-insets: 0, 0 1 0 0;
  217. }
  218. /*******************************************************************************
  219. * *
  220. * Vault List *
  221. * *
  222. ******************************************************************************/
  223. .list-view {
  224. -fx-background-color: CONTROL_BG_NORMAL;
  225. }
  226. .list-view:focused .list-cell:selected {
  227. -fx-background-color: PRIMARY, CONTROL_BG_SELECTED;
  228. -fx-background-insets: 0, 0 0 0 3px;
  229. }
  230. .list-cell:selected {
  231. -fx-background-color: CONTROL_BG_SELECTED;
  232. }
  233. .list-cell .glyph-icon {
  234. -fx-fill: TEXT_FILL_MUTED;
  235. }
  236. .list-cell .header-label {
  237. -fx-font-family: 'Open Sans SemiBold';
  238. -fx-font-size: 1.0em;
  239. }
  240. .list-cell .detail-label {
  241. -fx-text-fill: TEXT_FILL_MUTED;
  242. -fx-font-size: 0.8em;
  243. }
  244. .list-cell:selected .glyph-icon {
  245. -fx-fill: PRIMARY;
  246. }
  247. .list-cell:selected .header-label {
  248. -fx-text-fill: TEXT_FILL_HIGHLIGHTED;
  249. }
  250. .list-cell.drop-above {
  251. -fx-border-color: CONTROL_BG_ARMED transparent transparent transparent;
  252. -fx-border-width: 3px 0 0 0;
  253. }
  254. .list-cell.drop-below {
  255. -fx-border-color: transparent transparent CONTROL_BG_ARMED transparent;
  256. -fx-border-width: 0 0 3px 0;
  257. }
  258. .onboarding-overlay-arc {
  259. -fx-stroke: TEXT_FILL;
  260. -fx-fill: transparent;
  261. }
  262. .button.toolbar-button {
  263. -fx-min-height: 40px;
  264. -fx-background-color: transparent;
  265. -fx-background-insets: 0;
  266. -fx-background-radius: 0;
  267. -fx-border-color: CONTROL_BORDER_NORMAL transparent transparent transparent;
  268. -fx-border-width: 1px 0 0 0;
  269. -fx-padding: 0;
  270. }
  271. .button.toolbar-button:focused {
  272. -fx-background-color: CONTROL_BORDER_FOCUSED, MAIN_BG;
  273. -fx-background-insets: 0, 2px 1px 1px 1px;
  274. }
  275. .button.toolbar-button:armed {
  276. -fx-background-color: CONTROL_BG_ARMED;
  277. }
  278. .vault-list-box {
  279. -fx-background-color: CONTROL_BG_NORMAL;
  280. }
  281. .add-vault-btn {
  282. -fx-background-color: CONTROL_BG_NORMAL;
  283. }
  284. .add-vault-btn .icon {
  285. -fx-fill: TEXT_FILL_MUTED;
  286. }
  287. .add-vault-btn-label {
  288. -fx-font-family: 'Open Sans SemiBold';
  289. -fx-font-size: 1.0em;
  290. }
  291. .preferences-btn {
  292. -fx-background-color: MAIN_BG;
  293. -fx-border-color: CONTROL_BORDER_NORMAL transparent transparent transparent;
  294. -fx-border-width: 1px 0 0 0;
  295. }
  296. /*******************************************************************************
  297. * *
  298. * NotificationBar *
  299. * *
  300. ******************************************************************************/
  301. .notification-label {
  302. -fx-text-fill: white;
  303. -fx-font-weight: bold;
  304. }
  305. .notification-debug {
  306. -fx-min-height:24px;
  307. -fx-max-height:24px;
  308. -fx-background-color: RED_5;
  309. }
  310. .notification-update {
  311. -fx-min-height:24px;
  312. -fx-max-height:24px;
  313. -fx-background-color: YELLOW_5;
  314. }
  315. .notification-support {
  316. -fx-min-height:24px;
  317. -fx-max-height:24px;
  318. -fx-background-color: PRIMARY;
  319. }
  320. /*******************************************************************************
  321. * *
  322. * ScrollBar *
  323. * *
  324. ******************************************************************************/
  325. .scroll-bar > .thumb {
  326. -fx-background-color: SCROLL_BAR_THUMB_NORMAL;
  327. -fx-background-insets: 1px;
  328. -fx-background-radius: 2px;
  329. }
  330. .scroll-bar > .thumb:hover {
  331. -fx-background-color: SCROLL_BAR_THUMB_HOVER;
  332. }
  333. .scroll-bar:horizontal > .increment-button,
  334. .scroll-bar:horizontal > .decrement-button {
  335. -fx-padding: 3 0 3 0;
  336. }
  337. .scroll-bar:vertical > .increment-button,
  338. .scroll-bar:vertical > .decrement-button {
  339. -fx-padding: 0 3 0 3;
  340. }
  341. /*******************************************************************************
  342. * *
  343. * Badge *
  344. * *
  345. ******************************************************************************/
  346. .badge {
  347. -fx-font-family: 'Open Sans Bold';
  348. -fx-font-size: 0.8em;
  349. -fx-background-radius: 4px;
  350. -fx-padding: 0.2em 0.4em 0.2em 0.4em;
  351. }
  352. .badge-pill {
  353. -fx-background-radius: 1em;
  354. }
  355. .badge-primary {
  356. -fx-text-fill: white;
  357. -fx-background-color: PRIMARY;
  358. }
  359. .badge-muted {
  360. -fx-text-fill: white;
  361. -fx-background-color: MUTED_BG;
  362. }
  363. /* Note: These values below are kinda random such that it looks ok. I'm pretty sure there is room for improvement. Additionally, fx-text-fill does not work*/
  364. .badge-debug {
  365. -fx-font-family: 'Open Sans Bold';
  366. -fx-font-size: 1.0em;
  367. -fx-background-radius: 8px;
  368. -fx-padding: 0.3em 0.55em 0.3em 0.55em;
  369. -fx-background-color: RED_5;
  370. -fx-background-radius: 2em;
  371. }
  372. /*******************************************************************************
  373. * *
  374. * Password Strength Indicator *
  375. * *
  376. ******************************************************************************/
  377. .password-strength-indicator .segment {
  378. -fx-background-color: CONTROL_BORDER_NORMAL;
  379. }
  380. .password-strength-indicator.strength-0 .segment.active {
  381. -fx-background-color: RED_5;
  382. }
  383. .password-strength-indicator.strength-1 .segment.active {
  384. -fx-background-color: ORANGE_5;
  385. }
  386. .password-strength-indicator.strength-2 .segment.active {
  387. -fx-background-color: YELLOW_5;
  388. }
  389. .password-strength-indicator.strength-3 .segment.active {
  390. -fx-background-color: GREEN_5;
  391. }
  392. .password-strength-indicator.strength-4 .segment.active {
  393. -fx-background-color: GREEN_3;
  394. }
  395. /*******************************************************************************
  396. * *
  397. * Tooltip *
  398. * *
  399. ******************************************************************************/
  400. .tooltip {
  401. -fx-font-family: 'Open Sans';
  402. -fx-text-fill: TEXT_FILL;
  403. -fx-font-size: 0.8em;
  404. -fx-background-color: CONTROL_BG_NORMAL;
  405. -fx-padding: 0.2em 0.4em 0.2em 0.4em;
  406. -fx-effect: dropshadow(three-pass-box, rgba(0, 0, 0, 0.5), 2, 0, 0, 0);
  407. }
  408. /*******************************************************************************
  409. * *
  410. * Text Fields *
  411. * *
  412. ******************************************************************************/
  413. .text-input {
  414. -fx-cursor: text;
  415. -fx-text-fill: TEXT_FILL;
  416. -fx-highlight-fill: PRIMARY;
  417. -fx-prompt-text-fill: TEXT_FILL_MUTED;
  418. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  419. -fx-background-insets: 0, 1px;
  420. -fx-background-radius: 4px;
  421. -fx-padding: 0.3em 0.5em 0.3em 0.5em;
  422. }
  423. .text-input:focused {
  424. -fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
  425. }
  426. .text-input:disabled {
  427. -fx-text-fill: TEXT_FILL_MUTED;
  428. -fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
  429. }
  430. .nice-secure-password-field .secure-password-field {
  431. -fx-padding: 0.3em 48px 0.3em 0.5em;
  432. }
  433. .nice-secure-password-field .icons {
  434. -fx-width: 42px;
  435. -fx-padding: 4px 6px 4px 0;
  436. }
  437. /*******************************************************************************
  438. * *
  439. * Text Areas *
  440. * *
  441. ******************************************************************************/
  442. .text-area {
  443. -fx-cursor: default;
  444. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  445. -fx-background-insets: 0, 1px;
  446. -fx-background-radius: 4px;
  447. -fx-padding: 0;
  448. }
  449. .text-input:focused {
  450. -fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
  451. }
  452. .text-input:disabled {
  453. -fx-text-fill: TEXT_FILL_MUTED;
  454. -fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
  455. }
  456. .text-area > .scroll-pane > .scroll-bar {
  457. -fx-padding: 2px;
  458. }
  459. .text-area .content {
  460. -fx-padding: 0.2em 0.5em 0.2em 0.5em;
  461. -fx-cursor: text;
  462. -fx-text-fill: TEXT_FILL;
  463. -fx-highlight-fill: PRIMARY;
  464. -fx-prompt-text-fill: TEXT_FILL_MUTED;
  465. -fx-background-color: null;
  466. }
  467. /*******************************************************************************
  468. * *
  469. * Buttons *
  470. * *
  471. ******************************************************************************/
  472. .button {
  473. -fx-text-fill: TEXT_FILL;
  474. -fx-alignment: CENTER;
  475. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  476. -fx-background-insets: 0, 1px;
  477. -fx-background-radius: 4px;
  478. -fx-padding: 0.3em 1em 0.3em 1em;
  479. -fx-graphic-text-gap: 6px;
  480. }
  481. .button:focused {
  482. -fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
  483. }
  484. .button:armed {
  485. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_ARMED;
  486. }
  487. .button:default {
  488. -fx-text-fill: white;
  489. -fx-background-color: CONTROL_PRIMARY_BORDER_NORMAL, CONTROL_PRIMARY_BG_NORMAL;
  490. }
  491. .button:default:focused {
  492. -fx-background-color: CONTROL_PRIMARY_BORDER_FOCUSED, CONTROL_PRIMARY_BG_NORMAL;
  493. }
  494. .button:default:armed {
  495. -fx-background-color: CONTROL_PRIMARY_BORDER_ARMED, CONTROL_PRIMARY_BG_ARMED;
  496. }
  497. .button:disabled,
  498. .button:default:disabled {
  499. -fx-text-fill: TEXT_FILL_MUTED;
  500. -fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
  501. }
  502. .button:disabled .glyph-icon {
  503. -fx-fill: TEXT_FILL_MUTED;
  504. }
  505. .button:default .glyph-icon {
  506. -fx-fill: white;
  507. }
  508. .button:default:disabled .glyph-icon {
  509. -fx-fill: TEXT_FILL_MUTED;
  510. }
  511. .button:default .label {
  512. -fx-text-fill: white;
  513. }
  514. .button-large {
  515. -fx-font-size: 1.25em;
  516. -fx-padding: 0.6em 1.5em 0.6em 1.5em;
  517. -fx-graphic-text-gap: 9px;
  518. }
  519. /*******************************************************************************
  520. * *
  521. * Hyperlinks *
  522. * *
  523. ******************************************************************************/
  524. .hyperlink {
  525. -fx-text-fill: TEXT_FILL;
  526. -fx-graphic-text-gap: 6px;
  527. }
  528. .hyperlink.hyperlink-underline {
  529. -fx-underline: true;
  530. }
  531. .hyperlink.hyperlink-muted {
  532. -fx-text-fill: TEXT_FILL_MUTED;
  533. }
  534. .hyperlink-hover-icon {
  535. -fx-content-display: text-only;
  536. }
  537. .hyperlink-hover-icon:hover {
  538. -fx-content-display: right;
  539. }
  540. /*******************************************************************************
  541. * *
  542. * CheckBox *
  543. * *
  544. ******************************************************************************/
  545. .check-box {
  546. -fx-text-fill: TEXT_FILL;
  547. -fx-label-padding: 0 0 0 6px;
  548. -fx-padding: 4px 0 4px 0;
  549. }
  550. .check-box:disabled {
  551. -fx-text-fill: TEXT_FILL_MUTED;
  552. }
  553. .check-box > .box {
  554. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  555. -fx-background-insets: 0, 1px;
  556. -fx-background-radius: 4px;
  557. -fx-padding: 0.3em;
  558. }
  559. .check-box:focused > .box {
  560. -fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
  561. }
  562. .check-box:disabled > .box {
  563. -fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
  564. }
  565. .check-box > .box > .mark {
  566. -fx-background-color: transparent;
  567. -fx-padding: 0.4em;
  568. -fx-shape: "M-1,4, L-1,5.5 L3.5,8.5 L9,0 L9,-1 L7,-1 L3,6 L1,4 Z";
  569. }
  570. .check-box:selected > .box > .mark {
  571. -fx-background-color: TEXT_FILL;
  572. }
  573. .check-box:selected:disabled > .box > .mark {
  574. -fx-background-color: TEXT_FILL_MUTED;
  575. }
  576. /*******************************************************************************
  577. * *
  578. * RadioButton *
  579. * *
  580. ******************************************************************************/
  581. .radio-button {
  582. -fx-text-fill: TEXT_FILL;
  583. -fx-label-padding: 0 0 0 6px;
  584. -fx-padding: 4px 0 4px 0;
  585. }
  586. .radio-button > .radio {
  587. -fx-border-color: CONTROL_BORDER_NORMAL;
  588. -fx-border-radius: 1em; /* large value to make sure this remains circular */
  589. -fx-background-color: CONTROL_BG_NORMAL;
  590. -fx-background-radius: 1em;
  591. -fx-padding: 0.3em; /* padding from outside edge to the inner black dot */
  592. }
  593. .radio-button:focused > .radio {
  594. -fx-border-color: CONTROL_BORDER_FOCUSED;
  595. }
  596. .text-input:disabled > .radio {
  597. -fx-border-color: CONTROL_BORDER_DISABLED;
  598. -fx-background-color: CONTROL_BG_DISABLED;
  599. }
  600. .radio-button > .radio > .dot {
  601. -fx-background-color: transparent;
  602. -fx-background-radius: 1em; /* large value to make sure this remains circular */
  603. -fx-padding: 0.2em; /* radius of the inner black dot when selected */
  604. }
  605. .radio-button:selected > .radio > .dot {
  606. -fx-background-color: TEXT_FILL;
  607. }
  608. /*******************************************************************************
  609. * *
  610. * ChoiceBox *
  611. * *
  612. ******************************************************************************/
  613. .choice-box {
  614. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  615. -fx-background-insets: 0, 1px;
  616. -fx-background-radius: 4px;
  617. -fx-padding: 0.3em 0.5em 0.3em 0.5em;
  618. }
  619. .choice-box:focused {
  620. -fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
  621. }
  622. .choice-box:disabled {
  623. -fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
  624. }
  625. .choice-box > .label {
  626. -fx-text-fill: TEXT_FILL;
  627. }
  628. .choice-box:disabled > .label {
  629. -fx-text-fill: TEXT_FILL_MUTED;
  630. }
  631. .choice-box > .open-button {
  632. -fx-padding: 0 0 0 0.3em;
  633. }
  634. .choice-box > .open-button > .arrow {
  635. -fx-background-color: transparent, TEXT_FILL;
  636. -fx-background-insets: 0 0 -1 0, 0;
  637. -fx-padding: 0.15em 0.3em 0.15em 0.3em;
  638. -fx-shape: "M 0 0 h 7 l -3.5 4 z";
  639. }
  640. .choice-box:disabled > .open-button > .arrow {
  641. -fx-background-color: transparent, TEXT_FILL_MUTED;
  642. }
  643. .choice-box .context-menu {
  644. -fx-translate-x: -1.4em;
  645. }
  646. /*******************************************************************************
  647. * *
  648. * ContextMenu *
  649. * *
  650. ******************************************************************************/
  651. .context-menu {
  652. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  653. -fx-background-insets: 0, 1px;
  654. -fx-background-radius: 4px;
  655. -fx-padding: 0.2em 0 0.2em 0;
  656. -fx-effect: dropshadow(three-pass-box, rgba(0, 0, 0, 0.2), 8, 0, 0, 0);
  657. }
  658. /*******************************************************************************
  659. * *
  660. * MenuItem *
  661. * *
  662. ******************************************************************************/
  663. .menu-item {
  664. -fx-padding: 0.2em 0.4em 0.2em 0.4em;
  665. }
  666. .menu-item:focused {
  667. -fx-background-color: transparent, CONTROL_BG_ARMED;
  668. -fx-background-insets: 0, 0 1px 0 1px;
  669. }
  670. .menu-item:disabled {
  671. -fx-background-color: transparent;
  672. }
  673. .menu-item > .left-container {
  674. -fx-padding: 0.5em 0.25em 0.5em 0.5em;
  675. }
  676. .menu-item > .label {
  677. -fx-padding: 1px 0.5em 1px 0.5em;
  678. }
  679. .menu-item:disabled > .label {
  680. -fx-text-fill: TEXT_FILL_MUTED;
  681. }
  682. .radio-menu-item:checked > .left-container > .radio {
  683. -fx-background-color: TEXT_FILL;
  684. -fx-shape: "M-1,4, L-1,5.5 L3.5,8.5 L9,0 L9,-1 L7,-1 L3,6 L1,4 Z";
  685. -fx-scale-shape: false;
  686. }
  687. /*******************************************************************************
  688. * *
  689. * Add Vault - MenuItem *
  690. * *
  691. ******************************************************************************/
  692. .add-vault-menu-item {
  693. -fx-padding: 4px 8px;
  694. }
  695. /*******************************************************************************
  696. * *
  697. * ProgressBar *
  698. * *
  699. ******************************************************************************/
  700. .progress-bar {
  701. -fx-indeterminate-bar-length: 100;
  702. -fx-indeterminate-bar-escape: true;
  703. -fx-indeterminate-bar-flip: true;
  704. -fx-indeterminate-bar-animation-time: 2;
  705. }
  706. .progress-bar > .bar {
  707. -fx-background-color: CONTROL_PRIMARY_BG_NORMAL;
  708. -fx-background-radius: 4px;
  709. -fx-padding: 1em 0.5em;
  710. }
  711. .progress-bar:indeterminate > .bar {
  712. -fx-background-color: linear-gradient(to left, transparent, CONTROL_PRIMARY_BG_NORMAL);
  713. }
  714. .progress-bar > .track {
  715. -fx-background-color: PROGRESS_BAR_BG;
  716. -fx-background-radius: 4px;
  717. }
  718. /*******************************************************************************
  719. * *
  720. * I/O Statistics *
  721. * *
  722. ******************************************************************************/
  723. .cache-arc-background {
  724. -fx-fill: transparent;
  725. -fx-stroke: MUTED_BG;
  726. -fx-stroke-type: centered;
  727. -fx-stroke-width: 12;
  728. -fx-stroke-line-cap: butt;
  729. }
  730. .cache-arc-foreground {
  731. -fx-fill: transparent;
  732. -fx-stroke: PRIMARY;
  733. -fx-stroke-type: centered;
  734. -fx-stroke-width: 12;
  735. -fx-stroke-line-cap: butt;
  736. }
  737. .chart.io-stats {
  738. -fx-padding: 10px;
  739. -fx-horizontal-grid-lines-visible: false;
  740. -fx-horizontal-zero-line-visible: false;
  741. -fx-vertical-grid-lines-visible: false;
  742. -fx-vertical-zero-line-visible: false;
  743. }
  744. .axis.io-stats {
  745. -fx-tick-mark-visible: false;
  746. -fx-minor-tick-visible: false;
  747. -fx-tick-labels-visible: false;
  748. }
  749. .chart-plot-background {
  750. -fx-background-color: transparent;
  751. }
  752. .chart-vertical-zero-line,
  753. .chart-horizontal-zero-line,
  754. .chart-alternative-row-fill {
  755. -fx-stroke: transparent;
  756. -fx-stroke-width: 0;
  757. }
  758. .default-color0.chart-series-area-line {
  759. -fx-stroke: PRIMARY;
  760. }
  761. .default-color0.chart-series-area-fill {
  762. -fx-fill: linear-gradient(to bottom, PRIMARY, transparent);
  763. -fx-stroke: transparent;
  764. }
  765. /*******************************************************************************
  766. * *
  767. * Drag and Drop *
  768. * *
  769. ******************************************************************************/
  770. .drag-n-drop-border {
  771. -fx-border-color: SECONDARY;
  772. -fx-border-width: 3px;
  773. }
  774. .button.drag-n-drop {
  775. -fx-background-color: CONTROL_BG_NORMAL;
  776. -fx-background-insets: 0;
  777. -fx-padding: 1.4em 1em 1.4em 1em;
  778. -fx-text-fill: TEXT_FILL_MUTED;
  779. -fx-font-size: 0.8em;
  780. -fx-border-color: CONTROL_BORDER_NORMAL;
  781. -fx-border-radius: 4px;
  782. -fx-border-style: dashed inside;
  783. -fx-border-width: 1px;
  784. }
  785. .button.drag-n-drop:focused {
  786. -fx-border-color: CONTROL_BORDER_FOCUSED;
  787. }
  788. .button.drag-n-drop:armed {
  789. -fx-background-color: CONTROL_BG_ARMED;
  790. }
  791. .button.drag-n-drop.active {
  792. -fx-border-color: SECONDARY;
  793. -fx-border-style: solid inside;
  794. -fx-border-width: 1px;
  795. }
  796. /*******************************************************************************
  797. * *
  798. * Separator *
  799. * *
  800. ******************************************************************************/
  801. .separator {
  802. -fx-padding: 0.5px;
  803. -fx-background-color: CONTROL_BORDER_NORMAL;
  804. }
  805. /*******************************************************************************
  806. * *
  807. * Ad box *
  808. * *
  809. ******************************************************************************/
  810. .ad-box {
  811. -fx-padding: 12px;
  812. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  813. -fx-background-insets: 0, 1px;
  814. -fx-background-radius: 4px;
  815. }