mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2026-02-11 06:27:13 -06:00
for PR #982:
- updated CHANGELOG.md - updated styling unit tests - updated UI defaults dumps - Demo: error/warning/success hints in a single row - Demo: reduced height of "Data comp" tab to make Demo window smaller - IntelliJ themes: fixed missing/overwritten success colors
This commit is contained in:
@@ -725,6 +725,8 @@ public class IntelliJTheme
|
||||
uiKeyMapping.put( "Component.errorFocusColor", "Component.error.focusedBorderColor" );
|
||||
uiKeyMapping.put( "Component.inactiveWarningFocusColor", "Component.warning.borderColor" );
|
||||
uiKeyMapping.put( "Component.warningFocusColor", "Component.warning.focusedBorderColor" );
|
||||
uiKeyMapping.put( "Component.inactiveSuccessFocusColor", "Component.success.borderColor" );
|
||||
uiKeyMapping.put( "Component.successFocusColor", "Component.success.focusedBorderColor" );
|
||||
|
||||
// Label
|
||||
uiKeyMapping.put( "Label.disabledForegroundColor", "" ); // ignore (used in Material Theme UI Lite)
|
||||
|
||||
@@ -1080,6 +1080,8 @@ public class TestFlatStyleableInfo
|
||||
"error.focusedBorderColor", Color.class,
|
||||
"warning.borderColor", Color.class,
|
||||
"warning.focusedBorderColor", Color.class,
|
||||
"success.borderColor", Color.class,
|
||||
"success.focusedBorderColor", Color.class,
|
||||
"custom.borderColor", Color.class,
|
||||
|
||||
"outline", String.class,
|
||||
|
||||
@@ -1024,6 +1024,8 @@ public class TestFlatStyleableValue
|
||||
testColor( c, ui, "error.focusedBorderColor", 0x123456 );
|
||||
testColor( c, ui, "warning.borderColor", 0x123456 );
|
||||
testColor( c, ui, "warning.focusedBorderColor", 0x123456 );
|
||||
testColor( c, ui, "success.borderColor", 0x123456 );
|
||||
testColor( c, ui, "success.focusedBorderColor", 0x123456 );
|
||||
testColor( c, ui, "custom.borderColor", 0x123456 );
|
||||
|
||||
testString( c, ui, "outline", "error" );
|
||||
@@ -1121,6 +1123,8 @@ public class TestFlatStyleableValue
|
||||
testValue( border, "error.focusedBorderColor", Color.WHITE );
|
||||
testValue( border, "warning.borderColor", Color.WHITE );
|
||||
testValue( border, "warning.focusedBorderColor", Color.WHITE );
|
||||
testValue( border, "success.borderColor", Color.WHITE );
|
||||
testValue( border, "success.focusedBorderColor", Color.WHITE );
|
||||
testValue( border, "custom.borderColor", Color.WHITE );
|
||||
}
|
||||
|
||||
|
||||
@@ -1278,6 +1278,8 @@ public class TestFlatStyling
|
||||
applyStyle.accept( "error.focusedBorderColor: #fff" );
|
||||
applyStyle.accept( "warning.borderColor: #fff" );
|
||||
applyStyle.accept( "warning.focusedBorderColor: #fff" );
|
||||
applyStyle.accept( "success.borderColor: #fff" );
|
||||
applyStyle.accept( "success.focusedBorderColor: #fff" );
|
||||
applyStyle.accept( "custom.borderColor: desaturate(#f00,50%,relative derived noAutoInverse)" );
|
||||
|
||||
applyStyle.accept( "outline: error" );
|
||||
@@ -1363,6 +1365,8 @@ public class TestFlatStyling
|
||||
border.applyStyleProperty( "error.focusedBorderColor", Color.WHITE );
|
||||
border.applyStyleProperty( "warning.borderColor", Color.WHITE );
|
||||
border.applyStyleProperty( "warning.focusedBorderColor", Color.WHITE );
|
||||
border.applyStyleProperty( "success.borderColor", Color.WHITE );
|
||||
border.applyStyleProperty( "success.focusedBorderColor", Color.WHITE );
|
||||
border.applyStyleProperty( "custom.borderColor", Color.WHITE );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user