Skip to content

Commit 2006a7f

Browse files
fix: fixed the window title color when the paint is up to the library
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
1 parent 2d33137 commit 2006a7f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.github.vincenzopalazzo</groupId>
66
<artifactId>material-ui-swing</artifactId>
7-
<version>1.1.3-rc2-SNAPSHOT</version>
7+
<version>1.1.3-rc3-SNAPSHOT</version>
88
<inceptionYear>2020</inceptionYear>
99
<licenses>
1010
<license>

src/main/java/mdlaf/MaterialLookAndFeel.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -709,16 +709,18 @@ protected void initComponentDefaults(UIDefaults table) {
709709
table.put("InternalFrame.activeTitleBackground", theme.getBackgroundPrimary());
710710
table.put("InternalFrame.activeTitleForeground", theme.getTextColor());
711711
table.put("InternalFrame.inactiveTitleBackground", theme.getBackgroundPrimary());
712-
table.put("InternalFrame.inactiveTitleForeground", theme.getDisableTextColor());
712+
table.put("InternalFrame.inactiveTitleForeground", theme.getTextColor());
713713
table.put("InternalFrame.titleFont", theme.getFontBold());
714714
table.put("InternalFrame.background", theme.getBackgroundPrimary());
715715
table.put("InternalFrame.border", MaterialBorders.DEFAULT_SHADOW_BORDER);
716716

717717
// This is for change the TitlePane
718-
table.put("Material.activeCaption", theme.getMenuBackground());
719-
table.put("Material.inactiveCaption", theme.getMenuBackground());
718+
// FIXME: we may take in consideration to support the Dialog with new properties
719+
// because there use use case that these only are not enough.
720+
table.put("Material.activeCaption", theme.getBackgroundPrimary());
721+
table.put("Material.inactiveCaption", theme.getBackgroundPrimary());
720722
table.put("Material.activeCaptionText", theme.getTextColor());
721-
table.put("Material.inactiveCaptionText", theme.getDisableTextColor());
723+
table.put("Material.inactiveCaptionText", theme.getTextColor());
722724
table.put(
723725
"Material.activeCaptionBorder",
724726
new BorderUIResource(BorderFactory.createLineBorder(theme.getBackgroundPrimary())));

0 commit comments

Comments
 (0)