Skip to content

Commit a29abdc

Browse files
author
atarw
committed
fixed textfield
1 parent b081bda commit a29abdc

File tree

7 files changed

+101
-101
lines changed

7 files changed

+101
-101
lines changed

.idea/workspace.xml

Lines changed: 50 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/MaterialUISwingDemo.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import mdlaf.MaterialLookAndFeel;
22
import mdlaf.animation.MaterialUIMovement;
33
import mdlaf.utils.MaterialColors;
4-
import mdlaf.utils.MaterialImages;
54

65
import javax.swing.AbstractAction;
76
import javax.swing.Action;
8-
import javax.swing.ImageIcon;
97
import javax.swing.JButton;
108
import javax.swing.JCheckBox;
119
import javax.swing.JCheckBoxMenuItem;

src/main/java/mdlaf/MaterialLookAndFeel.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ protected void initComponentDefaults (UIDefaults table) {
257257
table.put ("TextArea.border", BorderFactory.createEmptyBorder ());
258258
table.put ("TextArea.foreground", Color.BLACK);
259259

260+
table.put ("TextField.inactiveForeground", MaterialColors.GRAY_800);
261+
table.put ("TextField.inactiveBackground", MaterialColors.GRAY_200);
262+
table.put ("TextField.selectionBackground", MaterialColors.LIGHT_BLUE_400);
263+
table.put ("TextField.selectionForeground", Color.BLACK);
264+
260265
table.put ("ToggleButton.border", BorderFactory.createEmptyBorder ());
261266
table.put ("ToggleButton.font", MaterialFonts.REGULAR);
262267
table.put ("ToggleButton.background", Color.WHITE);

0 commit comments

Comments
 (0)