Clicking on slider track now immediately moves the thumb to mouse location and starts dragging the thumb.
This is how sliders work in current desktop operating systems, in smartphones and even on web pages.
If snap to tick is enabled, then snapping is now done while dragging thumb.
Extras: Component extension classes
Some FlatLaf UI delegates already provide additional features that can be enabled via client properties.
E.g. placeholder text for text fields:
Starting with this release, there are now component classes available in the FlatLaf Extras addon,
that allows easier access to these features. E.g.:
FlatTextField myTextField = new FlatTextField();
myTextField.setPlaceholderText( "Search" );
Change log
New features and improvements
Slider and JIDE RangeSlider: Clicking on track now immediately moves the thumb
to mouse location and starts dragging the thumb.
Use UIManager.put( "Slider.scrollOnTrackClick", true ) to enable old behavior
that scrolls the thumb when clicking on track.
Slider: Snap to ticks is now done while dragging the thumb.
Use UIManager.put( "Slider.snapToTicksOnReleased", true ) to enable old behavior
that snaps to ticks on mouse released.
Extras: Added standard component extension classes that provides easy access
to FlatLaf specific client properties (see package com.formdev.flatlaf.extras.components
in FlatLaf Extras).
Slider and JIDE RangeSlider: Clicking on track now immediately moves the thumb
to mouse location and starts dragging the thumb. Use UIManager.put( "Slider.scrollOnTrackClick", true ) to enable old behavior that scrolls the
thumb when clicking on track.
Slider: Snap to ticks is now done while dragging the thumb. Use
UIManager.put( "Slider.snapToTicksOnReleased", true ) to enable old behavior
that snaps to ticks on mouse released.
Extras: Added standard component extension classes that provides easy access
to FlatLaf specific client properties (see package
com.formdev.flatlaf.extras.components).
Extras: Renamed tri-state check box class from
com.formdev.flatlaf.extras.TriStateCheckBox to
com.formdev.flatlaf.extras.components.FlatTriStateCheckBox. Also
changed/improved API and added javadoc.
Extras: Renamed SVG utility class from com.formdev.flatlaf.extras.SVGUtils
to com.formdev.flatlaf.extras.FlatSVGUtils.
IntelliJ Themes: Added flag whether a theme is dark to
FlatAllIJThemes.INFOS. (issue #221)
JIDE Common Layer: Support TristateCheckBox.
Fixed bugs
Slider: Fixed painting of colored track if JSlider.inverted is true.
Table and TableHeader: Fixed missing right vertical grid line if using table
as row header in scroll pane. (issues #152 and #46)
TableHeader: Fixed position of column separators in right-to-left component
orientation.
ToolTip: Fixed drop shadow for wide tooltips on Windows and Java 9+. (issue
#224)
SwingX: Fixed striping background highlighting color (e.g. alternating table
rows) in dark themes.
Fixed: If text antialiasing is disabled (in OS system settings or via
-Dawt.useSystemAAFontSettings=off), then some components still did use
antialiasing to render text (not-editable ComboBox, ProgressBar, Slider,
TabbedPane and multiline ToolTip). (issue #227)
0.45
New features and improvements
Slider: New design, added hover and pressed feedback and improved customizing.
(PR #214)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
If all status checks pass Dependabot will automatically merge this pull request.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
⚠️ Dependabot won't automerge this PR as it didn't detect CI on it ⚠️
You have automerging enabled for this repo but Dependabot didn't detect any CI statuses or checks. You can disable automerging on this repo from here.
Bumps flatlaf from 0.43 to 0.46.
Release notes
Sourced from flatlaf's releases.
Changelog
Sourced from flatlaf's changelog.
Commits
073a25f
release 0.4640592ab
FlatUIUtils: fixed javadoc warningsbbfe624
Merge pull request #222 into mastera2af9e4
JIDE: RangeSlider: clicking on track now immediately moves the thumb to mouse...0123a88
JIDE: updated UI defaults dumps for commit ef065d31a07169998e4f5ca3e10068c0fb...53854a4
Slider: snap to ticks is now done while dragging the thumb4fdd448
Slider: clicking on track now immediately moves the thumb to mouse location a...3c58879
Slider: fixed painting of colored track if JSlider.inverted is truea7c6a88
Extras: FlatTriStateCheckBox reworkedef065d3
JIDE: supportTristateCheckBox
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.If all status checks pass Dependabot will automatically merge this pull request.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)
⚠️ Dependabot won't automerge this PR as it didn't detect CI on it ⚠️
You have automerging enabled for this repo but Dependabot didn't detect any CI statuses or checks. You can disable automerging on this repo from here.