You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2022. It is now read-only.
I can understand the opaque property need to be set to false with "Rounded Corners" but i don't see why we need the contrary : set it to true when corners are not rounded.
In the SubstanceInternalFrameUI.java file, we can found the following code at line 149 (installListeners) :
...
else if (SubstanceLookAndFeel.WINDOW_ROUNDED_CORNERS.equals(propertyName)
|| JInternalFrame.IS_MAXIMUM_PROPERTY.equals(propertyName))
{
frame.setOpaque(!SubstanceCoreUtilities.isRoundedCorners(frame));
}
where i expect something like :
else if (SubstanceLookAndFeel.WINDOW_ROUNDED_CORNERS.equals(propertyName)
|| JInternalFrame.IS_MAXIMUM_PROPERTY.equals(propertyName))
{
if (SubstanceCoreUtilities.isRoundedCorners(frame))
frame.setOpaque(false);
}
This way we can have our own InternalFrame with some derived custom transparent paint.
Of course i could override the isOpaque() and force to return false but i don't find that really elegant.
By the way, you did a very nice job on the library, i just upgraded to the last version and it fixed many annoying repaint bugs we had in our application. Also the integration of the system menu in frame is very welcome, we had to patch the library before and now the support is native. Thanks again for your awesome work :)
The text was updated successfully, but these errors were encountered:
I can understand the opaque property need to be set to false with "Rounded Corners" but i don't see why we need the contrary : set it to true when corners are not rounded.
In the SubstanceInternalFrameUI.java file, we can found the following code at line 149 (installListeners) :
where i expect something like :
This way we can have our own InternalFrame with some derived custom transparent paint.
Of course i could override the isOpaque() and force to return false but i don't find that really elegant.
By the way, you did a very nice job on the library, i just upgraded to the last version and it fixed many annoying repaint bugs we had in our application. Also the integration of the system menu in frame is very welcome, we had to patch the library before and now the support is native. Thanks again for your awesome work :)
The text was updated successfully, but these errors were encountered: