weisj
4b11cc84b9
Everywhere: Move calls to internal API SwingUtilities2::setSkipClickCount to SwingUtil. Remove calls to internal API SwingUtilities2::setLeadAnchorWithoutSelection.
4 years ago
weisj
88cbd8a3a3
Everywhere: Remove calls to internal API SwingUtilities2::shouldIgnore.
4 years ago
weisj
1d7127adc8
Everywhere: Remove calls to internal API SwingUtilities2::drawHLine and SwingUtilities2::drawVLine.
4 years ago
weisj
75db998db6
Everywhere: Move calls to internal API SwingUtilities2::stringWidth into SwingUtil.
4 years ago
weisj
a265ef96b9
Everywhere: Move calls to internal API SwingUtilities2::drawStringUnderlineCharAt and SwingUtilities2::drawString into SwingUtil.
4 years ago
weisj
f60be2d722
Everywhere: Remove calls to internal API SwingUtilities2::getFontMetrics
4 years ago
weisj
4ef86deda0
Settings: If there is no theme currently available (due to no theme being registered) then we should fallback to the default theme offered by the LafManager
4 years ago
weisj
3c9056f29b
Prevent NPE when item to be rendered is null
4 years ago
weisj
5580656e79
Build: Update to Gradle 7
...
Upgrade gradle version to 7.0. Make use of typesafe project and library accessors. These replace the current bom project.
Handle different xCode version on macOS.
4 years ago
weisj
81ac979217
Update implementation of DarklafComponentFactory.
4 years ago
weisj
6406f4ac8a
Tree: Adhere to the default behaviour of left/right key navigation.
...
Navigating left should:
- Collapse the current hierarchy if the node is expanded.
- Select the parent node if existent and the current node is a leaf or not expanded
- Select the first root node otherwise.
Navigating right should:
- Expand the current node if it isn't a leaf.
- Navigate to the first child if the current node is expanded.
- Navigate to the next node otherwise (Darklaf addition)
This fixes #228
4 years ago
weisj
9fc4dc15ca
Demo: Add option to select all available installed Lafs.
4 years ago
weisj
3b5d390d3d
Swing-DSL: Update implementation to match latest changes.
4 years ago
weisj
9ee5b955b6
Fix style violations.
4 years ago
weisj
db9283d51a
SWING-DSL: Provide spacing hints for the swing-dsl library and set a ComponentFactory to provide darklaf specific components.
4 years ago
weisj
d6525b6a89
Tooltip: Replace hacky method of keeping a consistent shadow opacity with better approach.
...
Previously we checked whether the window of the tooltip could possibly be painted multiple times and then set a flag to prevent the shadow from being painted more than once. It is a lot easier to simply erase the background with a transparent color. This may also help with #233 .
4 years ago
weisj
8b3c2705c1
TextField: Include caret spacing in visible editor rect to avoid text shifting when the caret is at the start/end of the line.
4 years ago
weisj
75dacb7ade
QuickColorChooser: Provide spacing between checkbox and color label. This is done using an empty width space as the text of the checkbox.
4 years ago
weisj
436e7c13e3
Installation: Ensure installed theme is reported correctly at all time. We need to avoid to set the installed theme to eagerly as it may be requested during defaults initialisation, which would cause components to query an incorrect color.
4 years ago
weisj
cd2e4747af
LafInstallation: Add theme transition animation when installing the laf using the LafManager. This can be disabled by setting the "darklaf.animatedLafChange" system property to false.
4 years ago
weisj
ddf6105e57
Util: Add convenience method for checking system flags.
4 years ago
weisj
27b04c9673
Util: Move GraphicsUtil to util module.
4 years ago
weisj
2dab2013bf
Util: Remove unused methods.
4 years ago
weisj
b077e3f741
CellHintPopup: Ensure component are children of their respective cell containers/renderer panes, when calculating their preferred/minimum size or during painting.
...
This ensures they have the correct GraphicsConfiguration set, which is used e.g. when retrieving the FontRendererContext/FontMetrics.
4 years ago
weisj
53ebf4e2ae
RootPane: Added logging for size calculations.
...
[MacOS] TitlePane: Added logging for decorations installation.
4 years ago
weisj
29fe87541e
Tooltip: Make use of BufferedImage#getSubImage. Also decrease the shadow opacity for light themes.
4 years ago
weisj
8d94f3b1cf
Tooltip: Consider top shadow when aligning tooltip pointer to bottom of target rectangle.
4 years ago
weisj
c757ee5e0c
Logging: Deprecate LafManager#enableLogging as it may overwrite any set LogLevel. The preferred method is LafManager#setLogLevel.
4 years ago
weisj
2ca2c738d7
Tooltip: Remove unused variable.
4 years ago
weisj
48130902cc
TextField: Pass component to the icon being painted.
4 years ago
weisj
c926b91793
Tooltip: Remove debug painting.
4 years ago
weisj
4e5e6deb68
NumberingPane: Prioritise right before left padding when calculating the number offset.
4 years ago
weisj
7d9e7d73b7
Update year in LICENSE.
4 years ago
weisj
cbf0260358
Tooltip: Correct shadow size insets for top alignment.
4 years ago
weisj
fe4071d8ba
Disable double buffering for cellhint popup renderer. Fixes #232
4 years ago
weisj
f161b369ec
Mark more log statements as level=Finer.
4 years ago
weisj
61706f56b0
Add option to specify the size of the icons displayed in the combobox and center them.
4 years ago
weisj
7bf7030ee5
Move tooltip position adjustments to the border itself.
4 years ago
weisj
4873f9b4b0
Reformat ternary operator.
4 years ago
weisj
86d1c314f0
Respect top tooltip shadow when adjusting the tooltip position for the pointer location.
4 years ago
weisj
770be706c0
Specify correct size in revert icons.
4 years ago
weisj
f691249ae9
Explicitly make settings the tooltip of an AttachedPopupComponent a no-op.
4 years ago
weisj
4b0c5fde66
Avoid filtering icons.
4 years ago
weisj
09083f0bfb
Introduce string literal syntax and load some icon colors trough deferred property resolution at patch time.
4 years ago
weisj
7df17a9abc
Extract listener setup
4 years ago
weisj
bd87d6e84e
Make sure textfield icons are painted using antialiasing.
4 years ago
weisj
83551ef37b
Move GraphicsUtil methods into GraphicsContext as members.
4 years ago
weisj
f2420fb789
Revert last two commits. Using the fallback key actually does nothing.
4 years ago
weisj
68ca38ddeb
Don't overwrite TitlePane.unifiedMenuBar once it is set.
4 years ago
weisj
5879d5089d
Don't overwrite macos.coloredTitleBar once it is set.
4 years ago