Commit Graph

  • 4db39828ef Theming improvements: reordered variables and added comments Karl Tauber 2021-10-02 00:53:54 +02:00
  • b2d40825ac Theming improvements: - reworked core themes - reduced explicit colors by using color functions - made it easier to create new themes - avoid using colors from one component type for another component type (except when useful; e.g. Separator.foreground is also used for other separators) - HelpButton: use colors from Button (instead of from CheckBox.icon) - ToolBar: improved "docking" and "floating" colors Karl Tauber 2021-10-01 23:48:46 +02:00
  • 6df5d3334e Styling: test if() and contrast() functions in unit tests Karl Tauber 2021-10-01 15:08:17 +02:00
  • 0e982df90c Styling: - check for duplicate keys in StyleableInfos to find "overlapping" fields/properties (e.g. borderColor in FlatBorder and in FlatComboBoxUI) - Button and ToggleButton: fixed styling toolbar.spacingInsets Karl Tauber 2021-10-01 13:49:38 +02:00
  • 3834d93c9d ComboBox and Spinner: - added buttonSeparatorColor and buttonDisabledSeparatorColor - fixed styling of borderColor and disabledBorderColor Karl Tauber 2021-10-01 13:41:49 +02:00
  • 16920a5b82 Styling: added slider properties to tests Karl Tauber 2021-09-30 11:39:02 +02:00
  • d66e35fdde Styling: support enums Karl Tauber 2021-09-30 10:40:43 +02:00
  • d93dde0a03 StringUtils: - use new StringUtils.split(..., boolean trim, boolean excludeEmpty) where possible - added substringTrimmed() and isTrimmedEmpty() to avoid temporary string allocation Karl Tauber 2021-09-30 01:14:45 +02:00
  • 2d232124dd Merge PR #388: Styling: basic support for "classes" (similar to CSS classes) Karl Tauber 2021-09-30 00:06:34 +02:00
  • ac6702fcf7 Styling: Extras: add styleClass getter and setter to component classes Karl Tauber 2021-09-29 23:56:41 +02:00
  • c4b016c9c8 Styling: support specifying multiple style classes in single string Karl Tauber 2021-09-29 23:49:40 +02:00
  • 6baa583a28 ColorFunctions: improved performance of mix(), tint() and shade() color functions Karl Tauber 2021-09-28 19:48:54 +02:00
  • 82df2ecfa9 ComboBox: paint focus border if combobox component itself is focused (instead of internal text field) or if client property JComponent.focusOwner is set Karl Tauber 2021-09-28 19:34:53 +02:00
  • 06b3de720a Merge PR #375: Accent colors Karl Tauber 2021-09-28 15:13:25 +02:00
  • b0edd5659f Accent color: made accent focus border colors lighter/darker in IntelliJ/Darcula themes Karl Tauber 2021-09-28 14:18:34 +02:00
  • bb5c2eea10 Accent color: - added Component.accentColor - dark themes: changed threshold for contrast() from 39% down to 25% for better readability of text - Demo: added "Default" accent color and changed "Blue" to lighter color Karl Tauber 2021-09-28 11:12:17 +02:00
  • e31e4dfe3a Accent color: avoid that @accentXYZ variables depend on other @accentXYZ variables to allow independent modification Karl Tauber 2021-09-27 12:31:49 +02:00
  • caf2cd8487 Accent color: fixed text colors if using light accent color Karl Tauber 2021-09-27 12:24:45 +02:00
  • 15c6f11a5e Accent color: - introduced @accentBaseColor variable that is now used as base for accent colors in Light/Dark/IntelliJ/Darcula themes, which use variations of the accent color - @accentColor is now null by default, but if set to a color, then it is used unmodified for all accents Karl Tauber 2021-09-26 23:56:56 +02:00
  • a4ea88f4be UIDefaultsLoader: added if() function (inspired by Less CSS) Karl Tauber 2021-09-26 23:54:06 +02:00
  • 36d5747fbf Accent color: changed javadoc since version from 1.6 to 2 Karl Tauber 2021-09-25 23:53:57 +02:00
  • 3d8c535ffa Styling: catch runtime exceptions while applying styles (and log them) to avoid that wrong/invalid styles could result in "damaged" UI Karl Tauber 2021-09-25 19:34:46 +02:00
  • 1c067d0284 behaviour --> behavior Karl Tauber 2021-09-25 18:32:11 +02:00
  • b6be0462a5 Styling: basic support for "classes" (similar to CSS classes) using client property FlatLaf.styleClass Karl Tauber 2021-09-25 14:34:21 +02:00
  • cce91ea16d changed multi-line javadoc since tags to single-line Karl Tauber 2021-09-25 13:27:26 +02:00
  • d756041b06 Styling: fixed "Illegal reflective access" warning on stdout for BasicMenuItemUI fields when running on Java 9+ Karl Tauber 2021-09-22 23:40:10 +02:00
  • 2d0eb0a05b Styling: fixed build error on GitHub Actions Karl Tauber 2021-09-22 23:15:00 +02:00
  • 02f3239669 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-09-16 22:55:05 +02:00
  • 14a9240c45 FlatUIUtils: joined the 3 component painting methods (for focus border, border and background) into a single method paintOutlinedComponent() Karl Tauber 2021-09-16 18:09:32 +02:00
  • c659638fb4 Styling: support styling for recently merged PR #378 Karl Tauber 2021-09-15 23:43:41 +02:00
  • fd15b63044 Merge PR #378: TextField: leading and trailing icons Karl Tauber 2021-09-15 23:32:57 +02:00
  • 263e6c34b5 Merge PR #341: Styling individual components Karl Tauber 2021-09-15 20:00:06 +02:00
  • eb62a3dc17 UI defaults inspector: avoid NPE if DerivedColorKeys.properties missing Karl Tauber 2021-09-15 19:44:09 +02:00
  • 161ee090a8 Tree: Fixed editing cell issue with custom cell renderer and cell editor that use same component for rendering and editing (fixes #385) Karl Tauber 2021-09-15 19:39:44 +02:00
  • 560ec437b9 Styling: avoid duplicate applying styles to buttons, labels and separators (which use shared UI delegates) Karl Tauber 2021-09-15 10:57:52 +02:00
  • ccd0597b35 Styling: support styling for recently merged changes Karl Tauber 2021-09-14 22:43:44 +02:00
  • c5c0a3768a Merge remote-tracking branch 'origin/main' into styling Karl Tauber 2021-09-14 19:02:21 +02:00
  • 5aa2d24d58 added sigtest to flatlaf-core subproject to check for incompatible API changes in packages com.formdev.flatlaf and com.formdev.flatlaf.util Karl Tauber 2021-09-14 18:14:21 +02:00
  • ae28c595f9 release 1.6 1.6 Karl Tauber 2021-09-14 15:00:29 +02:00
  • 1d08ddda60 InternalFrame: added missing since 1.6 Karl Tauber 2021-09-14 14:56:21 +02:00
  • 578379fd00 Table and TableHeader: renamed UI keys Table[Header].showLastVerticalLine to Table[Header].showTrailingVerticalLine (issue #332) Karl Tauber 2021-09-14 14:31:17 +02:00
  • 7c9f550d4c ComboBox: fixed popup location if shown above of combo box (Java 8 only) Karl Tauber 2021-09-14 14:16:53 +02:00
  • 84d4510d70 ComboBox: fixed popup border painting on HiDPI screens (e.g. at 150% scaling) Karl Tauber 2021-09-14 12:46:51 +02:00
  • fa194ec258 TableHeader: fixed missing trailing vertical separator line if used in upper left corner of scroll pane (issue #332) Karl Tauber 2021-09-14 00:52:59 +02:00
  • fd56de403d Slider: fixed calculation of baseline (see also PR #214) Karl Tauber 2021-09-13 22:05:48 +02:00
  • 85fde46504 Testing: FlatSingleComponentTest: revalidate and repaint when changing component orientation using Alt+R Karl Tauber 2021-09-13 10:11:09 +02:00
  • b283178979 Spinner: fixed painting of border corners on left side (issue #382; regression since FlatLaf 1.4) Karl Tauber 2021-09-10 16:37:07 +02:00
  • e0dddfceba Styling: Menu: support top-level underline selection Karl Tauber 2021-09-08 14:55:41 +02:00
  • bddef38a7c Theme Editor: preview: added "editable" check box for text components Karl Tauber 2021-09-08 00:22:02 +02:00
  • b5f2f77944 Theme Editor: layout of "All" preview tab improvements: - right align "enabled" and "focused" check boxes - two columns for controls - removed help button - JTextArea, JEditorPane and JTextPane in single line - reduced some vertical gaps Karl Tauber 2021-09-08 00:08:54 +02:00
  • fca0718ed0 Native window decorations: fixed unwanted uninstall of native window border when using JInternalFrame (which has its own JRootPane) and invoking updateUI() on internal frame (e.g. in preview of FlatLaf Theme Editor) Karl Tauber 2021-09-07 17:55:45 +02:00
  • 0d44ade6ea Theme Editor: preview improvements: - remember state of "enabled", "focused" and "buttonType" and sync it with all editors - added "_" button near "JMenuBar" label to test menu underline selection Karl Tauber 2021-09-07 14:31:09 +02:00
  • 08ca2aa266 Styling: - support references in color functions - added test for using color functions in styling Karl Tauber 2021-09-06 22:48:39 +02:00
  • fe15758e59 Styling: updated "since" javadoc tags Karl Tauber 2021-09-06 15:39:19 +02:00
  • 674efae184 Styling: Extras: add style getters and setters to component classes Karl Tauber 2021-09-06 15:23:15 +02:00
  • 4a65bc88d5 Theme Editor: highlight selected editor tab Karl Tauber 2021-09-05 23:25:16 +02:00
  • a8f3d59729 Merge remote-tracking branch 'origin/main' into styling Karl Tauber 2021-09-05 23:12:38 +02:00
  • 6018f83a22 Theme Editor: center some labels and help buttons in preview Karl Tauber 2021-09-05 22:15:49 +02:00
  • 0b6247851b Theme Editor: fixed preview of focused list and table selection Karl Tauber 2021-09-05 22:05:21 +02:00
  • 8640dee053 Theme Editor: preview improvements: - added "focused" checkbox to "All" tab to preview focused components - added "button type" selector to "Buttons" tab - added "unfocused"/"focused" header labels to "Buttons" and "Switches" tabs - use local variables instead of fields where possible Karl Tauber 2021-09-05 21:08:36 +02:00
  • 824db2e3bd Table and TableHeader: added UI defaults to show last vertical line (issue #332) Karl Tauber 2021-09-05 11:51:28 +02:00
  • c2c79c4676 Theme Editor: - remember last used preview tab - sync selected preview tab with all editors Karl Tauber 2021-09-05 11:13:29 +02:00
  • 4795fe5687 Theme Editor: - added preview of buttons, checkboxes, radiobuttons, etc in various states (hover, pressed, focused, selected, disabled) (copied from FlatComponentStateTest) - moved components preview panel from FlatThemePreview.jfd to FlatThemePreviewAll.jfd - added tabs at top of preview area Karl Tauber 2021-09-05 10:55:51 +02:00
  • d508f339c1 TableHeader: do not show resize cursor for last column if resizing last column is not possible because auto resize mode of table is not off (issue #332) Karl Tauber 2021-09-04 18:20:21 +02:00
  • c7054537e7 Testing: FlatSingleComponentTest: support changing component orientation using Alt+R Karl Tauber 2021-09-04 13:28:02 +02:00
  • b98b904023 added missing UI defaults to javadoc Karl Tauber 2021-09-04 13:24:19 +02:00
  • 253df9325d Extras: FlatAnimatedLafChange: made animated Laf change transition smoother Karl Tauber 2021-09-04 13:19:12 +02:00
  • 78a9cc1d0c Theme Editor: fixed: editor was not focused after startup or when switching directory Karl Tauber 2021-09-03 17:32:59 +02:00
  • b25fcc3381 OptionPane: fixed rendering of longer HTML text if it is passed as StringBuilder, StringBuffer, or any other object that returns HTML text in method toString() (similar to issue #12) Karl Tauber 2021-09-03 11:20:46 +02:00
  • a2c0df5891 TextField: consider widths of leading and trailing icons for minimum/preferred text field size Karl Tauber 2021-09-02 23:13:22 +02:00
  • dc33c26960 TextField: support leading and trailing icons (issue #368) Karl Tauber 2021-09-02 17:45:33 +02:00
  • 51d7bc2c37 TextField, FormattedTextField, PasswordField and ComboBox: fixed alignment of placeholder text in right-to-left component orientation Karl Tauber 2021-09-02 16:18:53 +02:00
  • cdbdccf1ad Styling: support styling any component property that has public getter and setter methods Karl Tauber 2021-09-01 13:32:31 +02:00
  • 397c369114 Styling: renamed class FlatStyleSupport to FlatStylingSupport Karl Tauber 2021-09-01 00:21:47 +02:00
  • 6f9bbb184a Styling: support specifying explicit value type for parsing CSS values (for future use) Karl Tauber 2021-08-31 23:53:12 +02:00
  • b12c818862 Styling: support styling for recently merged changes Karl Tauber 2021-08-31 16:12:03 +02:00
  • 9118dcf925 Merge remote-tracking branch 'origin/main' into styling Karl Tauber 2021-08-31 15:41:46 +02:00
  • d333d0c9e4 Accent color: - Demo: added accent color switching to toolbar - added FlatLaf.setGlobalExtraDefaults() for easy setting accent color at runtime Karl Tauber 2021-08-31 14:06:41 +02:00
  • 7f9cf6f45c UIDefaultsLoader: added contrast() color function (inspired by Less CSS), which is useful to choose a foreground color that is readable, based on the luma (perceptual brightness) of a background color Karl Tauber 2021-08-30 23:58:37 +02:00
  • 9b465cb550 Accent color: added FlatLaf.setExtraDefaults() for easy setting accent color at runtime (issue #233) Karl Tauber 2021-08-09 19:27:49 +02:00
  • 9144b7206e Accent color: - added @accentXYZ variables that define all blueish accent colors - all blueish accent colors are calculated based on @accentColor Karl Tauber 2021-08-06 22:52:23 +02:00
  • dd14843f2e Accent color: reduced number of individual blueish accent colors with color functions (issue #233) Karl Tauber 2021-08-06 17:35:55 +02:00
  • 09a18b2305 Theme Editor: - highlight opened directory in history combobox list - support removing directories from history ('x' button in combobox list) Karl Tauber 2021-08-29 18:16:49 +02:00
  • 31f2feee2e Theme Editor: - special renderer for directory history combobox list that dimes path parts - disable menu items and buttons if no directory or editor is open - set editor font size when opening new editor if increased/decreased Karl Tauber 2021-08-29 16:06:50 +02:00
  • 218bb62bfd Theme Editor: - fixed increasing layout and wrong top border color of find/replace bar when switching Laf - fixed duplicate keys in reference auto-completion Karl Tauber 2021-08-29 14:28:11 +02:00
  • 694c2ad767 Theme Editor: preview improvements: - added JSplitPane (contains JList and JTree) - sort first column in JTable to have preview of sort direction arrow - fixed background color of JEditorPane and JTextPane when enabling/disabling - keep first JMenu enabled, but disable the menu items Karl Tauber 2021-08-29 11:44:38 +02:00
  • 97943fcd38 Theme Editor: changed main class to com.formdev.flatlaf.themeeditor.FlatThemeEditor Karl Tauber 2021-08-28 17:38:51 +02:00
  • 77f33467d2 Theme Editor: fixed endless look in "replace all" when replacing e.g. "a" with "aa" Karl Tauber 2021-08-28 17:37:02 +02:00
  • 651454170d Theme Editor: - fixed duplicate lines action if selection includes line separator at the end - preview: do not disable internal components of JInternalFrame Karl Tauber 2021-08-28 14:30:11 +02:00
  • 7ca48bd136 Theme Editor: - support lazy values and icon colors in overlay color preview - support icon colors in preview - support icon colors in reference auto-completion - support changing preview theme when editing FlatLaf.properties via adding @baseTheme = dark|darcula|intellij Karl Tauber 2021-08-28 14:18:11 +02:00
  • 968e508bb5 Theme Editor: - change border color of find field to red if noting found/matches - update search match highlighting after reloading file on external change Karl Tauber 2021-08-27 22:53:04 +02:00
  • a6d318a197 Theme Editor: fixed missing keys (e.g. Button.foreground) in reference auto-completion, which are defined as wildcards or have some prefix Karl Tauber 2021-08-27 22:32:59 +02:00
  • cd20f4086b Theme Editor: fixed preview of focused button in FlatDarkLaf (and probably other null value related issues) Karl Tauber 2021-08-27 18:03:39 +02:00
  • ebd5905947 Theme Editor: preview improvements: - added JToolBar, JProgressBar with string painted, JDesktopPane and JInternalFrame - placed text components side-by-side to save vertical space - changed button texts and removed tooltips - fixed painting of table cell focus border - added missing add.svg Karl Tauber 2021-08-27 16:10:10 +02:00
  • 817a3c62bb Theme Editor: preview improvements: - fixed table header borders (runWithUIDefaultsGetter() in paint()) - cache lazy values - use runWithUIDefaultsGetter() in layout(), validateTree() and paint() Karl Tauber 2021-08-24 22:32:48 +02:00
  • f8f58400fe Theme Editor: added list, tree and table to preview Karl Tauber 2021-08-24 21:49:09 +02:00
  • ef06840649 Theme Editor: basic README.md with shapshot download link Karl Tauber 2021-08-24 18:38:21 +02:00
  • b17c14d62e Theme Editor: use UTF-8 encoding to load properties files Karl Tauber 2021-08-24 17:50:03 +02:00
  • 19dba94064 IntelliJ Themes: removed deprecated install() methods Karl Tauber 2021-08-24 17:38:19 +02:00
  • 601e24f9e7 Theme Editor: fixed "..." in menus Karl Tauber 2021-08-24 16:52:45 +02:00