@@ -469,6 +469,9 @@ protected void initComponentDefaults(UIDefaults table) {
469
469
table .put ("TextArea.selectionForeground" , theme .getSelectionForegroundTextField ());
470
470
table .put ("TextArea.foreground" , theme .getTextColor ());
471
471
table .put ("TextArea.font" , theme .getFontBold ());
472
+ table .put ("TextArea.caretForeground" , theme .getTextColor ());
473
+
474
+ table .put ("TextPane.caretForeground" , theme .getTextColor ());
472
475
473
476
table .put ("ToggleButton.border" , BorderFactory .createEmptyBorder ());
474
477
table .put ("ToggleButton.font" , theme .getFontRegular ());
@@ -536,6 +539,7 @@ protected void initComponentDefaults(UIDefaults table) {
536
539
table .put ("EditorPane.selectionBackground" , theme .getSelectionBackgroundTextField ());
537
540
table .put ("EditorPane.inactiveForeground" , theme .getSelectionForegroundTextField ());
538
541
table .put ("EditorPane.font" , theme .getFontRegular ());
542
+ table .put ("EditorPane.caretForeground" , theme .getTextColor ());
539
543
table .put ("EditorPane.focusInputMap" , multilineInputMap );
540
544
541
545
table .put ("Separator.background" , theme .getBackgroundSeparator ());
@@ -558,7 +562,8 @@ protected void initComponentDefaults(UIDefaults table) {
558
562
table .put ("TextField[Line].activeColor" , theme .getActiveColorLineTextField ());
559
563
table .put ("TextField.border" , theme .getBorderTextField ());
560
564
table .put ("TextField.focusInputMap" , fieldInputMap );
561
-
565
+ table .put ("TextField.caretForeground" , theme .getTextColor ());
566
+
562
567
table .put ("PasswordField.background" , theme .getBackgroundTextField ());
563
568
table .put ("PasswordField.foreground" , theme .getTextColor ());
564
569
table .put ("PasswordField.disabledBackground" , theme .getDisabledBackgroudnTextField ());
@@ -572,7 +577,8 @@ protected void initComponentDefaults(UIDefaults table) {
572
577
table .put ("PasswordField.border" , theme .getBorderTextField ());
573
578
table .put ("PasswordField.echoChar" , theme .getEchoCharPasswordField ());
574
579
table .put ("PasswordField.focusInputMap" , fieldInputMap );
575
-
580
+ table .put ("PasswordField.caretForeground" , theme .getTextColor ());
581
+
576
582
table .put ("TitledBorder.border" , theme .getBorderTitledBorder ());
577
583
table .put ("TitledBorder.font" , theme .getFontMedium ());
578
584
table .put ("TitledBorder.titleColor" , theme .getColorTextTitledBorder ());
@@ -597,6 +603,7 @@ protected void initComponentDefaults(UIDefaults table) {
597
603
table .put ("FormattedTextField.selectionBackground" , theme .getSelectionBackgroundTextField ());
598
604
table .put ("FormattedTextField.selectionForeground" , theme .getSelectionForegroundTextField ());
599
605
table .put ("FormattedTextField.border" , theme .getBorderTextField ());
606
+ table .put ("FormattedTextField.caretForeground" , theme .getTextColor ());
600
607
601
608
table .put ("List.background" , theme .getBackgroundPrimary ());
602
609
table .put ("List.foreground" , theme .getTextColor ());
0 commit comments