Skip to content

Commit

Permalink
IntelliJ Themes:
Browse files Browse the repository at this point in the history
- Fixed too large menu item paddings and too large table/tree row heights (all
  "Material Theme UI Lite" themes; issue #667; regression in FlatLaf 3.1).
- Fixed too large tree row height in "Carbon", "Dark Purple", "Gray",
  "Material Design Dark", "Monokai Pro", "One Dark" and "Spacegray" themes.
  • Loading branch information
DevCharly committed Apr 17, 2023
1 parent 0f67022 commit 4afb150
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
FlatLaf Change Log
==================

## 3.1.1-SNAPSHOT

- IntelliJ Themes:
- Fixed too large menu item paddings and too large table/tree row heights (all
"Material Theme UI Lite" themes; issue #667; regression in FlatLaf 3.1).
- Fixed too large tree row height in "Carbon", "Dark Purple", "Gray",
"Material Design Dark", "Monokai Pro", "One Dark" and "Spacegray" themes.


## 3.1

#### New features and improvements
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,9 +336,14 @@ else if( map.containsKey( "os.default" ) )

uiKeys.add( key );

// fix ComboBox size and Spinner border in all Material UI Lite themes
if( isMaterialUILite && (key.equals( "ComboBox.padding" ) || key.equals( "Spinner.border" )) )
return; // ignore
// ignore some properties that affect sizes
if( key.endsWith( ".border" ) ||
key.endsWith( ".rowHeight" ) ||
key.equals( "ComboBox.padding" ) ||
key.equals( "Spinner.padding" ) ||
key.equals( "Tree.leftChildIndent" ) ||
key.equals( "Tree.rightChildIndent" ) )
return; // ignore

// map keys
key = uiKeyMapping.getOrDefault( key, key );
Expand Down

0 comments on commit 4afb150

Please sign in to comment.