diff --git a/flatlaf-core/src/main/java/com/formdev/flatlaf/FlatLaf.java b/flatlaf-core/src/main/java/com/formdev/flatlaf/FlatLaf.java index 6345724a..25e7bb23 100644 --- a/flatlaf-core/src/main/java/com/formdev/flatlaf/FlatLaf.java +++ b/flatlaf-core/src/main/java/com/formdev/flatlaf/FlatLaf.java @@ -140,6 +140,7 @@ public abstract class FlatLaf if( key instanceof String && ((String)key).endsWith( ".font" ) ) defaults.put( key, uiFont ); } + defaults.put( "MenuItem.acceleratorFont", uiFont ); } /** diff --git a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties index dfc6b8c7..8da58e09 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatDarkLaf.properties @@ -23,6 +23,7 @@ @background=3c3f41 @foreground=bbbbbb @selectionBackground=4B6EAF +@selectionForeground=@foreground @disabledText=777777 @textComponentBackground=45494A @icon=adadad @@ -38,10 +39,12 @@ *.inactiveBackground=@background *.inactiveForeground=@foreground *.selectionBackground=@selectionBackground -*.selectionForeground=@foreground +*.selectionForeground=@selectionForeground *.disabledBackground=@background *.disabledForeground=@disabledText *.disabledText=@disabledText +*.acceleratorForeground=bbbbbb +*.acceleratorSelectionForeground=@selectionForeground #---- system ---- diff --git a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties index db84db4a..77abd880 100644 --- a/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties +++ b/flatlaf-core/src/main/resources/com/formdev/flatlaf/FlatLightLaf.properties @@ -23,6 +23,7 @@ @background=f2f2f2 @foreground=000000 @selectionBackground=4A6EB7 +@selectionForeground=ffffff @disabledText=999999 @textComponentBackground=ffffff @icon=afafaf @@ -38,10 +39,12 @@ *.inactiveBackground=@background *.inactiveForeground=777777 *.selectionBackground=@selectionBackground -*.selectionForeground=ffffff +*.selectionForeground=@selectionForeground *.disabledBackground=@background *.disabledForeground=@disabledText *.disabledText=@disabledText +*.acceleratorForeground=505050 +*.acceleratorSelectionForeground=@selectionForeground #---- system ---- diff --git a/flatlaf-core/src/test/resources/com/formdev/flatlaf/FlatTestLaf.properties b/flatlaf-core/src/test/resources/com/formdev/flatlaf/FlatTestLaf.properties index c5ca64ce..2b528ec0 100644 --- a/flatlaf-core/src/test/resources/com/formdev/flatlaf/FlatTestLaf.properties +++ b/flatlaf-core/src/test/resources/com/formdev/flatlaf/FlatTestLaf.properties @@ -36,6 +36,8 @@ *.disabledBackground=e0e0e0 *.disabledForeground=000088 *.disabledText=000088 +*.acceleratorForeground=ff8888 +*.acceleratorSelectionForeground=ffffff #---- Button ----