Advertisement
Guest User

Untitled

a guest
Nov 16th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 2.01 KB | None | 0 0
  1. /*
  2.  * This is an adjustment of the original modena.css for a consistent dark theme.
  3.  * Original modena.css here: https://gist.github.com/maxd/63691840fc372f22f470.
  4.  */
  5.  
  6. /* Redefine base colors */
  7. .root {
  8.     -fx-base: rgb(19, 22, 30);
  9.     -fx-background: rgb(19, 22, 30);
  10.  
  11.     /* make controls (buttons, thumb, etc.) slightly lighter */
  12.     -fx-color: derive(-fx-base, 10%);
  13.  
  14.     /* text fields and table rows background */
  15.     -fx-control-inner-background: rgb(20, 20, 20);
  16.     /* version of -fx-control-inner-background for alternative rows */
  17.     -fx-control-inner-background-alt: derive(-fx-control-inner-background, 2.5%);
  18.  
  19.     /* text colors depending on background's brightness */
  20.     -fx-light-text-color: rgb(220, 220, 220);
  21.     -fx-mid-text-color: rgb(100, 100, 100);
  22.     -fx-dark-text-color: rgb(20, 20, 20);
  23.  
  24.     /* A bright blue for highlighting/accenting objects.  For example: selected
  25.      * text; selected items in menus, lists, trees, and tables; progress bars */
  26.     -fx-accent: rgb(69, 164, 132);
  27.  
  28.     /* color of non-focused yet selected elements */
  29.     -fx-selection-bar-non-focused: rgb(19, 22, 30);
  30. }
  31.  
  32. /* Fix derived prompt color for text fields */
  33. .text-input {
  34.     -fx-prompt-text-fill: derive(-fx-control-inner-background, +50%);
  35. }
  36.  
  37. /* Keep prompt invisible when focused (above color fix overrides it) */
  38. .text-input:focused {
  39.     -fx-prompt-text-fill: transparent;
  40. }
  41.  
  42. /* Fix scroll bar buttons arrows colors */
  43. .scroll-bar > .increment-button > .increment-arrow,
  44. .scroll-bar > .decrement-button > .decrement-arrow {
  45.     -fx-background-color: -fx-mark-highlight-color, rgb(220, 220, 220);
  46. }
  47.  
  48. .scroll-bar > .increment-button:hover > .increment-arrow,
  49. .scroll-bar > .decrement-button:hover > .decrement-arrow {
  50.     -fx-background-color: -fx-mark-highlight-color, rgb(240, 240, 240);
  51. }
  52.  
  53. .scroll-bar > .increment-button:pressed > .increment-arrow,
  54. .scroll-bar > .decrement-button:pressed > .decrement-arrow {
  55.     -fx-background-color: -fx-mark-highlight-color, rgb(255, 255, 255);
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement