-
Notifications
You must be signed in to change notification settings - Fork 308
/
caspian.css
3523 lines (3007 loc) · 126 KB
/
caspian.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Document : caspian
*/
/*
* Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
/*******************************************************************************
* *
* CSS Styles for core infrastructure bits. The .root section provides the *
* overall default font and colors used by the rest of the sections. *
* *
******************************************************************************/
.root {
/***************************************************************************
* *
* The main color palette from which the rest of the colors are derived. *
* *
**************************************************************************/
/* A light grey that is the base color for objects. Instead of using
* -fx-base directly, the sections in this file will typically use -fx-color.
*/
-fx-base: #d0d0d0;
/* A very light grey used for the background of windows. See also
* -fx-text-background-color, which should be used as the -fx-text-fill
* value for text painted on top of backgrounds colored with -fx-background.
*/
-fx-background: #f4f4f4;
/* Used for the inside of text boxes, password boxes, lists, trees, and
* tables. See also -fx-text-inner-color, which should be used as the
* -fx-text-fill value for text painted on top of backgrounds colored
* with -fx-control-inner-background.
*/
-fx-control-inner-background: white;
/* One of these colors will be chosen based upon a ladder calculation
* that uses the brightness of a background color. Instead of using these
* colors directly as -fx-text-fill values, the sections in this file should
* use a derived color to match the background in use. See also:
*
* -fx-text-base-color for text on top of -fx-base, -fx-color, and -fx-body-color
* -fx-text-background-color for text on top of -fx-background
* -fx-text-inner-color for text on top of -fx-control-inner-color
* -fx-selection-bar-text for text on top of -fx-selection-bar
*/
-fx-dark-text-color: black;
-fx-mid-text-color: #292929;
-fx-light-text-color: white;
/* A bright blue for highlighting/accenting objects. For example: selected
* text; selected items in menus, lists, trees, and tables; progress bars;
* default buttons.
*/
-fx-accent: #0093ff;
/* A bright blue for the focus indicator of objects. Typically used as the
* first color in -fx-background-color for the "focused" pseudo-class. Also
* typically used with insets of -1.4 to provide a glowing effect.
*
* TODO: should this be derived from -fx-accent?
*/
-fx-focus-color: #0093ff;
/* The color that is used in styling controls. The default value is based
* on -fx-base, but is changed by pseudoclasses to change the base color.
* For example, the "hover" pseudoclass will typically set -fx-color to
* -fx-hover-base (see below) and the "armed" pseudoclass will typically
* set -fx-color to -fx-pressed-base.
*/
-fx-color: -fx-base;
/* The opacity level to use for the "disabled" pseudoclass.
*/
-fx-disabled-opacity: 0.4;
/***************************************************************************
* *
* Colors that are derived from the main color palette. *
* *
**************************************************************************/
/* A little lighter than -fx-base and used as the -fx-color for the
* "hovered" pseudoclass state.
*/
-fx-hover-base: ladder(
-fx-base,
derive(-fx-base,20%) 20%,
derive(-fx-base,30%) 35%,
derive(-fx-base,40%) 50%
);
/* A little darker than -fx-base and used as the -fx-color for the
* "armed" pseudoclass state.
*
* TODO: should this be renamed to -fx-armed-base?
*/
-fx-pressed-base: derive(-fx-base,-20%);
/* Used to specify the body color for focused objects. By default, it's
* the same as -fx-base (i.e., the body color doesn't change when a control
* gets focus).
*/
-fx-focused-base: -fx-base;
/* The color to use for -fx-text-fill when text is to be painted on top of
* a background filled with the -fx-background color.
*/
-fx-text-background-color: ladder(
-fx-background,
-fx-light-text-color 45%,
-fx-dark-text-color 46%,
-fx-dark-text-color 59%,
-fx-mid-text-color 60%
);
/* The default color for all text. Sections should change the -fx-text-fill
* property if change the background color to something else. See also:
*
* -fx-text-base-color for text on top of -fx-base, -fx-color, and -fx-body-color
* -fx-text-background-color for text on top of -fx-background
* -fx-text-inner-color for text on top of -fx-control-inner-color
* -fx-selection-bar-text for text on top of -fx-selection-bar
*/
-fx-text-fill: -fx-text-background-color;
/* A little darker than -fx-color and used to draw boxes around objects such
* as progress bars, scroll bars, scroll panes, trees, tables, and lists.
*/
-fx-box-border: ladder(
-fx-color,
black 20%,
derive(-fx-color,-30%) 30%
);
/* Darker than -fx-background and used to draw boxes around text boxes and
* password boxes.
*/
-fx-text-box-border: ladder(
-fx-background,
black 10%,
derive(-fx-background, -15%) 30%
);
/* Typically lighter than -fx-background and used to provide a small
* highlight under controls and tick marks for checkboxes and radio buttons.
* Often used with an insets of 0 0 -1 0, and is also often the first
* color in a -fx-background-color list. Also is typically replaced by
* -fx-focus-color with an insets of -1.4 in the "focused" pseudoclass.
*/
-fx-shadow-highlight-color: ladder(
-fx-background,
transparent 0%,
derive(-fx-background,40%) 5%,
derive(-fx-background,60%) 70%,
derive(-fx-background,100%) 85%,
derive(-fx-background,100%) 97%,
derive(-fx-background,-10%) 97.5%
);
/* A gradient that goes from a little darker than -fx-color on the top to
* even more darker than -fx-color on the bottom. Typically is the second
* color in the -fx-background-color list as the small thin border around
* a control. It is typically the same size as the control (i.e., insets
* are 0).
*/
-fx-outer-border: linear-gradient(
to bottom,
derive(-fx-color,-9%) 0%,
derive(-fx-color,-33%) 100%
);
/* A gradient that goes from a bit lighter than -fx-color on the top to
* a little darker at the bottom. Typically is the third color in the
* -fx-background-color list as a thin highlight inside the outer border.
* Insets are typically 1.
*/
-fx-inner-border: linear-gradient(
to bottom,
ladder(-fx-color,
derive(-fx-color,80%) 60%,
white 82%) 0%,
ladder(-fx-color,
derive(-fx-color,20%) 10%,
derive(-fx-color,-10%) 80%) 100%
);
-fx-inner-border-horizontal: linear-gradient(
to right,
ladder(-fx-color,
derive(-fx-color,80%) 60%,
white 82%) 0%,
ladder(-fx-color,
derive(-fx-color,20%) 10%,
derive(-fx-color,-10%) 80%) 100%
);
-fx-inner-border-bottomup: linear-gradient(
to top,
ladder(-fx-color,
derive(-fx-color,80%) 60%,
white 82%) 0%,
ladder(-fx-color,
derive(-fx-color,20%) 10%,
derive(-fx-color,-10%) 80%) 100%);
/* A gradient that goes from a little lighter than -fx-color at the top to
* a little darker than -fx-color at the bottom and is used to fill the
* body of many controls such as buttons. Typically is the fourth color
* in the -fx-background-color list and represents main body of the control.
* Insets are typically 2.
*/
-fx-body-color: linear-gradient(
to bottom,
derive(-fx-color,34%) 0%,
derive(-fx-color,-18%) 100%
);
-fx-body-color-bottomup: linear-gradient(
to top,
derive(-fx-color,34%) 0%,
derive(-fx-color,-18%) 100%
);
/* The color to use as -fx-text-fill when painting text on top of
* backgrounds filled with -fx-base, -fx-color, and -fx-body-color.
*/
-fx-text-base-color: ladder(
-fx-color,
-fx-light-text-color 45%,
-fx-dark-text-color 46%,
-fx-dark-text-color 59%,
-fx-mid-text-color 60%
);
/* The color to use as -fx-text-fill when painting text on top of
* backgrounds filled with -fx-control-inner-background.
*/
-fx-text-inner-color: ladder(
-fx-control-inner-background,
-fx-light-text-color 45%,
-fx-dark-text-color 46%,
-fx-dark-text-color 59%,
-fx-mid-text-color 60%
);
/* The color to use for small mark-like objects such as checks on check
* boxes, filled in circles in radio buttons, arrows on scroll bars, etc.
*/
-fx-mark-color: ladder(
-fx-color,
white 30%,
derive(-fx-color,-63%) 31%
);
/* The small thin light "shadow" for mark-like objects. Typically used in
* conjunction with -fx-mark-color with an insets of 1 0 -1 0.
*/
-fx-mark-highlight-color: ladder(
-fx-color,
derive(-fx-color,80%) 60%,
white 70%
);
/* Background for items in list like things such as menus, lists, trees,
* and tables.
*
* TODO: it seems like this should be based upon -fx-accent and we should
* remove the setting -fx-background in all the sections that use
* -fx-selection-bar.
*/
-fx-selection-bar: linear-gradient(
to bottom,
derive(-fx-background,-7%) 0%,
derive(-fx-background,-34%) 100%
);
/* The color to use as -fx-text-fill when painting text on top of
* backgrounds filled with -fx-selection-bar.
*
* TODO: it seems like this should be derived from -fx-selection-bar.
*/
-fx-selection-bar-text: ladder(
-fx-background,
-fx-light-text-color 50%,
-fx-mid-text-color 51%
);
/* The default border color for a tab.
*
* TODO: should this be -fx-box-border or derived from some other color?
*/
-fx-tab-border-color: -fx-box-border;
/* These are needed for Popup */
-fx-background-color: inherit;
-fx-background-radius: inherit;
-fx-background-insets: inherit;
-fx-padding: inherit;
/* The color to use in ListView/TreeView/TableView to indicate hover. */
-fx-cell-hover-color: #cce3f4;
-fx-cell-focus-inner-border: #85b9de;
/* The colors to use in Pagination */
-fx-page-bullet-border: #acacac;
-fx-page-indicator-hover-border: #accee5;
}
.mnemonic-underline {
-fx-stroke: transparent;
}
.text {
-fx-font-smoothing-type: lcd;
}
/*******************************************************************************
*******************************************************************************
** **
** CSS Sections for each control. In general, each control will have a main **
** section that defines the following: **
** **
** .control-name { **
** -fx-skin: "com.sun.javafx.scene.control.skin.ControlNameSkin"; **
** -fx-background-color: a, b, c, d **
** -fx-background-insets: e, f, g, h **
** -fx-background-radius: i, j, k, l **
** -fx-padding: m **
** -fx-text-fill: n **
** } **
** **
** where: **
** **
** -fx-background-color, -fx-background-insets, and -fx-background-radius **
** are parallel arrays that specify background colors for the control. **
** **
** -fx-background represents a sequence of colors for regions that will be **
** drawn, one on top of the other. **
** **
** -fx-background-insets is a comma separated list of insets that represent **
** the top right bottom left insets from the edge of the control for each **
** color specified in the -fx-background-color list. A single size for **
** an inset means the same inset will be used for the top right bottom left **
** values. A negative inset will draw outside the bounds of the control. **
** **
** -fx-background-radius is a comma separated list of values that represent **
** the radii of the top right, bottom right, bottom left, and top left **
** corners of the rectangle associated with the rectangle from the **
** -fx-background-color list. As with insets, a single size for a radius **
** means the same radius will be used for all corners. **
** **
** Typically, the following values will be used: **
** **
** a/e/i = -fx-shadow-highlight-color, 0 0 -1 0, 5 **
** Draws a background highlight dropped 1 pixel down with **
** corners with a 5 pixel radius. **
** b/f/j = -fx-outer-border, 0, 5 **
** Draws an outer border the size of the control (insets = 0) and **
** with corners with a 5 pixel radius. **
** c/g/k = -fx-inner-border, 1, 4 **
** Draws an inner border inset 1 pixel from the control edge and **
** with corners with a smaller radius (radius = 4). **
** d/h/l = -fx-body-color, 2, 3 **
** Draws the body last, inset 2 pixels from the control edge and **
** with cornersd with an even smaller radius (radius = 3). **
** m = Padding from the edge of the control to the outer edge of the **
** skin content. **
** n = If specified, the color chosen for -fx-text-fill should match **
** the innermost color from -fx-background-colors (e.g., 'd'). **
** See the -fx-text-fill entry in .scene for more information. **
** **
** The control will also typically define pseudoclass sections for when it **
** is focused, when the mouse is hovering over it ("hover") and when the **
** mouse button is being held down on it (e.g., "armed"). **
** **
** For example, in the "focused" pseudoclass, -fx-focus-color will typically **
** just replace -fx-shadow-highlight-color and will be drawn so it extents **
** outside the control with a glowing effect. The glowing effect is **
** achieved by using a non-integer insets value of -1.4 and the radius **
** is adjusted accordingly. **
** **
** .control-name:focused { **
** -fx-background-color: -fx-focus-color, b, c, d **
** -fx-background-insets: -1.4, f, g, h **
** -fx-background-radius: 6.4, j, k, l **
** } **
** **
** In the "hover" pseudoclass, the -fx-color is replaced with -fx-hover-base **
** which will result in a re-derivation of the other colors in **
** -fx-background-colors: **
** **
** .control-name:hover { **
** -fx-color: -fx-hover-base; **
** } **
** **
** In the "armed" pseudoclass, the -fx-color is replaced with **
** -fx-pressed-base, which will result in a rederivation of the other colors **
** in -fx-background-colors: **
** **
** .control-name:armed { **
** -fx-color: -fx-pressed-base; **
** } **
** **
** The control will also typically include a "disabled" pseudoclass which **
** makes the component transparent: **
** **
** .control-name:disabled { **
** -fx-opacity: -fx-disabled-opacity; **
** } **
** **
*******************************************************************************
******************************************************************************/
/*******************************************************************************
*******************************************************************************
** **
** NOTE on em values: em values are used for padding and other sizing **
** throughout this file. Size values in ems represent fraction of the **
** font size in use. As used in this file, each 1/12th represents a pixel **
** based upon the default size of 12px. Here's a table for quick reference: **
** **
** 1px: 0.083333em **
** 2px: 0.166667em **
** 3px: 0.25em **
** 4px: 0.333333em **
** 5px: 0.416667em **
** 6px: 0.5em **
** 7px: 0.583333em **
** 8px: 0.666667em **
** 9px: 0.75em **
** 10px: 0.833333em **
** 11px: 0.916667em **
** 12px: 1.0em **
** **
*******************************************************************************
******************************************************************************/
/*******************************************************************************
* *
* Label *
* *
******************************************************************************/
.label {
-fx-skin: "com.sun.javafx.scene.control.skin.LabelSkin";
-fx-text-fill: -fx-text-background-color;
}
.label:disabled {
-fx-opacity: -fx-disabled-opacity;
}
.label:show-mnemonics .mnemonic-underline {
-fx-stroke: -fx-text-fill;
}
/* The opacity of the parent is applied to the children. So we make the
* opacity 1.0 here to avoid double translucency.
*/
/*:disabled > * > .label {
-fx-opacity: 1.0;
}*/
/*******************************************************************************
* *
* Button *
* *
******************************************************************************/
.button {
-fx-skin: "com.sun.javafx.scene.control.skin.ButtonSkin";
-fx-background-color: -fx-shadow-highlight-color, -fx-outer-border, -fx-inner-border, -fx-body-color;
-fx-background-insets: 0 0 -1 0, 0, 1, 2;
-fx-background-radius: 5, 5, 4, 3;
-fx-padding: 0.166667em 0.833333em 0.25em 0.833333em; /* 2 10 3 10 */
-fx-text-fill: -fx-text-base-color;
-fx-alignment: CENTER;
-fx-content-display: LEFT;
}
.button:focused {
-fx-color: -fx-focused-base;
-fx-background-color: -fx-focus-color, -fx-outer-border, -fx-inner-border, -fx-body-color;
-fx-background-insets: -1.4, 0, 1, 2;
-fx-background-radius: 6.4, 5, 4, 3;
}
.button:hover {
-fx-color: -fx-hover-base;
}
.button:armed {
-fx-color: -fx-pressed-base;
}
.button:default {
-fx-base: -fx-accent;
}
.button:cancel {
}
.button:disabled {
-fx-opacity: -fx-disabled-opacity;
}
.button:show-mnemonics .mnemonic-underline {
-fx-stroke: -fx-text-fill;
}
/*******************************************************************************
* *
* ToggleButton *
* *
******************************************************************************/
.toggle-button {
-fx-skin: "com.sun.javafx.scene.control.skin.ToggleButtonSkin";
-fx-background-color: -fx-shadow-highlight-color, -fx-outer-border, -fx-inner-border, -fx-body-color;
-fx-background-insets: 0 0 -1 0, 0, 1, 2;
-fx-background-radius: 5, 5, 4, 3;
-fx-padding: 0.166667em 0.833333em 0.25em 0.833333em; /* 2 10 3 10 */
-fx-text-fill: -fx-text-base-color;
-fx-alignment: CENTER;
-fx-content-display: LEFT;
}
.toggle-button:focused {
-fx-color: -fx-focused-base;
-fx-background-color: -fx-focus-color, -fx-outer-border, -fx-inner-border, -fx-body-color;
-fx-background-insets: -1.4, 0, 1, 2;
-fx-background-radius: 6.4, 5, 4, 3;
}
.toggle-button:hover {
-fx-color: -fx-hover-base;
}
.toggle-button:armed {
-fx-color: -fx-pressed-base;
}
.toggle-button:selected {
-fx-background-color:
-fx-shadow-highlight-color,
linear-gradient(to bottom, derive(-fx-color,-90%) 0%, derive(-fx-color,-60%) 100%),
linear-gradient(to bottom, derive(-fx-color,-60%) 0%, derive(-fx-color,-35%) 50%, derive(-fx-color,-30%) 98%, derive(-fx-color,-50%) 100%),
linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 90%, rgba(0,0,0,0.3) 100%);
-fx-background-insets: 0 0 -1 0, 0, 1, 1;
/* TODO: -fx-text-fill should be derived */
-fx-text-fill: -fx-light-text-color;
}
.toggle-button:selected:focused {
-fx-color: -fx-focused-base;
-fx-background-color:
-fx-focus-color,
linear-gradient(to bottom, derive(-fx-color,-90%) 0%, derive(-fx-color,-60%) 100%),
linear-gradient(to bottom, derive(-fx-color,-60%) 0%, derive(-fx-color,-35%) 50%, derive(-fx-color,-30%) 98%, derive(-fx-color,-50%) 100%),
linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 90%, rgba(0,0,0,0.3) 100%);
-fx-background-insets: -1.4, 0, 1, 1;
}
.toggle-button:disabled {
-fx-opacity: -fx-disabled-opacity;
}
.toggle-button:show-mnemonics .mnemonic-underline {
-fx-stroke: -fx-text-fill;
}
/*******************************************************************************
* *
* RadioButton *
* *
******************************************************************************/
.radio-button {
-fx-skin: "com.sun.javafx.scene.control.skin.RadioButtonSkin";
-fx-label-padding: 0.0em 0.0em 0.0em 0.416667em; /* 0 0 0 5 */
-fx-text-fill: -fx-text-background-color;
}
.radio-button:focused {
-fx-color: -fx-focused-base;
}
.radio-button .radio {
-fx-background-color: -fx-shadow-highlight-color, -fx-outer-border, -fx-inner-border, -fx-body-color;
-fx-background-insets: 0 0 -1 0, 0, 1, 2;
-fx-background-radius: 1.0em; /* large value to make sure this remains circular */
-fx-padding: 0.333333em; /* 4 -- padding from outside edge to the inner black dot */
}
.radio-button:focused .radio {
-fx-background-color: -fx-focus-color, -fx-outer-border, -fx-inner-border, -fx-body-color;
-fx-background-radius: 1.0em; /* large value to make sure this remains circular */
-fx-background-insets: -1.4, 0, 1, 2;
}
.radio-button:hover .radio {
-fx-color: -fx-hover-base;
}
.radio-button:armed .radio {
-fx-color: -fx-pressed-base;
}
.radio-button .dot {
-fx-background-color: transparent;
-fx-background-insets: 0;
-fx-background-radius: 1.0em; /* large value to make sure this remains circular */
-fx-padding: 0.25em; /* 3 -- radius of the inner black dot when selected */
}
.radio-button:selected .dot {
-fx-background-color: -fx-mark-highlight-color, -fx-mark-color;
-fx-background-insets: 0 0 -1 0, 0;
}
.radio-button:disabled {
-fx-opacity: -fx-disabled-opacity;
}
.radio-button:show-mnemonics .mnemonic-underline {
-fx-stroke: -fx-text-fill;
}
/*******************************************************************************
* *
* CheckBox *
* *
******************************************************************************/
.check-box {
-fx-skin: "com.sun.javafx.scene.control.skin.CheckBoxSkin";
-fx-label-padding: 0.0em 0.0em 0.0em 0.416667em; /* 0 0 0 5 */
-fx-text-fill: -fx-text-background-color;
}
.check-box:focused {
-fx-color: -fx-focused-base;
}
.check-box .box {
-fx-background-color: -fx-shadow-highlight-color, -fx-outer-border, -fx-inner-border, -fx-body-color;
-fx-background-insets: 0 0 -1 0, 0, 1, 2;
-fx-background-radius: 2, 2, 1, 1;
-fx-padding: 0.25em; /* 3 -- padding from the outside edge to the mark */
}
.check-box:focused .box {
-fx-background-color: -fx-focus-color, -fx-outer-border, -fx-inner-border, -fx-body-color;
-fx-background-insets: -1.4, 0, 1, 2;
-fx-background-radius: 3.4, 2, 1, 1;
}
.check-box:hover .box {
-fx-color: -fx-hover-base;
}
.check-box:armed .box {
-fx-color: -fx-pressed-base;
}
.check-box .mark {
-fx-background-color: transparent;
-fx-background-insets: 1 0 -1 0, 0;
-fx-padding: 0.333333em; /* 4 -- this is half the size of the mark */
-fx-shape: "M0,4H2L3,6L6,0H8L4,8H2Z";
}
/* TODO: scale the shape - the problem is that it is not within a square
* boundary.
*/
.check-box:indeterminate .mark {
-fx-background-color: -fx-mark-highlight-color, -fx-mark-color;
-fx-shape: "M0,0H8V2H0Z";
-fx-scale-shape: false;
}
.check-box:selected .mark {
-fx-background-color: -fx-mark-highlight-color, -fx-mark-color;
}
.check-box:disabled {
-fx-opacity: -fx-disabled-opacity;
}
.check-box:show-mnemonics .mnemonic-underline {
-fx-stroke: -fx-text-fill;
}
/*******************************************************************************
* *
* Hyperlink *
* *
******************************************************************************/
.hyperlink {
-fx-skin: "com.sun.javafx.scene.control.skin.HyperlinkSkin";
-fx-padding: 0.166667em; /* 2 */
-fx-cursor: hand;
-fx-content-display: LEFT;
-fx-text-fill: -fx-text-background-color;
-fx-border-color: transparent;
-fx-border-width: 1px;
}
.hyperlink:visited {
-fx-text-fill: -fx-accent;
}
.hyperlink:focused {
-fx-color: -fx-focused-base;
-fx-border-color: -fx-focus-color;
-fx-border-style: dotted;
-fx-border-width: 1px;
}
.hyperlink:disabled {
-fx-opacity: -fx-disabled-opacity;
}
.hyperlink:hover {
-fx-underline: true;
}
.hyperlink:show-mnemonics .mnemonic-underline {
-fx-stroke: -fx-text-fill;
}
/*******************************************************************************
* *
* PopupMenu *
* *
******************************************************************************/
.context-menu {
-fx-skin: "com.sun.javafx.scene.control.skin.ContextMenuSkin";
-fx-background-color:
derive(-fx-color,-40%),
derive(-fx-color,100%),
linear-gradient(to bottom, derive(-fx-color,100%) 0%, derive(-fx-color,50%) 12%, derive(-fx-color,65%) 88%, derive(-fx-color,23%) 100%);
-fx-background-insets: 0, 1, 2;
-fx-background-radius: 0 6 6 6, 0 5 5 5, 0 4 4 4;
/* -fx-padding: 0.666667em 0.083333em 0.666667em 0.083333em; 8 1 8 1 */
-fx-padding: 0.333333em 0.083333em 0.666667em 0.083333em; /* 4 1 8 1 */
}
.context-menu .separator {
-fx-padding: 0.0em 0.333333em 0.0em 0.333333em; /* 0 4 0 4 */
}
.context-menu .scroll-arrow {
-fx-padding: 0.416667em 0.416667em 0.416667em 0.416667em; /* 5 */
-fx-background-color: transparent;
}
.context-menu .scroll-arrow:hover {
-fx-background: -fx-accent;
-fx-background-color: -fx-selection-bar;
-fx-text-fill: -fx-selection-bar-text;
}
.context-menu:show-mnemonics .mnemonic-underline {
-fx-stroke: -fx-text-fill;
}
/*******************************************************************************
* *
* Menu *
* *
******************************************************************************/
.menu {
/* -fx-skin: "com.sun.javafx.scene.control.skin.MenuSkin";*/
-fx-background-color: transparent;
-fx-padding: 0.333333em 0.666667em 0.333333em 0.666667em; /* 4 8 4 8 */
}
.menu:disabled {
-fx-opacity: -fx-disabled-opacity;
}
.menu:show-mnemonics .mnemonic-underline {
-fx-stroke: -fx-text-fill;
}
/* This hides the down arrow that would show on a menu placed in a menubar */
.menu-bar .menu .arrow {
-fx-padding: 0;
-fx-background-color: transparent;
-fx-shape: null;
}
.menu-bar .menu .arrow-button {
-fx-padding: 0;
}
.menu .arrow {
-fx-background-color: -fx-mark-color;
-fx-shape: "M0,-4L4,0L0,4Z";
-fx-scale-shape: false;
}
.menu:focused:showing .arrow, .menu:hover:showing .arrow, .menu:focused .arrow, .menu:showing .arrow {
-fx-background-color: white;
}
.menu-up-arrow {
-fx-padding: 0.666667em 0.416667em 0.0em 0.416667em; /* 8 5 0 5 */
-fx-background-color: derive(-fx-color,-2%);
-fx-shape: "M0 1 L1 1 L.5 0 Z";
-fx-effect: innershadow( two-pass-box , rgba(0,0,0,0.6) , 4, 0.0 , 0 , 1 );
}
.menu-down-arrow {
-fx-background-color: derive(-fx-color,-2%);
-fx-padding: 0.666667em 0.416667em 0.0em 0.416667em; /* 8 5 0 5 */
-fx-shape: "M0 0 L1 0 L.5 1 Z";
-fx-effect: innershadow( two-pass-box , rgba(0,0,0,0.6) , 4, 0.0 , 0 , 1 );
}
/*******************************************************************************
* *
* MenuBar *
* *
******************************************************************************/
/* Corresponding hex values for the color derivations used below are: *
* derive(-fx-base,-30%); #929292 *
* derive(-fx-base,-50%); #686868 *
* derive(-fx-base,-70%); #3e3e3e */
.menu-bar {
-fx-skin: "com.sun.javafx.scene.control.skin.MenuBarSkin";
-fx-padding: 0.0em 0.666667em 0.0em 0.666667em; /* 0 8 0 8 */
-fx-spacing: 0.166667em; /* 2 */
-fx-base: derive(#d0d0d0,-70%);
-fx-background-color: linear-gradient(to bottom, derive(-fx-color,50%), derive(-fx-color,-30%)), -fx-body-color;
-fx-background-insets: 0, 1 0 1 0;
-fx-background-radius: 0, 0 ;
}
/* Show nothing for background of normal menu button in a menu bar */
.menu-bar .menu-button {
-fx-background-radius: 0;
-fx-background-color: transparent;
-fx-background-insets: 0;
}
/* Change padding of menu buttons when in menu bar */
.menu-bar .menu-button .label {
-fx-padding: 0.333em 0.5em 0.333em 0.5em; /* 4 6 4 6*/
}
.menu-bar .menu-button:hover, .menu-bar .menu-button:focused, .menu-bar .menu-button:showing {
-fx-background: -fx-accent;
-fx-background-color: -fx-selection-bar;
-fx-text-fill: -fx-selection-bar-text;
}
/*.menu-bar .menu:focused:showing, .menu-bar .menu:showing, .menu-bar .menu:focused, .menu:focused:showing, .menu:showing, .menu:focused {*/
/*.menu-bar .menu-button:showing, .menu-button:showing {
-fx-background: -fx-accent;
-fx-background-color: -fx-selection-bar;
-fx-text-fill: -fx-selection-bar-text;
}*/
.menu-bar .menu-button:hover {
-fx-background: -fx-accent;
-fx-background-color: -fx-selection-bar;
-fx-text-fill: -fx-selection-bar-text;
}
.menu-bar:show-mnemonics .mnemonic-underline {
-fx-stroke: -fx-text-fill;
}
/*******************************************************************************
* *
* MenuItem *
* *
******************************************************************************/
.menu-item {
/* -fx-skin: "com.sun.javafx.scene.control.skin.MenuItemSkin";*/
-fx-background-color: transparent;
-fx-padding: 0.333333em 0.41777em 0.333333em 0.41777em; /* 4 5 4 5 */
}
.menu-item .left-container {
-fx-padding: 0.458em 0.791em 0.458em 0.458em;
}
.menu-item .graphic-container {
-fx-padding: 0em 0.333em 0em 0em;
}
.menu-item .label {
-fx-padding: 0em 0.5em 0em 0em;
-fx-text-fill: -fx-text-base-color;
}
.menu-item:disabled .label {
-fx-opacity: -fx-disabled-opacity;
}
.menu-item:focused {
-fx-background: -fx-accent;
-fx-background-color: -fx-selection-bar;
-fx-text-fill: -fx-selection-bar-text;
}
.menu-item:focused .label {
-fx-text-fill: white;
}
.menu-item .right-container {
-fx-padding: 0em 0em 0em 0.5em;
}
.menu-item:show-mnemonics .mnemonic-underline {
-fx-stroke: -fx-text-fill;
}
.radio-menu-item:checked .radio {
-fx-background-color: -fx-mark-color;
-fx-shape: "M0,5H2L4,8L8,0H10L5,10H3Z";
-fx-scale-shape: false;
}
.radio-menu-item:focused:checked .radio {
-fx-background-color: white;
}
.check-menu-item:checked .check {
-fx-background-color: -fx-mark-color;
-fx-shape: "M0,5H2L4,8L8,0H10L5,10H3Z";
-fx-scale-shape: false;
}
.check-menu-item:focused:checked .check {
-fx-background-color: white;
}
.menu .arrow {
-fx-padding: 0.458em 0.167em 0.458em 0.167em; /* 4.5 2 4.5 2 */
-fx-background-color: -fx-mark-color;
-fx-shape: "M0,-4L4,0L0,4Z";
-fx-scale-shape: false;
}
.menu:selected .arrow {
-fx-background-color: white;
}
/*.radio.selected {
-fx-background-color: -fx-mark-color;
-fx-padding: 0.666667em; 8
-fx-shape: "M7,3.5C7,5.433,5.433,7,3.5,7C1.567,7,0,5.433,0,3.5C0,1.567,1.63,0,3.5,0C5.433,0,7,1.567,7,3.5z";
-fx-scale-shape: false;
}*/
/*.check.checked {
-fx-background-color: -fx-mark-color;
-fx-padding: 0.666667em; 8
-fx-shape: "M0,5H2L4,8L8,0H10L5,10H3Z";
-fx-scale-shape: false;
}*/