From 1d3d4a6e72080a1f83553a431c6a5b79c034d691 Mon Sep 17 00:00:00 2001 From: Hao Li Date: Wed, 20 Nov 2024 15:29:41 +0100 Subject: [PATCH 1/2] txt format will use default icon, because CMakeLists.txt should use cmake icon --- src/nl/hannahsten/texifyidea/TexifyIcons.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nl/hannahsten/texifyidea/TexifyIcons.kt b/src/nl/hannahsten/texifyidea/TexifyIcons.kt index 3493e52d6..2b26cf12e 100644 --- a/src/nl/hannahsten/texifyidea/TexifyIcons.kt +++ b/src/nl/hannahsten/texifyidea/TexifyIcons.kt @@ -290,7 +290,7 @@ object TexifyIcons { "cls" -> CLASS_FILE "dtx" -> DOCUMENTED_LATEX_SOURCE "sty" -> STYLE_FILE - "txt" -> TEXT_FILE +// "txt" -> TEXT_FILE "tikz" -> TIKZ_FILE "log" -> TEXT_FILE "pdf" -> PDF_FILE From 9935bf195b2993aa957ed7778243de867e3c64a4 Mon Sep 17 00:00:00 2001 From: Thomas Schouten Date: Thu, 21 Nov 2024 18:58:10 +0100 Subject: [PATCH 2/2] Remove commented out code --- src/nl/hannahsten/texifyidea/TexifyIcons.kt | 1 - .../hannahsten/texifyidea/ui/TeXiFyProjectViewNodeDecorator.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nl/hannahsten/texifyidea/TexifyIcons.kt b/src/nl/hannahsten/texifyidea/TexifyIcons.kt index 2b26cf12e..34f4201e0 100644 --- a/src/nl/hannahsten/texifyidea/TexifyIcons.kt +++ b/src/nl/hannahsten/texifyidea/TexifyIcons.kt @@ -290,7 +290,6 @@ object TexifyIcons { "cls" -> CLASS_FILE "dtx" -> DOCUMENTED_LATEX_SOURCE "sty" -> STYLE_FILE -// "txt" -> TEXT_FILE "tikz" -> TIKZ_FILE "log" -> TEXT_FILE "pdf" -> PDF_FILE diff --git a/src/nl/hannahsten/texifyidea/ui/TeXiFyProjectViewNodeDecorator.kt b/src/nl/hannahsten/texifyidea/ui/TeXiFyProjectViewNodeDecorator.kt index 97a0545f6..ea11eb010 100644 --- a/src/nl/hannahsten/texifyidea/ui/TeXiFyProjectViewNodeDecorator.kt +++ b/src/nl/hannahsten/texifyidea/ui/TeXiFyProjectViewNodeDecorator.kt @@ -30,7 +30,7 @@ class TeXiFyProjectViewNodeDecorator : ProjectViewNodeDecorator { // Allow Material design plugins to take over the icons // For file types registered in plugin.xml this happens automatically if (PluginManager.getLoadedPlugins().none { it.name.contains("Material") }) { - // Make sure to now override non-LaTeX extensions with the default icon + // Make sure to not override non-LaTeX extensions with the default icon val icon = TexifyIcons.getIconFromExtension(extension.lowercase(Locale.getDefault()), default = null) ?: return presentationData.setIcon(icon) }