Skip to content

Commit fd65b72

Browse files
committed
Modify some UI, color and Add font
1 parent f46d9de commit fd65b72

31 files changed

+272
-263
lines changed

src/main/java/root/applications/Program.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package root.applications;
22

3+
import java.io.File;
4+
35
import javafx.application.Application;
46
import javafx.fxml.FXMLLoader;
57
import javafx.scene.Scene;
@@ -22,10 +24,10 @@ public void start(Stage primaryStage) throws Exception {
2224
// fxml load
2325
System.setProperty("prism.lcdtext", "false"); // ¾ÈƼ¾Ù¸®¾î½Ì (Font ºÎµå·´°Ô)
2426

25-
Font.loadFont(getClass().getResourceAsStream("/font/NanumGothic.ttf"), 10);
26-
Font.loadFont(getClass().getResourceAsStream("/font/NanumGothicBold.ttf"), 10);
27-
Font.loadFont(getClass().getResourceAsStream("/font/NanumGothicLight.ttf"), 10);
28-
Font.loadFont(getClass().getResourceAsStream("/font/NanumGothicUltraLight.ttf"), 10);
27+
String[] fontFiles = new File("./src/main/resources/font").list();
28+
for(String font : fontFiles) {
29+
Font.loadFont(getClass().getResourceAsStream("./src/main/resources/font/" + font), 10);
30+
}
2931

3032
FXMLLoader homeloader = new FXMLLoader();
3133
homeloader.setLocation(getClass().getResource("/fxml/Home.fxml"));

src/main/resources/css/javaFx.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
/* Basic Font */
1616
.basic-font {
17-
-fx-font-family: NanumGothic;
17+
-fx-font-family: NanumGothic, Roboto, NotoSansKR;
1818
}
1919

2020
.font-black {
@@ -176,7 +176,7 @@
176176

177177

178178
* {
179-
-fx-primary-color: #007acc;
179+
-fx-primary-color: #01077d; /* #007acc */
180180
-fx-secondary-color: #4B6EAF;
181181
-fx-light-grey-color: #d1d1d1;
182182

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/* TableView */
2+
.table-view:focused {
3+
-fx-focus-color: transparent;
4+
-fx-faint-focus-color: transparent;
5+
}
6+
7+
.table-view .column-header-background {
8+
-fx-background-color: linear-gradient(to bottom, #1dbbdd44 80%, #93f9b944);
9+
-fx-background-radius: 7px 7px 0px 0px;
10+
-fx-padding: 0 0 3px 0;
11+
}
12+
13+
.table-view .column-header {
14+
-fx-background-color: transparent;
15+
}
16+
17+
.table-view .table-cell{
18+
-fx-border-color: #ddd;
19+
-fx-border-width: 0.2px;
20+
-fx-padding: 3 10 3 10px;
21+
}
22+
23+
.table-row-cell: hover {
24+
-fx-background-color: #93f9b911;
25+
-fx-text-background-color: black;
26+
}
27+
28+
.table-row-cell: odd{
29+
-fx-background-color: #93f9b911;
30+
-fx-background-insets: 0, 0 0 1 0;
31+
-fx-padding: 0.0em;
32+
}
33+
34+
.table-row-cell: even{
35+
-fx-background-color: #1dbbdd11;
36+
-fx-background-insets: 0, 0 0 1 0;
37+
-fx-padding: 0.0em;
38+
}
39+
40+
.table-row-cell:selected {
41+
-fx-background-color: #238eccb0;
42+
-fx-font-weight: bold;
43+
-fx-text-background-color: black;
44+
}
45+
46+
.table-view .show-hide-columns-button {
47+
-fx-background-color: linear-gradient(to bottom, #1dbbdd44 80%, #93f9b944);
48+
-fx-background-insets: 0 0 0 2;
49+
}
50+
51+
.table-view .virtual-flow .scroll-bar:vertical,
52+
.table-view .virtual-flow .scroll-bar:vertical .track,
53+
.table-view .virtual-flow .scroll-bar:vertical .track-background,
54+
.table-view .virtual-flow .scroll-bar:horizontal,
55+
.table-view .virtual-flow .scroll-bar:horizontal .track,
56+
.table-view .virtual-flow .scroll-bar:horizontal .track-background {
57+
-fx-background-color: transparent;
58+
}
59+
60+
.table-view .virtual-flow .scroll-bar .increment-button,
61+
.table-view .virtual-flow .scroll-bar .decrement-button {
62+
-fx-opacity: 0;
63+
-fx-padding: 2;
64+
}
65+
66+
.table-view .virtual-flow .scroll-bar:vertical .thumb {
67+
-fx-background-color: linear-gradient(to bottom, #1dbbdd44 80%, #93f9b944);
68+
}
69+
.table-view .virtual-flow .scroll-bar:horizontal .thumb {
70+
-fx-background-color: linear-gradient(to right, #1dbbdd44 80%, #93f9b944);
71+
}
4.83 MB
Binary file not shown.
4.68 MB
Binary file not shown.
4.5 MB
Binary file not shown.
4.55 MB
Binary file not shown.
4.52 MB
Binary file not shown.
4.18 MB
Binary file not shown.
125 KB
Binary file not shown.

0 commit comments

Comments
 (0)