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
|
.region-based {
/* 预定义变量 */
-RED : #ff6058;
-YELLOW : #ffbc35;
-GREEN : #00c844;
-GRAY : #535353;
-DARK_GRAY: #343535;
}
.region-based .circle {
-fx-stroke-width: 0.5px;
}
.region-based:close .circle,
.region-based:close:hovered .circle {
-fx-fill : -RED;
/*derive(指定颜色, 在指定颜色基础上加深X%)*/
-fx-stroke: derive(-RED, -10%);
}
.region-based:close:pressed .circle {
-fx-fill : derive(-RED, -20%);
-fx-stroke: derive(-RED, -30%);
}
.region-based:minimize .circle,
.region-based:minimize:hovered .circle {
-fx-fill : -YELLOW;
-fx-stroke: derive(-YELLOW, -5%);
}
.region-based:minimize:pressed .circle {
-fx-fill : -YELLOW;
-fx-stroke: derive(-YELLOW, -10%);
}
.region-based:zoom .circle,
.region-based:zoom:hovered .circle {
-fx-fill : -GREEN;
-fx-stroke: derive(-GREEN, -10%);
}
.region-based:zoom:pressed .circle {
-fx-fill : derive(-GREEN, -20%);
-fx-stroke: derive(-GREEN, -30%);
}
.region-based:disabled:close .circle,
.region-based:disabled:minimize .circle,
.region-based:disabled:zoom .circle {
-fx-fill : -GRAY;
-fx-stroke: transparent;
}
.region-based:close .symbol,
.region-based:minimize .symbol,
.region-based:zoom .symbol {
-fx-background-color: transparent;
}
.region-based:hovered:close .symbol {
-fx-background-color: -DARK_GRAY;
-fx-border-color : -DARK_GRAY;
-fx-scale-shape : false;
-fx-shape : "M6.001,5.429l2.554,-2.555l0.571,0.571l-2.555,2.554l2.55,2.55l-0.572,0.572l-2.55,-2.55l-2.554,2.555l-0.571,-0.571l2.555,-2.554l-2.55,-2.55l0.572,-0.572l2.55,2.55Z";
}
.region-based:hovered:minimize .symbol {
-fx-background-color: -DARK_GRAY;
-fx-scale-shape : false;
-fx-shape : "M2.0,5.5l8,0l0,1l-8,0l0,-1Z";
}
.region-based:hovered:zoom .symbol {
-fx-background-color: -DARK_GRAY;
-fx-scale-shape : false;
-fx-shape : "M2.696,2.582l4.545,0.656l-3.889,3.889l-0.656,-4.545ZM9.533,9.418l-0.656,-4.545l-3.889,3.889l4.545,0.656Z";
}
.region-based:hovered:zoom:state .symbol {
-fx-background-color: -DARK_GRAY;
-fx-scale-shape : false;
-fx-shape : "M6.225,6.111L10.77,6.767L6.881,10.656L6.225,6.111ZM6.004,5.889L5.348,1.344L1.459,5.233L6.004,5.889Z";
}
|