tweaking the flatlaf props

This commit is contained in:
Ben Fry
2022-04-30 10:09:29 -04:00
parent cddf9d2702
commit 852e2495f9
3 changed files with 7 additions and 9 deletions
+1 -1
View File
@@ -140,7 +140,7 @@
<!-- copy languages files -->
<include name="processing/app/languages/*.properties" />
<!-- FlatLaf.properties and any others -->
<include name="processing/app/ui/*.properties" />
<include name="processing/app/laf/*.properties" />
</fileset>
</copy>
@@ -1 +1,2 @@
defaultFont = 14 "Processing Sans Pro", "Open Sans", "Noto Sans", Roboto, Arial
defaultFont = 14 "Processing Sans Pro", "Open Sans", "Noto Sans", Roboto, Arial
ScrollBar.width = 24
@@ -120,16 +120,13 @@ public class DefaultPlatform {
UIManager.put("ScrollBar.minimumThumbSize", new Dimension(16, 24));
*/
// dummy font call so that it's registered for the LaF
// dummy font call so that it's registered for FlatLaf
Toolkit.getSansFont(12, Font.PLAIN);
FlatLaf.registerCustomDefaultsSource("processing.app.ui");
//if ("dark".equals(Theme.get("laf.mode"))) {
//UIManager.setLookAndFeel(new FlatDarkLaf());
//} else {
//
FlatLaf.registerCustomDefaultsSource("processing.app.laf");
UIManager.setLookAndFeel(new FlatLightLaf());
//}
UIManager.put("ScrollBar.width", 16);
//UIManager.put("ScrollBar.width", 16); // moved to properties
} else {
UIManager.setLookAndFeel(laf);