Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate to catppuccin pallette #1

Merged
merged 10 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ dist
node_modules
.vscode-test/
*.vsix
src/symbol-icon-theme.modified.json
src/symbol-icon-theme.bkp.json
src/catppuccin-noctis-icon-theme.modified.json
src/catppuccin-noctis-icon-theme.bkp.json
.DS_Store
yarn.lock
305 changes: 3 additions & 302 deletions CHANGELOG.md

Large diffs are not rendered by default.

22 changes: 7 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,30 @@

<img src="https://raw.githubusercontent.com/misolori/vscode-symbols/main/symbols.png" width="140" />

# Symbols
# Catppuccin Noctis Icons

A file icon for VS Code
A fork of [Symbols Icons](https://github.com/miguelsolorio/vscode-symbols)

![Preview of extension](https://github.com/misolori/vscode-symbols/raw/main/preview.png)
![Preview of extension](preview.png)

</div>

## Contributing

If you'd like to contribute to this extension, please take a look at the issues or create a new one. If you'd like to create a new icon, please reference the [Symbols - File Icon Figma file](https://www.figma.com/file/HYLMyRbIdSbIJQlqnd9pSN/Symbols---File-Icons?node-id=20521%3A84115&t=PyBzZOlVG5TXyEdx-1), you can make a copy or reference the styles used (tailwind). Please try to limit your colors to the ones used in existing icons before choosing a different color style.

When submitting a PR, please ensure you've tested the extension locally and ensure that your new icons appear correctly in the file tree view with your new file extension. Include a screenshot of your proposed icon in your PR.

## Configuration

You can configure which folders and files icons are displayed by using the following settings:

### Folders

```json
"symbols.folders.associations": {
"catppuccin-noctis-icons.folders.associations": {
"{folder name}": "{icon name}"
}
```

And here is an example using this setting:

```json
"symbols.folders.associations": {
"catppuccin-noctis-icons.folders.associations": {
"entities": "folder-assets",
"infra": "folder-app",
"schemas": "folder-purple"
Expand All @@ -41,15 +35,15 @@ And here is an example using this setting:
### Files

```json
"symbols.files.associations": {
"catppuccin-noctis-icons.files.associations": {
"{file name}": "{icon name}"
}
```

And here is an example:

```json
"symbols.files.associations": {
"catppuccin-noctis-icons.files.associations": {
"app.module.ts": "nest",
"*.service.ts": "nest"
}
Expand All @@ -59,8 +53,6 @@ _Note: For file names, you can use `*` to match all files with a specific file e

### Icon Previews

You can choose which icons to use from the [Library](https://www.figma.com/file/HYLMyRbIdSbIJQlqnd9pSN/Symbols---File-Icons?node-id=20521%3A84115&t=PyBzZOlVG5TXyEdx-1):

<details>
<summary>Preview</summary>

Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

54 changes: 32 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,59 +1,69 @@
{
"name": "symbols",
"displayName": "Symbols",
"description": "A simple file icon theme for VS Code",
"version": "0.0.18",
"publisher": "miguelsolorio",
"name": "catppuccin-noctis-icons",
"displayName": "Catppuccin Noctis Icons",
"description": "A companion icons theme for Catppuccin Noctis color theme. Forked from Symbols Icon Theme",
"version": "0.0.1",
"publisher": "alexdauenhauer",
"icon": "symbols.png",
"preview": true,
"main": "./src/extension.js",
"engines": {
"vscode": "^1.88.0"
},
"categories": ["Themes"],
"extensionKind": ["ui", "workspace"],
"keywords": ["icons", "theme", "icon-theme", "file-icon-theme", "file icons"],
"categories": [
"Themes"
],
"extensionKind": [
"ui",
"workspace"
],
"keywords": [
"icons",
"theme",
"icon-theme",
"file-icon-theme",
"file icons"
],
"repository": {
"type": "git",
"url": "https://github.com/misolori/vscode-symbols.git"
},
"bugs": {
"url": "https://github.com/misolori/vscode-symbols/issues"
"url": "https://github.com/alexdauenhauer/catppuccin-noctis-icons.git"
},
"author": {
"name": "Miguel Solorio"
"name": "Alex Dauenhauer"
},
"capabilities": {
"untrustedWorkspaces": {
"supported": true
},
"virtualWorkspaces": true
},
"activationEvents": ["onStartupFinished"],
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"iconThemes": [
{
"id": "symbols",
"label": "Symbol Icons",
"path": "./src/symbol-icon-theme.modified.json",
"id": "catppuccin noctis icons",
"label": "Catppuccin Noctis Icons",
"path": "./src/catppuccin-noctis-icon-theme.modified.json",
"_watch": true
}
],
"configuration": {
"type": "object",
"title": "Symbols",
"title": "Catppuccin Noctis Icons",
"properties": {
"symbols.hidesExplorerArrows": {
"catppuccin-noctis-icons.hidesExplorerArrows": {
"type": "boolean",
"default": false,
"description": "Hide arrow icons in the explorer section."
},
"symbols.folders.associations": {
"catppuccin-noctis-icons.folders.associations": {
"type": "object",
"default": {},
"description": "With this configuration can customize the folder icons."
},
"symbols.files.associations": {
"catppuccin-noctis-icons.files.associations": {
"type": "object",
"default": {},
"description": "With this configuration can customize the files icons."
Expand Down Expand Up @@ -86,4 +96,4 @@
"release": true
}
}
}
}
Binary file modified preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/angular-component.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/angular-service.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/angular.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/astro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/audio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/babel.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/biome.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/brackets-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/brackets-gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/brackets-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/brackets-orange.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/brackets-purple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/brackets-red.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/brackets-sky.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/brackets-yellow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/bun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/capacitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/clojure.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/cloudflare-workers.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/cmake.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/code-blue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/code-gray.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/code-green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified preview/files/code-orange.png
Binary file modified preview/files/code-purple.png
Binary file modified preview/files/code-red.png
Binary file modified preview/files/code-sky.png
Binary file modified preview/files/code-yellow.png
Binary file modified preview/files/coffeescript.png
Binary file modified preview/files/coldfusion.png
Binary file modified preview/files/contentlayer.png
Binary file modified preview/files/cplus.png
Binary file modified preview/files/crystal.png
Binary file modified preview/files/csharp.png
Binary file modified preview/files/csv.png
Binary file modified preview/files/cucumber.png
Binary file modified preview/files/cypress.png
Binary file modified preview/files/dart.png
Binary file modified preview/files/database.png
Binary file modified preview/files/deno.png
Binary file modified preview/files/docker.png
Binary file modified preview/files/document.png
Binary file modified preview/files/drawio.png
Binary file modified preview/files/drizzle.png
Binary file modified preview/files/dts.png
Binary file modified preview/files/dune.png
Binary file modified preview/files/earthfile.png
Binary file modified preview/files/editorconfig.png
Binary file modified preview/files/elixir.png
Binary file modified preview/files/erlang.png
Binary file modified preview/files/eslint.png
Binary file modified preview/files/exe.png
Binary file modified preview/files/expressive-code.png
Binary file modified preview/files/firebase.png
Binary file modified preview/files/font.png
Binary file modified preview/files/fsharp.png
Binary file modified preview/files/gatsby.png
Binary file modified preview/files/gear.png
Binary file modified preview/files/gif.png
Binary file modified preview/files/git.png
Binary file modified preview/files/github.png
Binary file modified preview/files/gleam.png
Binary file modified preview/files/go-mod.png
Binary file modified preview/files/go.png
Binary file modified preview/files/gradle.png
Binary file modified preview/files/graphql.png
Binary file modified preview/files/gulp.png
Binary file modified preview/files/h.png
Binary file modified preview/files/haml.png
Binary file modified preview/files/haskell.png
Binary file modified preview/files/http.png
Binary file modified preview/files/hugo.png
Binary file modified preview/files/i18n.png
Binary file removed preview/files/ignore-1.png
Diff not rendered.
Binary file modified preview/files/ignore.png
Binary file modified preview/files/image.png
Binary file modified preview/files/ionic.png
Binary file modified preview/files/java.png
Binary file modified preview/files/jenkins.png
Binary file modified preview/files/jest.png
Binary file modified preview/files/js-test.png
Binary file modified preview/files/js.png
Binary file modified preview/files/julia-markdown.png
Binary file modified preview/files/julia.png
Binary file modified preview/files/keystatic.png
Binary file modified preview/files/knip.png
Binary file modified preview/files/kotlin.png
Binary file modified preview/files/laravel.png
Binary file modified preview/files/license.png
Binary file modified preview/files/liquid.png
Binary file modified preview/files/lock.png
Binary file modified preview/files/lua.png
Binary file modified preview/files/lunaria.png
Binary file modified preview/files/markdoc.png
Binary file modified preview/files/markdown.png
Binary file modified preview/files/mdx.png
Binary file modified preview/files/minecraft.png
Binary file modified preview/files/nest-controller.png
Binary file modified preview/files/nest-service.png
Binary file modified preview/files/nest.png
Binary file modified preview/files/netlify.png
Binary file modified preview/files/next.png
Binary file modified preview/files/nix.png
Binary file modified preview/files/node.png
Binary file modified preview/files/nodemon.png
Binary file modified preview/files/notebook.png
Binary file modified preview/files/npm.png
Binary file modified preview/files/nunjucks.png
Binary file modified preview/files/nuxt.png
Binary file modified preview/files/ocaml.png
Binary file modified preview/files/panda.png
Binary file modified preview/files/patch.png
Binary file modified preview/files/pdf.png
Binary file modified preview/files/perl.png
Binary file modified preview/files/php.png
Binary file modified preview/files/pkl.png
Binary file modified preview/files/pnpm.png
Binary file modified preview/files/postcss.png
Binary file modified preview/files/prettier.png
Binary file modified preview/files/prisma.png
Binary file modified preview/files/proto.png
Binary file modified preview/files/pug.png
Binary file modified preview/files/pulumi.png
Binary file modified preview/files/puzzle.png
Binary file modified preview/files/python.png
Binary file modified preview/files/r.png
Binary file modified preview/files/razor.png
Binary file modified preview/files/react-test.png
Binary file modified preview/files/react-ts.png
Binary file modified preview/files/react.png
Binary file modified preview/files/redux-actions.png
Binary file modified preview/files/redux-effects.png
Binary file modified preview/files/redux-facade.png
Binary file modified preview/files/redux-reducer.png
Binary file modified preview/files/redux-selector.png
Binary file modified preview/files/rescript-interface.png
Binary file modified preview/files/rescript.png
Binary file modified preview/files/robot.png
Binary file modified preview/files/rome.png
Binary file modified preview/files/ruby.png
Binary file modified preview/files/rust.png
Binary file modified preview/files/sanity.png
Binary file modified preview/files/sass.png
Binary file modified preview/files/sbt.png
Binary file modified preview/files/scala.png
Binary file modified preview/files/severless.png
Binary file modified preview/files/shell.png
Binary file modified preview/files/solidity.png
Binary file modified preview/files/storybook.png
Binary file modified preview/files/stylelint.png
Binary file modified preview/files/stylus.png
Binary file modified preview/files/supabase.png
Binary file modified preview/files/svelte-ts.png
Binary file modified preview/files/svelte.png
Binary file modified preview/files/svg.png
Binary file modified preview/files/svx.png
Binary file modified preview/files/swc.png
Binary file modified preview/files/swift.png
Binary file modified preview/files/tailwind.png
Binary file removed preview/files/target.png
Diff not rendered.
Binary file modified preview/files/terraform.png
Binary file modified preview/files/tex.png
Binary file modified preview/files/text.png
Binary file modified preview/files/ts-test.png
Binary file modified preview/files/ts.png
Binary file modified preview/files/tsconfig.png
Binary file modified preview/files/turborepo.png
Binary file modified preview/files/twig.png
Binary file modified preview/files/unocss.png
Binary file modified preview/files/v.png
Binary file modified preview/files/vanilla-extract.png
Binary file modified preview/files/vercel.png
Binary file modified preview/files/video.png
Binary file modified preview/files/visual-studio.png
Binary file modified preview/files/vite.png
Binary file modified preview/files/vitest.png
Binary file modified preview/files/vue.png
Binary file modified preview/files/webpack.png
Binary file modified preview/files/xml.png
Binary file modified preview/files/yaml.png
Binary file modified preview/files/yarn.png
Binary file modified preview/files/zig.png
Binary file removed preview/files/zip.png
Diff not rendered.
Binary file modified preview/folders/folder-actions.png
Binary file modified preview/folders/folder-android.png
Binary file modified preview/folders/folder-angular.png
Binary file modified preview/folders/folder-app.png
Binary file modified preview/folders/folder-assets.png
Binary file modified preview/folders/folder-auth.png
Binary file modified preview/folders/folder-blue-code.png
Binary file modified preview/folders/folder-blue-outline.png
Binary file modified preview/folders/folder-blue.png
Binary file modified preview/folders/folder-config.png
Binary file modified preview/folders/folder-context.png
Binary file modified preview/folders/folder-core.png
Binary file modified preview/folders/folder-database.png
Binary file modified preview/folders/folder-drizzle.png
Binary file modified preview/folders/folder-effects.png
Binary file modified preview/folders/folder-facade.png
Binary file modified preview/folders/folder-firebase.png
Binary file modified preview/folders/folder-github.png
Binary file modified preview/folders/folder-gray-code.png
Binary file modified preview/folders/folder-gray-outline.png
Binary file modified preview/folders/folder-gray.png
Binary file modified preview/folders/folder-green-code.png
Binary file modified preview/folders/folder-green-outline.png
Binary file modified preview/folders/folder-green.png
Binary file modified preview/folders/folder-helpers.png
Binary file removed preview/folders/folder-images.png
Diff not rendered.
Binary file removed preview/folders/folder-intefaces.png
Diff not rendered.
Binary file added preview/folders/folder-interfaces.png
Binary file modified preview/folders/folder-ios.png
Binary file modified preview/folders/folder-layout.png
Binary file modified preview/folders/folder-mail.png
Binary file modified preview/folders/folder-middleware.png
Binary file modified preview/folders/folder-models.png
Binary file modified preview/folders/folder-modules.png
Binary file added preview/folders/folder-open.png
Binary file added preview/folders/folder-orange-code-1.png
Binary file added preview/folders/folder-orange-code-2.png
Binary file added preview/folders/folder-orange-code-3.png
Binary file added preview/folders/folder-orange-code-4.png
Binary file modified preview/folders/folder-orange-code.png
Binary file modified preview/folders/folder-orange-outline.png
Binary file modified preview/folders/folder-orange.png
Binary file modified preview/folders/folder-prisma.png
Binary file modified preview/folders/folder-purple-code.png
Binary file modified preview/folders/folder-purple-outline.png
Binary file modified preview/folders/folder-purple.png
Binary file modified preview/folders/folder-red-code.png
Binary file modified preview/folders/folder-red-outline.png
Binary file modified preview/folders/folder-red.png
Binary file modified preview/folders/folder-reducer.png
Binary file modified preview/folders/folder-router.png
Binary file modified preview/folders/folder-selector.png
Binary file modified preview/folders/folder-shared.png
Binary file modified preview/folders/folder-sky-code.png
Binary file modified preview/folders/folder-sky-outline.png
Binary file modified preview/folders/folder-sky.png
Binary file added preview/folders/folder-src.png
Binary file modified preview/folders/folder-supabase.png
Binary file modified preview/folders/folder-target.png
Binary file modified preview/folders/folder-tina.png
Binary file modified preview/folders/folder-utils.png
Binary file modified preview/folders/folder-vercel.png
Binary file modified preview/folders/folder-yellow-code.png
Binary file modified preview/folders/folder-yellow-outline.png
Binary file modified preview/folders/folder-yellow.png
Binary file modified preview/folders/folder.png
Binary file removed preview/folders/mail.png
Diff not rendered.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const { log } = require("./lib/log");
* @param {vscode.ExtensionContext} context
*/
async function activate(context) {
log.info("miguelsolorio.symbols activated");
log.info("alexdauenhauer.catppuccin-noctis-icons activated");
await syncOriginal();
monitorConfigChanges();

Expand All @@ -19,7 +19,7 @@ async function activate(context) {
});
}

function deactivate() {}
function deactivate() { }

// eslint-disable-next-line no-undef
module.exports = {
Expand Down
39 changes: 39 additions & 0 deletions src/icons/convert_svg_to_png.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import argparse
import os

import cairosvg


def parse_args():
parser = argparse.ArgumentParser(description="Parse command line arguments.")

# Add arguments
parser.add_argument("-i", "--input", type=str, default="src/icons/files")
parser.add_argument("-o", "--output", type=str, default="preview/files")

args = parser.parse_args()

return args


def main():
args = parse_args()
input_dir = args.input
output_dir = args.output
os.makedirs(output_dir, exist_ok=True)

for filename in os.listdir(input_dir):
if filename.endswith(".svg"):
# Define the full input and output file paths
svg_path = os.path.join(input_dir, filename)
png_path = os.path.join(output_dir, filename.replace(".svg", ".png"))

# Convert SVG to PNG
cairosvg.svg2png(url=svg_path, write_to=png_path)
print(f"Converted {filename} to PNG")

print("Batch conversion completed.")


if __name__ == "__main__":
main()
6 changes: 4 additions & 2 deletions src/icons/files/angular-component.svg
6 changes: 4 additions & 2 deletions src/icons/files/angular-service.svg
6 changes: 4 additions & 2 deletions src/icons/files/angular.svg
6 changes: 4 additions & 2 deletions src/icons/files/astro.svg
12 changes: 6 additions & 6 deletions src/icons/files/audio.svg
6 changes: 4 additions & 2 deletions src/icons/files/babel.svg
5 changes: 3 additions & 2 deletions src/icons/files/biome.svg
Loading