Closed weisJ closed 4 years ago
Hey weisJ, thanks for your suggestions. I can't seem to find version 2.0.2 on maven. Also DarkBorders#createLineBorder
does nothing for me, it displays no border (could be the old version). I can't really fulfill your recommendations without a newer version on maven.
I can't seem to find version 2.0.2 on maven.
The artifact was renamed to darklaf-core
a few versions ago. See https://github.com/weisJ/darklaf/blob/master/README.md#artifacts .
Also
DarkBorders#createLineBorder
does nothing for me, it displays no border (could be the old version).
It is due to the old version.
I have switched to the latest version, and I can see that a few things have changed. But what happened to the separator? http://prntscr.com/s2cupr Also is there a way to disable those vertical lines on the divider?
In terms of icons i can't seem to find the icons i need. It's just too big. Do you know the location where they could be?
I have switched to the latest version, and I can see that a few things have changed. But what happened to the separator? http://prntscr.com/s2cupr Also is there a way to disable those vertical lines on the divider?
The line have been added as most use cases require them to be present. What you can do is replace it with a single line
splitpane.putClientProperty("JSplitPane.style", "line");
or make it invisible
splitpane.putClientProperty("JSplitPane.style", "line");
and add manual spacing between the left and right component,
In terms of icons i can't seem to find the icons i need. It's just too big. Do you know the location where they could be?
They are located here
I already browsed that icon path, didn't find them :/ I also noticed that the gap between the left side and the frame icon is smaller, is it possible to revert this change?
They are based on the schema icon (https://resources.jetbrains.com/help/img/idea/2020.1/database-openapi.icons.schema@2x.png). Thanks for your help!
https://jetbrains.design/intellij/resources/icons_list/
Search -> "Schema"
I also noticed that the gap between the left side and the frame icon is smaller
Good catch!
is it possible to revert this change?
Yes :D
How? Also you mistakenly put the line splitpane.putClientProperty("JSplitPane.style", "line");
twice, what would be the other case where i hide it? And is the thing with the JSeparator a bug? (https://prnt.sc/s2cupr)
It also seems like JTextArea.setMargin
is not working anymore, and you should add a border to JDialogs if possible http://prntscr.com/s2hhkc
How? Also you mistakenly put the line
splitpane.putClientProperty("JSplitPane.style", "line");
twice, what would be the other case where i hide it?
It should have been "invisible"
the second time. In the next version (should be tomorrow) you'll be able to specify "gripBorderless"
which reproduces the old behaviour.
And is the thing with the JSeparator a bug? (https://prnt.sc/s2cupr)
Not really a bug. Separators are really intended to be used in Toolbars etc.. They aren't an replacement for borders. Nonetheless I have adjusted them to paint the whole space they occupy.
It also seems like JTextArea.setMargin is not working anymore
Fixed (with next version)
add a border to JDialogs if possible http://prntscr.com/s2hhkc
Not really possible. What did you do to achieve that the windows doesn't have a shadow?
For comparison how it should look like: (No border really necessary here)
If you really want to have the border you can use LafManager#registerInitTask
in which you set the "RootPane.dialogBorder"
property.
I think the shadow looks better, but why is it not displaying?
Some recommendations for improving the UI.
GridLayout
. It ignores their preferred size and makes them too large. Consider using aBox
with glues and spacers for positioning or wrap each button inside aJPanel
withGridBagLayout
andnull
constraints.Some points regarding
darklaf
2.0.2
ThemeSettings
class to achieve this without much work..svg
format (available on the IntelliJ community repo) and load them usingIconLoad#loadIcon
.darklaf-property-loader
for this.darklaf
is to useThemedSVGIcon
with the provided properties. (If you want I can help converting the icons to the correct format).