forked from OpenIntegrationEngine/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMirthTheme.java
More file actions
64 lines (54 loc) · 2.19 KB
/
MirthTheme.java
File metadata and controls
64 lines (54 loc) · 2.19 KB
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
/*
* Copyright (c) Mirth Corporation. All rights reserved.
*
* http://www.mirthcorp.com
*
* The software in this package is published under the terms of the MPL license a copy of which has
* been included with this distribution in the LICENSE.txt file.
*/
package com.mirth.connect.client.ui;
import java.awt.Color;
import javax.swing.UIDefaults;
import javax.swing.plaf.ColorUIResource;
import com.jgoodies.looks.plastic.PlasticScrollBarUI;
import com.jgoodies.looks.plastic.theme.SkyBluer;
public class MirthTheme extends SkyBluer {
public String getName() {
return "Mirth";
}
protected ColorUIResource getPrimary1() {
return new ColorUIResource(Color.DARK_GRAY);
}
protected ColorUIResource getPrimary2() {
return new ColorUIResource(0x9EB1C9);
}
protected ColorUIResource getPrimary3() {
return new ColorUIResource(0xc0d2dc);
}
/*
* protected ColorUIResource getSecondary1() { return Colors.GRAY_MEDIUMDARK; }
*
* protected ColorUIResource getSecondary2() { return Colors.GRAY_LIGHT; }
*
* protected ColorUIResource getSecondary3() { return Colors.GRAY_LIGHTER; }
*
* public ColorUIResource getMenuItemSelectedBackground() { return getPrimary2(); }
*
* public ColorUIResource getMenuItemSelectedForeground() { return getWhite(); }
*
* public ColorUIResource getMenuSelectedBackground() { return getSecondary2(); }
*
* public ColorUIResource getFocusColor() { return PlasticLookAndFeel.useHighContrastFocusColors
* ? Colors.YELLOW_FOCUS : super.getFocusColor(); }
*/
/*
* TODO: The following two lines are likely an improvement. However, they require a rewrite of
* the PlasticInternalFrameTitlePanel. public ColorUIResource getWindowTitleBackground() {
* return getPrimary1(); } public ColorUIResource getWindowTitleForeground() { return WHITE; }
*/
public void addCustomEntriesToTable(UIDefaults table) {
super.addCustomEntriesToTable(table);
Object[] uiDefaults = { PlasticScrollBarUI.MAX_BUMPS_WIDTH_KEY, 30, };
table.putDefaults(uiDefaults);
}
}