weisj
0cf17f1b37
Test: Make sure laf is installed on the EDT.
3 years ago
weisj
dedbce9a8b
Properly handle popupmenu sizes for popup position calculation.
...
Previously the popupmenu would always report its raw preferred size (i.e. without the maximum size constraints applied) to the position calculation algorithm. Due to this a popup, which would fit on the screen after it has been wrapped in the scrollable container would be moved. We'll now correctly report the effective size of the popup as the preferred/minimum/maximum size.
3 years ago
weisj
606949875d
PopupMenu: Implement ScrollPopupMenu based on the new DarkPopupMenuUI.KEY_MAX_POPUP_SIZE property.
...
Previously ScrollPopupMenu duplicated the implementation of DarkPopupMenuUI.
3 years ago
weisj
8e6573be68
CellHint: Correctly handle popups on the top and bottom. Fixes #238
...
Depending on whether the hidden part of a cell has greater width/height calculate the popup accordingly.
3 years ago
weisj
9ef6d0677f
JPopupMenu: Add client property to control the maximum size of a popup menu,
3 years ago
weisj
9b14afba1d
Deprecate FileTree as it will be moved to the swing-dsl project.
3 years ago
weisj
0b0462bcf9
Fix style violations.
4 years ago
weisj
b893220c9e
DnD: Replace Class#getCanonicalName with Class#getName.
4 years ago
weisj
8bdfbe7b23
DnD: Use TransferData as mime type to explicitly prohibit serializing it to an external drop target. Relates to #236
4 years ago
weisj
464ba398c7
DnD: Ensure #createDragImage returns a BufferedImage, as this is what the DnD API expects.
4 years ago
weisj
e6644787b9
DnD: Pass component as ImageObserver, when calculating their size.
4 years ago
weisj
5e5bba8dcc
TabFrame: Ensure target indicator is reset if dnd is canceled.
4 years ago
weisj
92f62f580f
TabFrame: Rename inner class TabbedPaneDragGestureRecognizer to TabFrameDragGestureRecognizer.
4 years ago
weisj
494edfaaa7
CellPopup: Accommodate cell containers, where the cell bounds aren't already the correct size to display the whole component. This brings us one step closer to supporting cell popups for tables.
4 years ago
weisj
7762fb11d0
Slider: Adjust track baseline behaviour.
4 years ago
weisj
afaa9fb6b8
Spinner: Check validity of next/previous value. Also consume the even if setting the value was successful.
4 years ago
weisj
7c0171da86
Add visualPadding hints for arrow icons.
4 years ago
weisj
0b2cb7bd7a
Update to snapshot version of swingdsl.
4 years ago
weisj
8725b204a0
Memory: Ensure UIUpdater doesn't prevent components from being garbage collected.
4 years ago
weisj
3457eeb694
Memory: Ensure shared static helpers don't prevent ui classes from being garbage collected.
4 years ago
weisj
e55440f468
StyleSheet: Remove border from table.
4 years ago
weisj
3f16eec70c
Fix theme properties not being displayed in the generated UITable.
...
Improve sorting of values.
4 years ago
weisj
b01ef6a2f2
Load base icon colors for high contrast themes to make sure all values are present.
4 years ago
weisj
ceec942be2
Unwrap StateIcon to avoid saving SVG icons as png.
4 years ago
weisj
ef97eff984
Provide global overwrite option for colored title bars on macOS.
4 years ago
weisj
0f00a91451
Use null for default accent/selection colors, to be consistent with how a theme would usually be constructed.
4 years ago
weisj
a8d9408757
Slider+Settings: Allow sliders to have their baseline at the height of the track.
4 years ago
weisj
72cc85aedb
Add method to determine whether a SettingsConfigurations behave the same at the time of calling the method.
4 years ago
weisj
c779761dde
SwingDSL: Provider more specific colors in DarklafComponentFactory.
4 years ago
weisj
36ecf9c677
Settings: Extract gluing logic between components into separate class. This allows for an easy implementation of custom layouts for the settings panel.
4 years ago
weisj
8ad14cc700
Tree: Consistently use special focus implementation.
4 years ago
weisj
7615b22c05
Focus: If no action is specified fall back to repainting the component.
4 years ago
weisj
3ff51442e1
Focus: Make focus parent mechanism available without having access to the FocusParentHelper class.
4 years ago
weisj
ec79c4dcf6
Decorations: Only call implementation methods when supported. This protects against scenarios where those methods are called regardless of the outcome of #isCustomDecorationSupported e.g. when uninstalling popup decorations.
4 years ago
weisj
03c715fe0b
DSL: Update coordinates and implement hyperlink click color.
4 years ago
weisj
06f010274b
Formatting: Fix violations
4 years ago
weisj
8c08640f04
Tree: Respect insets when making expanded rows visible.
4 years ago
weisj
9faec7ace4
Update gradle version
4 years ago
weisj
6abca5cdd5
Improve error messages when library loading fails during installation.
4 years ago
weisj
2a1983d0fc
Tree: Use background color of the tree as the non selected background if it has been specifically set by the user. Selection colors will still overwrite this behaviour.
4 years ago
weisj
40e18bc667
Remove unnecessary methods from UIAction.
4 years ago
weisj
e87e43c5f5
Build: Rename swingDsl to swingDsl.lafSupport for more clarity.
4 years ago
weisj
ce78423c33
Delegate getFocusAcceleratorKeyMask to getSystemMnemonicKeyMask in SwingUtilities2
4 years ago
weisj
db7d560871
Everywhere: Remove usage of internal API DefaultLookup.
4 years ago
weisj
9ee79f4329
Everywhere: Remove usage of internal API UIAction.
4 years ago
weisj
164a9f6b13
Everywhere: Remove calls to internal API SwingUtilities2::loc2IndexFileList.
4 years ago
weisj
23ea792664
Everywhere: Remove calls to internal API SwingUtilities2::tabbedPaneChangeFocusTo.
4 years ago
weisj
f8f12a0816
Everywhere: Remove calls to internal API SwingUtilities2::pointOutsidePrefSize.
4 years ago
weisj
e5a5bfda7f
Everywhere: Move calls to internal API SwingUtilities2::clipStringIfNecessary into SwingUtil.
4 years ago
weisj
4b11cc84b9
Everywhere: Move calls to internal API SwingUtilities2::setSkipClickCount to SwingUtil. Remove calls to internal API SwingUtilities2::setLeadAnchorWithoutSelection.
4 years ago