mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
tweaking the flatlaf props
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user