more tweaks to LAF and a few notes

This commit is contained in:
Ben Fry
2022-04-30 10:22:26 -04:00
parent cb62225929
commit b565768626
2 changed files with 24 additions and 13 deletions
+20 -12
View File
@@ -1,18 +1,26 @@
# TODO sort out how to import this via the language properties
# (probably needs to be set programmatically instead)
defaultFont = 14 "Processing Sans Pro", "Open Sans", "Noto Sans", Roboto, Arial
ScrollBar.width = 24
[mac]@background = #1e1e1e
[mac]@foreground = #e0e0e0
[mac]@accentColor = #107aff
[mac]@accentFocusColor = #176896
# The default is 8, which creates tiny nubby scroll bars
ScrollBar.width = 16
[mac]Component.arrowType = chevron
[mac]CheckBox.icon.style = filled
[mac]CheckBox.icon[filled].selectedBorderColor = @accentColor
[mac]CheckBox.icon[filled].selectedBackground = @accentColor
[mac]CheckBox.icon[filled].checkmarkColor = @foreground
# Better matched for macOS dark mode (but using everywhere)
# https://github.com/JFormDesigner/FlatLaf/issues/497
[mac]RadioButton.icon.style = filled
[mac]RadioButton.icon[filled].centerDiameter = 6
[dark]@background = #1e1e1e
[dark]@foreground = #e0e0e0
[dark]@accentColor = #107aff
[dark]@accentFocusColor = #176896
[dark]Component.arrowType = chevron
[dark]CheckBox.icon.style = filled
[dark]CheckBox.icon[filled].selectedBorderColor = @accentColor
[dark]CheckBox.icon[filled].selectedBackground = @accentColor
[dark]CheckBox.icon[filled].checkmarkColor = @foreground
[dark]RadioButton.icon.style = filled
[dark]RadioButton.icon[filled].centerDiameter = 6
+4 -1
View File
@@ -24,12 +24,15 @@ X add manager.panel constants for colors
X status panel not updating in updateTheme()
X StatusPanel.getBodyStyle() has hard-coded fonts/sizes
X accent color and light/dark mode into the theme, and use with flatlaf
_ rearrange item order in PreferencesFrame
_ remove extra space between prefs lines
_ monochrome icon for foundation
_ icons for contrib manager list entries (green/orange PNGs won't do)
_ remove ability to rearrange columns in contrib manager
_ update lib/theme.txt to clean up current Frankenstein status
_
_ how to override flatlaf for components (search, buttons, dropdown menu) in manager
_ override flatlaf for components (search, buttons, dropdown menu) in manager
_ Color Selector buttons misaligned