Skip to content

Commit

Permalink
refactor: rename package to com.github.catppuccin.jetbrains_icons (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham authored Oct 29, 2023
1 parent 735ac82 commit 977fa51
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ node_modules

### Auto-generated ###
src/main/resources/icons
src/main/kotlin/com/github/catppuccin/icons/Icons.kt
src/main/kotlin/com/github/catppuccin/jetbrains_icons/Icons.kt
12 changes: 6 additions & 6 deletions generate/scripts/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ function generateIcons(variant: CattppucinVariant) {
}

function generateIconsKt() {
let data = `package com.github.catppuccin.icons`
data += `\n\n`
data += `import com.intellij.openapi.util.IconLoader`
data += `\n\n`
data += `class Icons(private val variant: String) {`
let data = `package com.github.catppuccin.jetbrains_icons
import com.intellij.openapi.util.IconLoader
class Icons(private val variant: String) {`

readdirSync('generate/vscode-icons/src/icons').forEach((file) => {
if (!file.endsWith('.svg')) {
Expand Down Expand Up @@ -67,7 +67,7 @@ function generateIconsKt() {

data += `\n}\n`

writeFileSync(`src/main/kotlin/com/github/catppuccin/icons/Icons.kt`, data, {encoding: 'utf-8'})
writeFileSync(`src/main/kotlin/com/github/catppuccin/jetbrains_icons/Icons.kt`, data, {encoding: 'utf-8'})
}

// Modified version of injectPalette from github.com/catppuccin/vscode-icons/scripts/catppuccinize.ts:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.github.catppuccin.icons
package com.github.catppuccin.jetbrains_icons

import com.github.catppuccin.icons.settings.PluginSettingsState
import com.github.catppuccin.jetbrains_icons.settings.PluginSettingsState
import com.intellij.ide.IconProvider
import com.intellij.psi.PsiElement
import com.intellij.psi.util.PsiUtilCore
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.catppuccin.icons.settings
package com.github.catppuccin.jetbrains_icons.settings

import com.intellij.ide.GeneralSettings
import com.intellij.ide.IdeBundle
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.github.catppuccin.icons.settings
package com.github.catppuccin.jetbrains_icons.settings

import com.intellij.openapi.ui.ComboBox
import java.awt.Component
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
package com.github.catppuccin.icons.settings
package com.github.catppuccin.jetbrains_icons.settings

import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.ServiceManager
import com.intellij.openapi.components.State
import com.intellij.openapi.components.Storage
import com.intellij.util.xmlb.XmlSerializerUtil
Expand Down
10 changes: 5 additions & 5 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<idea-plugin>
<id>com.github.catppuccin.icons</id>
<id>com.github.catppuccin.jetbrains_icons</id>
<name>Catppuccin Icons</name>
<vendor url="https://github.com/catppuccin">Catppuccin</vendor>
<description><![CDATA[
Expand Down Expand Up @@ -34,19 +34,19 @@ For further help, see also:
<depends>com.intellij.modules.platform</depends>
<extensions defaultExtensionNs="com.intellij">
<iconProvider
implementation="com.github.catppuccin.icons.IconProvider"
implementation="com.github.catppuccin.jetbrains_icons.IconProvider"
order="first"
id="IconProvider"
/>
<applicationConfigurable
parentId="appearance"
groupId="com.github.catppuccin.icons"
groupId="com.github.catppuccin.jetbrains_icons"
displayName="Catppuccin Icons"
instance="com.github.catppuccin.icons.settings.PluginSettings"
instance="com.github.catppuccin.jetbrains_icons.settings.PluginSettings"
id="PluginSettings"
/>
<applicationService
serviceImplementation="com.github.catppuccin.icons.settings.PluginSettingsState"
serviceImplementation="com.github.catppuccin.jetbrains_icons.settings.PluginSettingsState"
/>
</extensions>
</idea-plugin>

0 comments on commit 977fa51

Please sign in to comment.