Demo/Testing: use IntelliJ Theme Laf classes (from package com.formdev.flatlaf.intellijthemes) in Demo and Testing apps instead of directly loading .theme.json (preparation for #824)

This commit is contained in:
Karl Tauber
2025-02-25 15:50:30 +01:00
parent 68b8769d0d
commit d26eb2674f
9 changed files with 133 additions and 129 deletions

View File

@@ -576,7 +576,7 @@ public class FlatTestFrame
UIManager.put( "defaultFont", null );
LookAndFeel lookAndFeel = UIManager.getLookAndFeel();
IntelliJTheme theme = (lookAndFeel instanceof IntelliJTheme.ThemeLaf)
IntelliJTheme theme = (lookAndFeel.getClass() == IntelliJTheme.ThemeLaf.class)
? ((IntelliJTheme.ThemeLaf)lookAndFeel).getTheme()
: null;
String nameForProperties = null;