weisj
8539c5ec2f
Decorations: Make resize area smaller over window buttons
3 years ago
weisj
c190762ffa
Decorations: Adjust windows rect to have resize area outside frame
...
We should give the os enough space outside the frame to handle the
resize area itself.
This avoids issues with scrollbars at the window edge etc.
Fixes #266
3 years ago
weisj
812bf630da
Decorations: Mark popups as non-resizable on Windows
3 years ago
weisj
ca35e6ca67
Decorations: Remove DecorationsProvider#adjustWindowInsets
...
It was only used on Windows, where it is currently always
an effective no-op as the insets were adjusted by zero
values. In fact with non-zero adjustments the result was
an incorrectly sized window.
3 years ago
weisj
81fc63ff10
Windows: Fix errorprone warnings
3 years ago
weisj
f685afca0f
Build: Make library file names unique across target machines
...
This allows us to flatten the library directory. It also
enables the possibility of having all libraries inside the
same directory
Relates to #262
3 years ago
weisj
73692487ac
Decorations: Allow for back-stealing of the unified menubar
...
Fixes #258
3 years ago
weisj
12f68839df
Test: More tests about library packaging
3 years ago
weisj
774e4fea4d
Modules: Fix resource loading when running on the module path.
3 years ago
weisj
4283d52422
NativeUtils: Rename package from platform to nativeutil
3 years ago
weisj
be6fa54058
Modules: Move utils in darklaf to ui.utils to avoid split packages. Move classes in property-loader to the properties subpackage to avoid split packages.
3 years ago
weisj
e716522288
Build: Add and compile module info
...
We add a custom task to compile the module-info with a newer java version.
To ensure the module-info is correct we need to compile it together with all other project sources.
3 years ago
weisj
d80a42efdd
Native: Fix loading jawt.dll failing on some jdks
3 years ago
weisj
a2c3af4d86
Windows: Remove dependency on JNA
3 years ago
weisj
e174ff15ca
Actions+Native: Upload arm64 library on macOS.
...
Upload the arm64 library on macos so it can be consumed by the build on other platforms. We also print the file information to check that the produced library really targets the correct arch.
3 years ago
Jannis Weis
ba61872272
Build: Extract optimization level compiler arguments setup.
3 years ago
weisj
542dbf3cb7
Modules + MenuItem: Use java-compatibility.jar from intelliJ to replace swing internal api calls. Because this also replaces the MenuItemLayoutHelper we need to unify the implementation of DarkMenuItemUIBase and DarkMenuUI. This is done by extracting all functionality into the MenuItemUI interface for which the implementing classes need to provide the necessary details.
3 years ago
weisj
8215cd1bc1
NativeLibs: Check whether the corresponding native library can be loaded, when selecting the decorations provider.
...
To do this properly we add new flags to SystemInfo indicating whether the current arch supports X86 or is an ARM/M1 based cpu. The X86 support detection is most definitely incorrect but will work for most common processors. Relates to #240
3 years ago
weisj
3457eeb694
Memory: Ensure shared static helpers don't prevent ui classes from being garbage collected.
4 years ago
weisj
7bc2470a83
Windows-Native: Initialize all struct members with a default value on construction.
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
a31e78ced4
Migrate buildSrc from Groovy to Kotlin
4 years ago
weisj
e937d09365
[Windows] BuildScr: Enable warnings for native code.
4 years ago
weisj
5c3900d319
[Windows] NativeLib: Change c-style casts to static_cast<>
4 years ago
weisj
1489be4963
[Windows] Decorations: Add logging.
4 years ago
weisj
7d9e7d73b7
Update year in LICENSE.
4 years ago
weisj
f5d7873a23
Require colors to start with #. This avoid ambiguity between numbers and colors.
4 years ago
weisj
d398cb91aa
Derive selection color from accent color (on windows)
4 years ago
weisj
029be4f873
Make helper classes final.
4 years ago
weisj
00c6f09589
Remove unneeded +1.
4 years ago
weisj
fd50bb8cd2
Don't decrease titlebar size if no border is painted.
4 years ago
weisj
50284319b7
Add property on rootpane to hide titlebar. Fixes #211
4 years ago
weisj
380abfdfa1
Load resource bundles through UIDefaults.
...
Update rollover status of tabframe tab after moving it's position.
Add localization for colorwheel panel.
Ensure localized text is loaded from basic/metal resources for localized text.
4 years ago
weisj
ae473cb7a1
Updated code style
...
- Keep simple if in one line.
- Wrap enum declarations if necessary.
4 years ago
weisj
9928b9afd4
Switched to google formatting with increased linewidth and indentation size.
4 years ago
weisj
a464d233d1
Updated formatting rules.
4 years ago
weisj
501852d5f7
Properly calculate preferred width of windows title pane.
4 years ago
weisj
1280b7d8d0
Add fullscreen demo.
...
Some libraries achieve true fullscreen by making the menu bar invisible. We want to respect this for the combined menubar.
4 years ago
weisj
d6fd046276
Replace magic value with named constant.
...
Replace macros with constexpr.
Replace c style casts with static_cast.
4 years ago
weisj
c6ed9a89ad
Update cpp format.
4 years ago
weisj
2e3e443d9c
Remove unnecessary flag.
4 years ago
weisj
cbf57eb86e
Use Native.getWindowID instead of Native.getComponentID.
4 years ago
weisj
66dc706974
Fix style violations.
4 years ago
weisj
f94d72b408
Add components in correct order.
4 years ago
weisj
e2ed1ffc46
Add option to toggle unified menubar.
4 years ago
weisj
25470e97a3
Reduce flickering when switching theme on windows.
4 years ago
weisj
8e363503c4
Properly handle toggling decorations on Windows.
4 years ago
weisj
59a3feb25c
Check if libraries are present.
4 years ago
weisj
1e3693b3a2
Make sure HTCAPTION is only returned if mouse is currently pressed.
4 years ago
weisj
1b913e94b7
Undo svg simplification.
4 years ago