Skip to content

Commit

Permalink
Add better icons
Browse files Browse the repository at this point in the history
  • Loading branch information
mattco98 committed Jan 21, 2024
1 parent 4b22360 commit c720a22
Show file tree
Hide file tree
Showing 9 changed files with 725 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/me/mattco/serenityos/idl/IDL.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.intellij.openapi.util.IconLoader
import com.intellij.psi.FileViewProvider

object IDLLanguage : Language("SerenityOS IDL") {
val FILE_ICON = IconLoader.getIcon("/META-INF/pluginIcon.svg", IDLLanguage::class.java)
val FILE_ICON = IconLoader.getIcon("/META-INF/idl.svg", IDLLanguage::class.java)
}

object IDLFileType : LanguageFileType(IDLLanguage) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ package me.mattco.serenityos.ipc

import com.intellij.extapi.psi.PsiFileBase
import com.intellij.lang.Language
import com.intellij.openapi.fileTypes.FileType
import com.intellij.openapi.fileTypes.LanguageFileType
import com.intellij.openapi.util.IconLoader
import com.intellij.psi.FileViewProvider

object IPCLanguage : Language("SerenityOS IPC") {
// TODO: Get an icon for this
val FILE_ICON = IconLoader.getIcon("/META-INF/pluginIcon.svg", IPCLanguage::class.java)
val FILE_ICON = IconLoader.getIcon("/META-INF/ipc.png", IPCLanguage::class.java)
}

object IPCFileType : LanguageFileType(IPCLanguage) {
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/META-INF/idl.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/META-INF/ipc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
187 changes: 187 additions & 0 deletions src/main/resources/META-INF/ipc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/resources/META-INF/ipc_without_border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c720a22

Please sign in to comment.