UIDefaultsDump: support dumping IntelliJ themes (disabled)

can be used to check changes to UI defaults when modifying the IntelliJ theme converter
This commit is contained in:
Karl Tauber
2020-04-21 09:37:24 +02:00
parent 7381e2141f
commit aaf9bd33cb
2 changed files with 44 additions and 9 deletions

View File

@@ -25,20 +25,21 @@ import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.formdev.flatlaf.json.Json;
import com.formdev.flatlaf.util.StringUtils;
/**
* @author Karl Tauber
*/
class IJThemesManager
public class IJThemesManager
{
final List<IJThemeInfo> bundledThemes = new ArrayList<>();
final List<IJThemeInfo> moreThemes = new ArrayList<>();
private final Map<File,Long> lastModifiedMap = new HashMap<>();
@SuppressWarnings( "unchecked" )
void loadBundledThemes() {
public void loadBundledThemes() {
bundledThemes.clear();
// load themes.json
@@ -95,4 +96,10 @@ class IJThemesManager
}
return false;
}
public List<String> getBundledResourceNames() {
return bundledThemes.stream()
.map( themeInfo -> themeInfo.resourceName )
.collect( Collectors.toList() );
}
}