-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAppStyles.java
More file actions
26 lines (22 loc) · 985 Bytes
/
Copy pathAppStyles.java
File metadata and controls
26 lines (22 loc) · 985 Bytes
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
import java.awt.*;
public class AppStyles {
// Colors
public static final Color DARK_RED = new Color(220, 53, 69);
public static final Color BACKGROUND_COLOR = new Color(246, 247, 250);
public static final Color SELECTED_BACKGROUND_COLOR = new Color(230, 244, 255);
public static final Color ACCENT_COLOR = new Color(29, 155, 240);
public static final Color SECONDARY_TEXT_COLOR = new Color(108, 117, 125);
public static final Color SIDEBAR_COLOR = new Color(24, 28, 36);
public static final Color SIDEBAR_HOVER = new Color(40, 44, 52);
public static final Color TEXT_COLOR = new Color(230, 230, 230);
private static Font appFont = null;
public static void setAppFont(Font font) {
appFont = font;
}
public static Font getAppFont(int style, float size) {
if (appFont != null) {
return appFont.deriveFont(style, size);
}
return new Font(Font.SANS_SERIF, style, Math.round(size));
}
}