mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
laf.dark flag added to UI defaults
This commit is contained in:
@@ -344,6 +344,10 @@ public abstract class FlatLaf
|
||||
public UIDefaults getDefaults() {
|
||||
UIDefaults defaults = super.getDefaults();
|
||||
|
||||
// add flag that indicates whether the LaF is light or dark
|
||||
// (can be queried without using FlatLaf API)
|
||||
defaults.put( "laf.dark", isDark() );
|
||||
|
||||
// add resource bundle for localized texts
|
||||
defaults.addResourceBundle( "com.formdev.flatlaf.resources.Bundle" );
|
||||
|
||||
|
||||
@@ -1272,6 +1272,7 @@ infoText #bbbbbb javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
#---- laf ----
|
||||
|
||||
laf.dark true
|
||||
laf.scaleFactor [active] 1.0
|
||||
|
||||
|
||||
|
||||
@@ -1277,6 +1277,7 @@ infoText #000000 javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
#---- laf ----
|
||||
|
||||
laf.dark false
|
||||
laf.scaleFactor [active] 1.0
|
||||
|
||||
|
||||
|
||||
@@ -1269,6 +1269,7 @@ infoText #ff0000 javax.swing.plaf.ColorUIResource [UI]
|
||||
|
||||
#---- laf ----
|
||||
|
||||
laf.dark false
|
||||
laf.scaleFactor [active] 1.0
|
||||
|
||||
|
||||
|
||||
@@ -913,6 +913,7 @@ inactiveCaptionBorder
|
||||
inactiveCaptionText
|
||||
info
|
||||
infoText
|
||||
laf.dark
|
||||
laf.scaleFactor
|
||||
menu
|
||||
menuText
|
||||
|
||||
Reference in New Issue
Block a user