Commit Graph

  • a42c413705 Testing: added modular app Karl Tauber 2021-11-12 17:28:04 +01:00
  • d59d38dc7c added method FlatLaf.registerCustomDefaultsSource(URL packageUrl) for JPMS (issue #325) Karl Tauber 2021-11-12 17:00:26 +01:00
  • 77582be7fd Demo: fixed exception if hint is shown and switching to a non-FlatLaf L&F Karl Tauber 2021-11-12 11:39:33 +01:00
  • 0cb50355b7 added hint to FlatLaf.registerCustomDefaultsSource() javadoc that the package must be opened in module-info.java (issue #325) Karl Tauber 2021-11-12 11:16:53 +01:00
  • a2d66e91ff Extras: FlatSVGIcon and FlatSVGUtils: use soft cache for SVG diagrams to allow freeing memory if no longer used Karl Tauber 2021-11-12 10:49:02 +01:00
  • ccdb981917 refactored private class UIDefaultsLoader.Cache to public class SoftCache and implement the Map interface Karl Tauber 2021-11-12 10:12:34 +01:00
  • d80b581ace Extras: FlatSVGUtils: support loading SVG from URL (for JPMS) (issue #325) Karl Tauber 2021-11-12 09:28:24 +01:00
  • 53efb6711d Extras: FlatSVGIcon: support loading SVG from URL (for JPMS), URI, File or InputStream (issues #419 and #325) Karl Tauber 2021-11-11 23:07:46 +01:00
  • 1de6e875f9 Merge branch 'release-1.6.2' into main Karl Tauber 2021-11-11 13:05:33 +01:00
  • 95a15c3cf8 release 1.6.2 1.6.2 Karl Tauber 2021-11-11 12:45:50 +01:00
  • ab320684f5 Native window decorations: fixed layout loop (issue #420) Karl Tauber 2021-11-11 12:35:51 +01:00
  • a284b69a1e FileChooser: workaround for crash on Windows with Java 17 32bit (issue #403) Karl Tauber 2021-11-11 12:35:16 +01:00
  • b590f41254 Linux: fixed NPE when using java.awt.TrayIcon (issue #405) Karl Tauber 2021-11-11 12:31:14 +01:00
  • a97076ead5 ComboBox: fix NPE in CellPaddingBorder.install() (issue #408) Karl Tauber 2021-11-11 12:30:10 +01:00
  • 0b6df8be1c ComboBox (not editable): fixed background painted outside of border if round edges are enabled (similar to issue #382; regression since fixing #330 in FlatLaf 1.4) Karl Tauber 2021-11-11 12:26:09 +01:00
  • 150bab0b57 Table: do not select text in cell editor when it gets focus (when JTable.surrendersFocusOnKeystroke is true) and TextComponent.selectAllOnFocusPolicy is once (the default) or always (issue #395) Karl Tauber 2021-11-11 12:19:58 +01:00
  • d3355eda65 Native window decorations: fixed layout loop (issue #420) Karl Tauber 2021-11-11 11:49:39 +01:00
  • fbf10e553d Native window decorations: updated DLLs (issues #397 and #407) Karl Tauber 2021-11-09 18:35:55 +01:00
  • fb37be5734 Native window decorations: show (system) tooltips for minimize/maximize/close buttons on Windows 10 and for minimize/close buttons on Windows 11 (issues #397 and #407) Karl Tauber 2021-11-09 18:21:17 +01:00
  • 54e6cefa67 Native window decorations: show Windows 11 snap layouts menu when hovering the mouse over the maximize button (issues #397 and #407) Karl Tauber 2021-11-09 15:36:21 +01:00
  • 33b25c1129 FileChooser: updated CHANGELOG.md for previous commit (issue #403) Karl Tauber 2021-11-06 00:34:06 +01:00
  • 44d8545c09 FileChooser: workaround for crash on Windows with Java 17 32bit (issue #403) Karl Tauber 2021-11-06 00:03:17 +01:00
  • 19483b6464 Styling: fixed IllegalAccessException when using component specific style [style]Spinner = foreground: #f00 and spinner labels are painted (caused by private subclass of JLabel where getForeground() is overridden) styling-types Karl Tauber 2021-11-05 17:02:08 +01:00
  • 1f6a23f909 Styling: support defining component type specific styles, which are applied to all components of that type Karl Tauber 2021-11-05 15:27:31 +01:00
  • 7a2808243c Typography: Demo: make typography/fonts visible in "screen shot" mode; hide password fields and labels Karl Tauber 2021-11-04 14:54:01 +01:00
  • 1be84de26b Typography: added thin/light/semibold fonts to demo Karl Tauber 2021-11-04 12:48:46 +01:00
  • 78e37f7ab4 Typography: since there is no thin font available on Windows, use "Segoe UI Light" (which looks thin IMHO) for thin.font and "Segoe UI Semilight" for light.font Karl Tauber 2021-11-04 12:09:58 +01:00
  • e49459fd8b UIDefaultsLoader: do not add properties with empty values to UI defaults (value was an empty string) Karl Tauber 2021-11-04 00:21:57 +01:00
  • 52f6e7fc32 Theme Editor: Switches" preview: - zoom 2x, 3x and 4x icons via toolbar - hide indeterminate state for checkboxes via toolbar Karl Tauber 2021-11-04 00:17:24 +01:00
  • c8ea61dc79 Merge PR #414: CheckBox and RadioButton improvements Karl Tauber 2021-11-04 00:08:07 +01:00
  • 16a769ea61 Linux: fixed NPE when using java.awt.TrayIcon (issue #405) Karl Tauber 2021-11-03 23:37:37 +01:00
  • 6b880af447 MenuItem: paint the selected icon when the item is selected Emmanuel Bourg 2021-11-03 18:04:01 +01:00
  • 475781db91 Extras: FlatDesktop: fixed javadoc issues Karl Tauber 2021-11-03 15:22:41 +01:00
  • 4dae082cd5 fixed unit tests, which fail now on GitHub Actions, but did work a few days ago... Karl Tauber 2021-11-03 15:21:52 +01:00
  • 57405b2f56 CheckBox and RadioButton: derive CheckBox.icon.disabledCheckmarkColor from CheckBox.icon.checkmarkColor in light themes (as in dark themes) Karl Tauber 2021-11-03 14:29:56 +01:00
  • 88576f68fd CheckBox and RadioButton: added RadioButton.icon.style (similar to CheckBox.icon.style) to support different styles for checkbox and radiobutton Karl Tauber 2021-11-03 11:27:18 +01:00
  • aa4e013097 CheckBox and RadioButton: made focused icon better recognizable in **FlatLaf Light** and **Dark** themes by painting a 1px focus border; **Darcula** and **IntelliJ** themes are not changed Karl Tauber 2021-11-03 11:15:17 +01:00
  • d67cfc911b CheckBox and RadioButton: - added CheckBox.icon.selectedBorderWidth - added CheckBox.icon.disabledSelectedBorderWidth - added CheckBox.icon.disabledSelectedBorderColor - added CheckBox.icon.disabledSelectedBackground - changed CheckBox.icon.focusWidth from int float Karl Tauber 2021-11-02 15:03:18 +01:00
  • 00a3ad738f CheckBox and RadioButton: made selected icon better recognizable in **FlatLaf Light** (use blue border), **Dark** and **Darcula** (use lighter border) themes; **IntelliJ** theme is not changed Karl Tauber 2021-10-31 18:26:31 +01:00
  • 1d39d34d7c CheckBox and RadioButton: - added CheckBox.icon.hoverCheckmarkColor - added CheckBox.icon.selectedHoverBorderColor - added CheckBox.icon.pressedBorderColor - added CheckBox.icon.selectedPressedBorderColor - added CheckBox.icon.pressedCheckmarkColor - renamed CheckBox.icon.selectedFocusedBorderColor to CheckBox.icon.focusedSelectedBorderColor - renamed CheckBox.icon.selectedFocusedBackground to CheckBox.icon.focusedSelectedBackground - renamed CheckBox.icon.selectedFocusedCheckmarkColor to CheckBox.icon.focusedCheckmarkColor - renamed CheckBox.icon.selectedHoverBackground to CheckBox.icon.hoverSelectedBackground - renamed CheckBox.icon.selectedPressedBackground to CheckBox.icon.pressedSelectedBackground - renamed CheckBox.icon[filled].selectedFocusedBorderColor to CheckBox.icon[filled].focusedSelectedBorderColor - renamed CheckBox.icon[filled].selectedFocusedBackground to CheckBox.icon[filled].focusedSelectedBackground - renamed CheckBox.icon[filled].selectedFocusedCheckmarkColor to CheckBox.icon[filled].focusedCheckmarkColor - renamed CheckBox.icon[filled].selectedHoverBackground to CheckBox.icon[filled].hoverSelectedBackground - renamed CheckBox.icon[filled].selectedPressedBackground to CheckBox.icon[filled].pressedSelectedBackground Karl Tauber 2021-10-31 17:30:43 +01:00
  • 5f6013edd4 Theme Editor: Switches" preview: - show indeterminate state for checkboxes - removed "text" from checkboxes and radio buttons Karl Tauber 2021-10-31 10:54:32 +01:00
  • 3e198ecd28 JIDE: RangeSlider: support specifying width of thumb borders (fixes compile error in commit dd806144) Karl Tauber 2021-10-30 20:37:12 +02:00
  • d48b98f582 ComboBox: fix NPE in CellPaddingBorder.install() (issue #408) Karl Tauber 2021-10-30 20:25:57 +02:00
  • 9b839231f7 ToggleButton: use UI values from Button Karl Tauber 2021-10-30 14:04:31 +02:00
  • dd80614465 ComboBox, Spinner, TextField and subclasses, CheckBox, RadioButton and Slider: support specifying width of borders Karl Tauber 2021-10-30 14:02:49 +02:00
  • 8c2be1b406 FlatButtonBorder: removed fields that override fields from FlatBorder Karl Tauber 2021-10-29 14:09:58 +02:00
  • 8152b7dad6 UIDefaultsLoader: further reduced need for value type prefixes in properties files and in CSS styles Karl Tauber 2021-10-29 13:55:28 +02:00
  • fb4fe175d9 UIDefaultsLoader: reduced need for {float} in properties files and in CSS styles Karl Tauber 2021-10-29 13:33:55 +02:00
  • 5e03eb9b51 UIDefaultsDump: removed Java 8 patch version from dump file names Karl Tauber 2021-10-28 21:01:16 +02:00
  • ef25575f85 ignore internal UI keys in dumps and in UI defaults inspector Karl Tauber 2021-10-28 20:47:47 +02:00
  • b77b338c7a Styling: support using variables (defined in properties files) in CSS styles Karl Tauber 2021-10-28 19:03:13 +02:00
  • 0e4fe4e9bb Theme Editor: support platform and light/dark specific properties in preview Karl Tauber 2021-10-26 18:46:08 +02:00
  • f742f83834 Typography: added thin font/style Karl Tauber 2021-10-26 13:16:52 +02:00
  • e6e4e53a73 Typography: added light and semibold font/style Karl Tauber 2021-10-25 13:27:40 +02:00
  • 7c594ba7a9 Typography: UIDefaultsDump: dumps updated on macOS Big Sur Karl Tauber 2021-10-25 13:06:34 +02:00
  • 0156a9a9d5 Merge PR #401: Text components: double/triple-click-and-drag selection improvements Karl Tauber 2021-10-24 20:06:06 +02:00
  • 3facbc0900 macOS: improved macOS support of Demo and Theme Editor: - set application name that is used in screen menu bar - enable dark window title bars if macOS is in dark mode Karl Tauber 2021-10-24 17:05:50 +02:00
  • 78cef1b3c7 Theme Editor: - use class FlatDesktop - hide "File > Exit" and "Help > About" on macOS - enable macOS screen menu bar Karl Tauber 2021-10-24 11:49:48 +02:00
  • d907c469ed Theme Editor: renamed class FlatThemeEditor to FlatLafThemeEditor because this name is shown in macOS screen menu bar (and to be consistent with FlatLafDemo) Karl Tauber 2021-10-24 11:43:28 +02:00
  • cc238d3e34 Extras: added class FlatDesktop for easy integration into macOS screen menu (About, Preferences and Quit) when using Java 8 Karl Tauber 2021-10-24 09:44:34 +02:00
  • 0f9b38895e FlatComponents2Test: allow enabling tree editing Karl Tauber 2021-10-23 09:20:53 +02:00
  • 8fa1eae352 TextComponents: triple-click-and-drag now extends selection by whole lines Karl Tauber 2021-10-22 13:14:01 +02:00
  • e13fb25f14 TextComponents: keep selection when switching theme Karl Tauber 2021-10-21 22:57:28 +02:00
  • e36f942129 TextComponents: double-click-and-drag now extends selection by whole words Karl Tauber 2021-10-21 13:24:07 +02:00
  • d34619824c Typography: support deriving font from any other font (was always from defaultFont) (issue #384) Karl Tauber 2021-10-17 16:54:05 +02:00
  • 80297f113f UIDefaultsLoader: detect string values, that start and end with '"', after determining value type from key to allow font values like "Roboto Mono" Karl Tauber 2021-10-17 14:59:18 +02:00
  • 80f51bfe1e Theme Editor: fixed StackOverflowError when setting "defaultFont" to non-font value (e.g. defaultFont = #fff) Karl Tauber 2021-10-17 14:43:12 +02:00
  • f8b9f4c1fa Table: do not select text in cell editor when it gets focus (when JTable.surrendersFocusOnKeystroke is true) and TextComponent.selectAllOnFocusPolicy is once (the default) or always (issue #395) Karl Tauber 2021-10-16 23:32:08 +02:00
  • 587f431ef4 Typography: added FlatFontsTest to quickly view all available fonts on the current system Karl Tauber 2021-10-16 18:56:53 +02:00
  • 65a4f66d2c Merge branch 'release-1.6.1' into main Karl Tauber 2021-10-14 22:50:44 +02:00
  • a253b6c0cf release 1.6.1 1.6.1 Karl Tauber 2021-10-14 22:35:33 +02:00
  • efcbc1fbdb Native window decorations: catch UnsatisfiedLinkError when trying to load jawt.dll to avoid an application crash (Java 8 on Windows 10 only) Karl Tauber 2021-10-14 18:59:26 +02:00
  • e560f9cbd6 Typography: added typography/fonts preview to theme editor Karl Tauber 2021-10-13 15:47:55 +02:00
  • 80235d53f4 Typography: added FlatTypographyTest, which was used to compare various typography systems Karl Tauber 2021-10-13 14:29:57 +02:00
  • 892b9a732e Typography: added typography/fonts to demo Karl Tauber 2021-10-13 13:50:41 +02:00
  • d8a0a015e4 Typography: Extras: add labelType property to FlatLabel Karl Tauber 2021-10-13 13:48:03 +02:00
  • e60e3b9fae Typography: added monospaced font/style Karl Tauber 2021-10-13 13:46:43 +02:00
  • 6715f01b8c Typography: use typography styles in demo, theme editor, etc Karl Tauber 2021-10-13 11:48:28 +02:00
  • 465af9bc41 Typography: added fonts/styles for headings and various text sizes Karl Tauber 2021-10-13 10:53:37 +02:00
  • d10bcfc72f Theme Editor: fixed StackOverflowError when adding "defaultFont" key to properties file Karl Tauber 2021-10-12 23:50:45 +02:00
  • 942e5b9cd1 IntelliJ Themes: do not ignore UI keys prefixed with [style] to allow using styles Karl Tauber 2021-10-12 22:29:38 +02:00
  • 51a90d32f8 support defining "defaultFont" in FlatLaf properties files (issue #384) Karl Tauber 2021-10-12 11:13:40 +02:00
  • ac46632e73 UIDefaultsLoader: do not detect string values that start and end with '"', but also contain ", as string (e.g. font value "Roboto Mono", "Ubuntu Mono") Karl Tauber 2021-10-10 17:59:00 +02:00
  • 1192bef1ae Styling: use cache for parsed fonts, which is mostly used for fonts in CSS styles (e.g. font: bold +4) (issue 384) Karl Tauber 2021-10-08 22:08:37 +02:00
  • b9ec382589 support defining fonts in FlatLaf properties files (issue #384) Karl Tauber 2021-10-08 20:23:54 +02:00
  • 5ecf19ef4f Styling: added styling properties that are likewise to client properties (e.g. buttonType: help on JButton does the same as setting client property JButton.buttonType to help) Karl Tauber 2021-10-07 14:22:47 +02:00
  • 9636809b4d CHANGELOG.md: added PR #388 (style classes) Karl Tauber 2021-10-06 12:25:17 +02:00
  • ba1c1ed952 ToolBar: added arrowKeysOnlyNavigation to unit tests (issue #346) Karl Tauber 2021-10-06 00:04:49 +02:00
  • 7452390614 ToolBar: support non-button components in arrow-keys-only navigation (issue #346) Karl Tauber 2021-10-05 23:11:53 +02:00
  • 69042e42b7 ToolBar: support arrow-keys-only navigation within focusable buttons of toolbar: - arrow keys move focus within toolbar (provided by BasicToolBarUI) - tab-key moves focus out of toolbar - if moving focus into the toolbar, focus recently focused toolbar button Karl Tauber 2021-10-05 16:36:50 +02:00
  • 1e93deab2a ToolBar: fixed focus moving to next button when switching Laf and focusable buttons are enabled via CSS style focusableButtons: true Karl Tauber 2021-10-05 15:34:23 +02:00
  • 16ea809bb3 ToolBar: skip components with empty input map (e.g. JLabel) when using arrow keys to navigate in focusable buttons (related to issue #346) Karl Tauber 2021-10-05 12:15:51 +02:00
  • 78aa4343b7 ColorFunctions: added lighten(), darken(), saturate(), desaturate() and spin() Karl Tauber 2021-10-04 22:56:10 +02:00
  • 6815109e15 ColorFunctions: moved methods applyFunctions() and clamp() down to nested classes Karl Tauber 2021-10-04 22:41:32 +02:00
  • e34fbcec58 ToolBar: foolbars are no longer floatable by default Karl Tauber 2021-10-04 15:31:55 +02:00
  • bb2a21270b Theme Editor: added "Pick Color from Screen" action to "Edit" menu that allows picking a color from anywhere on screen and insert/change it at caret position Karl Tauber 2021-10-04 12:44:03 +02:00
  • 49b9ec9025 Theming improvements: updated CHANGELOG.md Karl Tauber 2021-10-04 12:00:29 +02:00
  • a2e896e102 Merge PR #390: Theming improvements Karl Tauber 2021-10-04 11:55:18 +02:00
  • 2e1ef647a9 Theming improvements: - renamed MenuItemCheckBox.icon.checkmarkColor to CheckBoxMenuItem.icon.checkmarkColor - renamed MenuItemCheckBox.icon.disabledCheckmarkColor to CheckBoxMenuItem.icon.disabledCheckmarkColor Karl Tauber 2021-10-03 23:28:53 +02:00
  • f0c314df80 Theming improvements: - renamed @disabledText to @disabledForeground - renamed @textComponentBackground to @componentBackground - renamed @textComponentMargin to @componentMargin - added @disabledBackground Karl Tauber 2021-10-03 23:15:51 +02:00