@@ -469,6 +469,9 @@ protected void initComponentDefaults(UIDefaults table) {
469469table .put ("TextArea.selectionForeground" , theme .getSelectionForegroundTextField ());
470470table .put ("TextArea.foreground" , theme .getTextColor ());
471471table .put ("TextArea.font" , theme .getFontBold ());
472+ table .put ("TextArea.caretForeground" , theme .getTextColor ());
473+
474+ table .put ("TextPane.caretForeground" , theme .getTextColor ());
472475
473476table .put ("ToggleButton.border" , BorderFactory .createEmptyBorder ());
474477table .put ("ToggleButton.font" , theme .getFontRegular ());
@@ -536,6 +539,7 @@ protected void initComponentDefaults(UIDefaults table) {
536539table .put ("EditorPane.selectionBackground" , theme .getSelectionBackgroundTextField ());
537540table .put ("EditorPane.inactiveForeground" , theme .getSelectionForegroundTextField ());
538541table .put ("EditorPane.font" , theme .getFontRegular ());
542+ table .put ("EditorPane.caretForeground" , theme .getTextColor ());
539543table .put ("EditorPane.focusInputMap" , multilineInputMap );
540544
541545table .put ("Separator.background" , theme .getBackgroundSeparator ());
@@ -558,7 +562,8 @@ protected void initComponentDefaults(UIDefaults table) {
558562table .put ("TextField[Line].activeColor" , theme .getActiveColorLineTextField ());
559563table .put ("TextField.border" , theme .getBorderTextField ());
560564table .put ("TextField.focusInputMap" , fieldInputMap );
561-
565+ table .put ("TextField.caretForeground" , theme .getTextColor ());
566+
562567table .put ("PasswordField.background" , theme .getBackgroundTextField ());
563568table .put ("PasswordField.foreground" , theme .getTextColor ());
564569table .put ("PasswordField.disabledBackground" , theme .getDisabledBackgroudnTextField ());
@@ -572,7 +577,8 @@ protected void initComponentDefaults(UIDefaults table) {
572577table .put ("PasswordField.border" , theme .getBorderTextField ());
573578table .put ("PasswordField.echoChar" , theme .getEchoCharPasswordField ());
574579table .put ("PasswordField.focusInputMap" , fieldInputMap );
575-
580+ table .put ("PasswordField.caretForeground" , theme .getTextColor ());
581+
576582table .put ("TitledBorder.border" , theme .getBorderTitledBorder ());
577583table .put ("TitledBorder.font" , theme .getFontMedium ());
578584table .put ("TitledBorder.titleColor" , theme .getColorTextTitledBorder ());
@@ -597,6 +603,7 @@ protected void initComponentDefaults(UIDefaults table) {
597603table .put ("FormattedTextField.selectionBackground" , theme .getSelectionBackgroundTextField ());
598604table .put ("FormattedTextField.selectionForeground" , theme .getSelectionForegroundTextField ());
599605table .put ("FormattedTextField.border" , theme .getBorderTextField ());
606+ table .put ("FormattedTextField.caretForeground" , theme .getTextColor ());
600607
601608table .put ("List.background" , theme .getBackgroundPrimary ());
602609table .put ("List.foreground" , theme .getTextColor ());
0 commit comments