Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Learn more at [githubicons.com](https://githubicons.com/).

## Icon Themes

Choose from eight icon themes in the extension popup:
Choose from nine icon themes in the extension popup:

| Theme | Icons | Source |
|-------|-------|--------|
Expand All @@ -18,6 +18,7 @@ Choose from eight icon themes in the extension popup:
| **Great Icons** | 290+ | [vscode-great-icons](https://github.com/EmmanuelBeziat/vscode-great-icons) |
| **Mizu Icons** | 700+ | [cdfzo/mizu](https://codeberg.org/cdfzo/mizu) |
| **Icons - Maintained** | 750+ | [yusifaliyevpro/vscode-icons](https://github.com/yusifaliyevpro/vscode-icons) |
| **JetBrains** | 90+ | [ardonplay/vscode-jetbrains-icon-theme](https://github.com/ardonplay/vscode-jetbrains-icon-theme) |

## Install

Expand Down
2 changes: 2 additions & 0 deletions entrypoints/popup/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const TOP_LEVEL_THEMES: { value: ThemeId; label: string }[] = [
{ value: 'great-icons', label: 'Great Icons' },
{ value: 'mizu', label: 'Mizu Icons' },
{ value: 'icons-maintained', label: 'Icons - Maintained' },
{ value: 'jetbrains', label: 'JetBrains' },
];

const MATERIAL_SUB_PACKS: { value: MaterialPackId; label: string }[] = [
Expand All @@ -36,6 +37,7 @@ const STANDALONE_THEMES: Set<string> = new Set([
'great-icons',
'mizu',
'icons-maintained',
'jetbrains',
]);

function packToTheme(pack: ThemePackId): ThemeId {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "chrome-github-icons",
"description": "Cross-browser extension that replaces GitHub file icons with Material Design icons.",
"private": true,
"version": "0.9.0",
"version": "0.10.0",
"type": "module",
"scripts": {
"sync:assets": "tsx scripts/copy-icons.ts",
Expand Down
10 changes: 9 additions & 1 deletion scripts/copy-icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { readFileSync } from 'node:fs';
import { dirname, resolve } from 'node:path';
import { fileURLToPath } from 'node:url';

import { buildMaterialThemeManifests, buildVscodeIconsManifest, buildSetiManifest, buildSymbolsManifest, buildCatppuccinManifest, buildGreatIconsManifest, buildMizuManifest, buildIconsMaintainedManifest, ALL_THEME_PACKS } from '../src/icon-engine/manifest-builder';
import { buildMaterialThemeManifests, buildVscodeIconsManifest, buildSetiManifest, buildSymbolsManifest, buildCatppuccinManifest, buildGreatIconsManifest, buildMizuManifest, buildIconsMaintainedManifest, buildJetBrainsManifest, ALL_THEME_PACKS } from '../src/icon-engine/manifest-builder';
import type { Manifest } from 'material-icon-theme';

const scriptDir = dirname(fileURLToPath(import.meta.url));
Expand All @@ -25,6 +25,7 @@ const catppuccinIconifyJsonPath = resolve(projectRoot, 'node_modules/@iconify-js
const greatIconsThemeJsonPath = resolve(projectRoot, 'src/data/great-icons/icons.json');
const mizuThemeJsonPath = resolve(projectRoot, 'src/data/mizu/icon-theme.json');
const iconsMaintainedThemeJsonPath = resolve(projectRoot, 'src/data/icons-maintained/icons.json');
const jetbrainsThemeJsonPath = resolve(projectRoot, 'src/data/jetbrains/theme-dark.json');

interface IconifyData {
prefix: string;
Expand Down Expand Up @@ -185,6 +186,7 @@ async function main() {
const { manifest: greatIconsManifest, iconSources: greatIconsSources } = buildGreatIconsManifest(greatIconsThemeJsonPath);
const { manifest: mizuManifest, iconSources: mizuSources } = buildMizuManifest(mizuThemeJsonPath);
const { manifest: iconsMaintainedManifest, iconSources: iconsMaintainedSources } = buildIconsMaintainedManifest(iconsMaintainedThemeJsonPath);
const { manifest: jetbrainsManifest, iconSources: jetbrainsSources } = buildJetBrainsManifest(jetbrainsThemeJsonPath);
const allManifests: Record<string, Manifest> = {
...materialManifests,
'vscode-icons': vscodeIconsManifest,
Expand All @@ -194,6 +196,7 @@ async function main() {
'great-icons': greatIconsManifest as Manifest,
mizu: mizuManifest as Manifest,
'icons-maintained': iconsMaintainedManifest as Manifest,
jetbrains: jetbrainsManifest as Manifest,
};

assertAllIconsReachable(allManifests);
Expand Down Expand Up @@ -228,6 +231,11 @@ async function main() {
copyFile(sourcePath, resolve(iconsTargetDir, prefixedName)),
),
);
await Promise.all(
[...jetbrainsSources.entries()].map(([prefixedName, sourcePath]) =>
copyFile(sourcePath, resolve(iconsTargetDir, prefixedName)),
),
);

await rm(manifestsTargetDir, { force: true, recursive: true });
await mkdir(manifestsTargetDir, { recursive: true });
Expand Down
19 changes: 19 additions & 0 deletions src/data/jetbrains/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright 2024 ardonplay

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
19 changes: 19 additions & 0 deletions src/data/jetbrains/icons/CMake_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/data/jetbrains/icons/actionScript_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/data/jetbrains/icons/angularJS.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions src/data/jetbrains/icons/anyType_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/data/jetbrains/icons/application_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions src/data/jetbrains/icons/archive_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions src/data/jetbrains/icons/beam.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/data/jetbrains/icons/c_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions src/data/jetbrains/icons/cargoLock_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions src/data/jetbrains/icons/cargo_dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading