From e9cb85127a4aa540a2a11c8d9b08293bb5447d6a Mon Sep 17 00:00:00 2001 From: matt-pan <35034195+matt-pan@users.noreply.github.com> Date: Sat, 25 Apr 2020 17:46:57 +0200 Subject: [PATCH] Fix relative resource location Using flatlaf intellijthemes as a dependency does not work for all themes from the subfolder 'material-theme-ui-lite' because of the usage of ".." to to load the resource. --- .../flatlaf/intellijthemes/materialthemeuilite/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flatlaf-intellij-themes/src/main/java/com/formdev/flatlaf/intellijthemes/materialthemeuilite/Utils.java b/flatlaf-intellij-themes/src/main/java/com/formdev/flatlaf/intellijthemes/materialthemeuilite/Utils.java index 93daf20d..b0259d82 100644 --- a/flatlaf-intellij-themes/src/main/java/com/formdev/flatlaf/intellijthemes/materialthemeuilite/Utils.java +++ b/flatlaf-intellij-themes/src/main/java/com/formdev/flatlaf/intellijthemes/materialthemeuilite/Utils.java @@ -32,7 +32,7 @@ class Utils static IntelliJTheme loadTheme( String name ) { try { - return new IntelliJTheme( Utils.class.getResourceAsStream( "../themes/material-theme-ui-lite/" + name ) ); + return new IntelliJTheme( Utils.class.getResourceAsStream( "themes/material-theme-ui-lite/" + name ) ); } catch( ParseException | IOException ex ) { String msg = "FlatLaf: Failed to load IntelliJ theme '" + name + "'"; LOG.log( Level.SEVERE, msg, ex );