Commit Graph

2436 Commits

Author SHA1 Message Date
Karl Tauber
44a04cca2c FlatSmoothScrollingTest:
- better list/tree/etc items for easier recognizing jittery scrolling
- sliders to modify animation duration and resolution
- slider to invoke `scrollRectToVisible()`
- option to show row header for table
- use viewport.viewPosition for chart (instead of scrollbar.value)
- highlight methods in stack of tooltip (e.g. JViewport.setViewPosition())
2023-09-02 17:56:11 +02:00
Karl Tauber
b32b8db97a FlatSmoothScrollingTest: refactored line chart panel into own class for easier use in other test apps 2023-08-30 00:20:45 +02:00
Karl Tauber
c529dcb747 Smooth Scrolling:
- fixed jittery repeating-scrolling with PageUp/Down keys when reaching the top/bottom/left/right of the viewport (see FlatScrollBarUI.setValueAnimated())
- temporary change viewport scroll mode only if it is JViewport.BLIT_SCROLL_MODE
- use JViewport.SIMPLE_SCROLL_MODE when temporary disabling blitting
2023-08-27 14:31:30 +02:00
Karl Tauber
04658c2ef0 SmoothScrollingTest: fixed error reported by Error Prone 2023-08-25 17:43:58 +02:00
Karl Tauber
5cdef5409b Smooth Scrolling: fixed jittery scrolling with trackpad or Magic Mouse (if smooth scrolling is enabled) 2023-08-25 15:24:28 +02:00
Karl Tauber
6dfc204e40 SmoothScrollingTest added (from https://github.com/JFormDesigner/FlatLaf/pull/683#issuecomment-1585667066) 2023-08-25 15:23:59 +02:00
Karl Tauber
542e7d5f60 Smooth Scrolling: fixes too slow repeating block (page) scrolling (e.g. hold down PageUp key) for Tree, TextArea, TextPane and EditorPane 2023-08-24 22:38:52 +02:00
Karl Tauber
3628a03c9d introduced FlatUIAction 2023-08-24 11:54:32 +02:00
Karl Tauber
6ce2198cd6 FlatSmoothScrollingTest:
- added slider to horizontally scale chart
- improved chart legend
- record stack for points in chart and show in tooltip on hover
2023-08-23 15:53:55 +02:00
Karl Tauber
e2e3fd31e9 FlatSmoothScrollingTest:
- added small vertical line to indicate data points in chart
- added split pane to allow changing height of components
- Alt+C clears chart without moving focus to "Clear" button
- separate chart lines for smooth and non-smooth scrolling
2023-08-23 09:51:57 +02:00
Karl Tauber
cf70cfb50c ScrollBar: fixed temporary painting at wrong location during smooth scrolling when using mouse-wheel or scroll bar
(still occurs when scrolling by moving selection via keyboard)

many thanks to @Chrriis for the idea to temporary disable blitting mode on viewport
2023-08-23 09:51:57 +02:00
Karl Tauber
29f6c5fae9 FlatAnimatorTest: added test for precise scrolling with trackpad 2023-08-23 09:51:57 +02:00
Karl Tauber
419a689ca4 FlatAnimatorTest: added test for wheel scrolling (including chart) 2023-08-23 09:51:57 +02:00
Karl Tauber
865a56875f FlatSmoothScrollingTest: added "custom" scroll pane for testing smooth scrolling in case that scroll view does not implement Scrollable interface 2023-08-23 09:51:57 +02:00
Karl Tauber
3573188025 ScrollBar: support smooth scrolling via keyboard 2023-08-23 09:51:57 +02:00
Karl Tauber
1f2622819a FlatSmoothScrollingTest: support dark themes and added "Show table grid" and "Auto-resize mode" check boxes 2023-08-23 09:51:57 +02:00
Karl Tauber
305e9e602e ScrollBar: fixed jittery scrolling when in repeating mode (hold down mouse button) and smooth scrolling enabled 2023-08-23 09:51:57 +02:00
Karl Tauber
1ae31588c4 FlatSmoothScrollingTest: paint "temporary" scrollbar values in line chart using a lighter color 2023-08-23 09:51:56 +02:00
Karl Tauber
d64a8e93e1 FlatSmoothScrollingTest:
- use ChangeListener instead of AdjustmentListener because this is invoked before all other scrollbar listeners (which may run 20-30ms) and avoids a delay in the line chart
- use System.nanoTime() instead of System.currentTimeMillis() for better precision
- paint vertical lines in chart at every 200ms (was 1sec)
- print elapsed time between scrollbar events
2023-08-23 09:51:56 +02:00
Karl Tauber
e603bd81a1 FlatSmoothScrollingTest: added simple line chart that shows changes to scrollbar values 2023-08-23 09:51:56 +02:00
Karl Tauber
522ebb6fa3 FlatSmoothScrollingTest: allow enabling/disabling smooth scrolling with Alt+S without moving focus to checkbox; removed unused tree model 2023-08-23 09:51:56 +02:00
Karl Tauber
7a582c2d1f ScrollBar: fixed issue with updating thumb location (regressing since commit 2c3ef226692fa39b7e6eca3192d197c0b0753aa1) 2023-08-23 09:51:56 +02:00
Karl Tauber
762fe89867 FlatSmoothScrollingTest: added JTree, JTable, JTextArea, JTextPane and JEditorPane for testing smooth scrolling 2023-08-23 09:51:56 +02:00
Karl Tauber
1ebfe00f3c added system properties "flatlaf.animation" and "flatlaf.smoothScrolling" to disable all animations or smooth scrolling via command line (without modifying the application) 2023-08-23 09:51:56 +02:00
Karl Tauber
fdabca99b2 ScrollBar: fixed NPE when switching LaF while smooth scrolling animation is running (issue #50) 2023-08-23 09:51:56 +02:00
Karl Tauber
736305849a ScrollBar: set valueIsAdjusting property to true while smooth scrolling animation is running (issue #50) 2023-08-23 09:51:56 +02:00
Karl Tauber
889b5ea56a ScrollBar: fixed smooth scrolling issues when continuously scrolling (issue #50) 2023-08-23 09:51:56 +02:00
Karl Tauber
82514ccbfc Demo: added "Options > Smooth Scrolling" to menu (issue #50) 2023-08-23 09:51:56 +02:00
Karl Tauber
b67b701d1e ScrollPane: use smooth scrolling when rotating the mouse wheel (issue #50) 2023-08-23 09:51:56 +02:00
Karl Tauber
7f226a2742 ScrollBar: use smooth scrolling when clicking on track or on arrow button (issue #50) 2023-08-23 09:51:56 +02:00
Karl Tauber
c953ff84d0 added explicit file encoding for Eclipse projects 2023-08-12 22:45:02 +02:00
Karl Tauber
96cd207df3 README.md: minor updates 2023-08-12 17:04:21 +02:00
Karl Tauber
7a75f62a6a README.md: new applications using FlatLaf:
- Constellation
- Ghidra
- jadx
- muCommander
- Guiffy
- HashGarten
- MediathekView
- Astah
- Big Faceless (BFO) PDF Viewer
- Chatty
- BGBlitz
- Linux Task Manager (LTM)
2023-08-12 16:35:00 +02:00
Karl Tauber
61e5fe58c2 README.md: organized applications using FlatLaf into categories 2023-08-12 15:57:32 +02:00
Karl Tauber
1a3baba702 README.md: removed versions and 'New' badge from applications using FlatLaf 2023-08-12 14:04:23 +02:00
Karl Tauber
58dc14bb46 Gradle: use System.getProperty( "org.gradle.parallel" ) instead of rootProject.property( "org.gradle.parallel" ) because this did not work with VM command-line option -Dorg.gradle.parallel=false 2023-08-12 13:38:42 +02:00
Karl Tauber
a5b7e04943 Gradle: check whether parallel build is enabled when running 'publish' task
https://stackoverflow.com/questions/72664149/gradle-maven-publish-sonatype-creates-multiple-repositories-that-cant-be-clos
2023-08-12 13:23:11 +02:00
Karl Tauber
22f2aa5475 README.md: introduced "Sponsor" badge icon
SVGO option `convertPathData` enabled
2023-08-11 13:21:56 +02:00
Karl Tauber
d4e9cb12be updated sigtest for FlatLaf 3.2
(generated in clean workspace with gradle task `sigtestGenerate`)
2023-08-10 23:31:26 +02:00
Karl Tauber
75da361480 GitHub Actions: disable parallel build for publishing to maven central; otherwise two staging repos are created, which can not be closed and released
https://stackoverflow.com/questions/72664149/gradle-maven-publish-sonatype-creates-multiple-repositories-that-cant-be-clos
3.2
2023-08-10 19:31:55 +02:00
Karl Tauber
7488bcb7b0 update to Gradle 8.2.1 2023-08-10 19:06:10 +02:00
Karl Tauber
1b1a9be107 release 3.2 2023-08-10 18:34:38 +02:00
Karl Tauber
db2f94aa53 IntelliJ Themes: fixed Table background in "One Dark" theme 2023-08-10 16:06:11 +02:00
Karl Tauber
810146b993 Demo: auto-reload current theme in development environment if .properties files have changed 2023-08-09 14:22:05 +02:00
Karl Tauber
93091662ab IntelliJ Themes: fixed colors for selection background/foreground, Separator, Slider track and ProgressBar background in various themes 2023-08-09 13:58:40 +02:00
Karl Tauber
d349227fbf IntelliJ Themes: fixed wrong disabled text colors in "Dark Flat", "Hiberbee Dark", "Light Flat", "Nord", "Solarized Dark" and "Solarized Light" themes 2023-08-08 17:13:30 +02:00
Karl Tauber
c9423e3aa8 CHANGELOG.md: fixed type on previous commit 2023-08-07 20:00:00 +02:00
Karl Tauber
b9737ca4f1 Merge PR #709: x86: Narrow version range for not using system icons 2023-08-07 19:55:11 +02:00
Karl Tauber
4b4990635d FileChooser: Fixed crash on Windows with Java 17 to 17.0.2 32-bit. Java 17 64-bit is not affected. (regression since FlatLaf 2.3; PR #522, see also issue #403) 2023-08-07 19:35:04 +02:00
Karl Tauber
afaa2c8c78 FileChooser: show localized text for all locales supported by Metal (issue #680) 2023-08-06 18:35:25 +02:00