|
3 | 3 | styles.css |
4 | 4 | */ |
5 | 5 | .root { |
6 | | - /* -fx-background-color: linear-gradient(to bottom, #8b0000, #ffd700);*/ |
7 | 6 | -fx-background-color: #ffffff, linear-gradient(to bottom, #8b0000, #ffd700); |
8 | 7 | -fx-background-insets: 0, 4; |
9 | 8 | -fx-background-radius: 0, 3; |
10 | 9 |
|
11 | 10 | } |
12 | | -/*.list-view{*/ |
13 | | -/* -fx-background-color: linear-gradient(to bottom, #8b0000, #ffd700);*/ |
14 | | -/*}*/ |
15 | 11 | .list-view { |
16 | | - -fx-background-color: transparent; /* Gör bakgrunden transparent */ |
| 12 | + -fx-background-color: transparent; /* Make background transparent */ |
17 | 13 | -fx-background-insets: 0; |
18 | 14 | -fx-padding: 0; |
19 | | - -fx-border-color: transparent; /* Ta bort kantlinje */ |
20 | | - /* ... (tidigare stilar) */ |
21 | | - -fx-background-radius: 5; /* Rundade hörn */ |
| 15 | + -fx-border-color: transparent; |
| 16 | + -fx-background-radius: 5; |
22 | 17 | -fx-border-radius: 5; |
23 | 18 | } |
24 | 19 | .list-cell{ |
25 | 20 | -fx-background-color: transparent; |
26 | 21 | -fx-border-color: transparent; |
27 | 22 | -fx-control-inner-background: transparent; |
28 | 23 | } |
29 | | -/* Ta bort bakgrund och kantlinje när musen är över */ |
| 24 | +/* Remove background and border on hover */ |
30 | 25 | .list-cell:filled:hover { |
31 | 26 | -fx-background-color: #e0e0e0; |
32 | 27 | -fx-text-fill: #000000; |
33 | 28 | } |
34 | | -/* ------------------------------------------------------------------- */ |
35 | | -/* 3. STYLA DEN MARKERADE CELLEN (SELECTED) */ |
36 | | -/* ------------------------------------------------------------------- */ |
| 29 | + |
37 | 30 | .list-cell:filled:selected { |
38 | | - /* En modern, accentuerad bakgrundsfärg (t.ex. blå) */ |
| 31 | + |
39 | 32 | -fx-background-color: #007bff; |
40 | | - -fx-text-fill: white; /* Vit text för hög kontrast */ |
| 33 | + -fx-text-fill: white; |
41 | 34 |
|
42 | | - /* Lägg till en liten inre skugga för djup */ |
43 | 35 | -fx-effect: dropshadow(three-pass-box, rgba(0,0,0,0.2), 5, 0, 0, 0); |
44 | 36 | } |
45 | 37 |
|
46 | | -/* Ta bort kantlinje när man är markerad */ |
47 | 38 | .list-cell:filled:selected .text { |
48 | 39 | -fx-font-weight: bold; |
49 | 40 | } |
|
0 commit comments