Skip to content

Commit e2ada8d

Browse files
committed
Add button UI hover/select styling
1 parent 19dfd47 commit e2ada8d

File tree

1 file changed

+30
-13
lines changed

1 file changed

+30
-13
lines changed

src/main/resources/styles/style.css

Lines changed: 30 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,32 @@
99
-fx-text-fill: white;
1010
-fx-font-size: 14px;
1111
}
12+
.button:hover {
13+
-fx-background-color: #003a00;
14+
}
15+
16+
.toggle-button {
17+
-fx-background-color: #DDDDDD;
18+
-fx-text-fill: black;
19+
}
20+
.toggle-button:hover {
21+
-fx-background-color: #CCF0CC;
22+
}
23+
.toggle-button:selected {
24+
-fx-background-color: #AAAAAA;
25+
}
26+
.toggle-button:hover:selected {
27+
-fx-background-color: #99C099;
28+
}
1229

1330
.new-component {
14-
-fx-background-color: #DDD;
1531
-fx-text-fill: #000;
1632
-fx-min-height: 48px;
1733
-fx-max-width: 200px;
1834
-fx-padding: 8 8 8 8;
1935
-fx-background-radius: 8;
2036
}
2137

22-
.new-component:hover {
23-
-fx-background-color: #CEC;
24-
}
25-
2638
.props-menu {
2739
-fx-background-color: #396;
2840
}
@@ -48,14 +60,20 @@
4860
.property-list-validator {
4961
}
5062

63+
.property-list-validator-button {
64+
-fx-background-color: #D0F8FF;
65+
-fx-min-width: 36px;
66+
}
67+
.property-list-validator-button:hover {
68+
-fx-background-color: #75b1ff;
69+
}
5170
.property-list-validator-button:selected {
5271
-fx-background-color: #06F;
5372
-fx-text-fill: white;
5473
}
55-
56-
.property-list-validator-button {
57-
-fx-background-color: #D0F8FF;
58-
-fx-min-width: 36px;
74+
.property-list-validator-button:hover:selected {
75+
-fx-background-color: #06F;
76+
-fx-text-fill: white;
5977
}
6078

6179
.property-list-validator-dropdown {
@@ -67,7 +85,7 @@
6785

6886
}
6987

70-
.button-top-left {;
88+
.button-top-left {
7189
-fx-background-radius: 8 0 0 0;
7290
}
7391

@@ -166,7 +184,6 @@
166184
}
167185

168186
.toolbar-button {
169-
-fx-background-color: #E0E8E0;
170187
-fx-padding: 4;
171188
}
172189

@@ -202,7 +219,7 @@
202219

203220
/* Selected tab */
204221
.tab-pane .tab:selected {
205-
-fx-background-color: #EEE;
222+
-fx-background-color: #DDD;
206223
-fx-text-fill: #000000;
207224
-fx-border-width: 1 1 5 1;
208225
}
@@ -275,7 +292,7 @@
275292

276293
/* Hover effect */
277294
.titled-pane > .title:hover {
278-
-fx-background-color: #EEE; /* Tailwind gray-100 */
295+
-fx-background-color: #DDD; /* Tailwind gray-100 */
279296
}
280297

281298
/* Open panel */

0 commit comments

Comments
 (0)