Browse Source

Adds workspaces icon

main
Eric Amodio 1 year ago
parent
commit
444296988b
11 changed files with 26 additions and 11 deletions
  1. +2
    -1
      images/icons/template/mapping.json
  2. +1
    -0
      images/icons/workspaces-view.svg
  3. +8
    -1
      package.json
  4. +1
    -1
      src/webviews/apps/commitDetails/commitDetails.html
  5. +1
    -1
      src/webviews/apps/home/home.html
  6. +1
    -1
      src/webviews/apps/plus/focus/focus.html
  7. +1
    -1
      src/webviews/apps/plus/graph/graph.html
  8. +1
    -1
      src/webviews/apps/plus/timeline/timeline.html
  9. +3
    -0
      src/webviews/apps/shared/components/code-icon.ts
  10. +4
    -1
      src/webviews/apps/shared/glicons.scss
  11. +3
    -3
      src/webviews/apps/welcome/welcome.html

+ 2
- 1
images/icons/template/mapping.json View File

@ -36,5 +36,6 @@
"provider-gitea": 61729,
"provider-github": 61730,
"provider-gitlab": 61731,
"gitlens-inspect": 61732
"gitlens-inspect": 61732,
"workspaces-view": 61733
}

+ 1
- 0
images/icons/workspaces-view.svg View File

@ -0,0 +1 @@
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path d="M11.685 17.25a5.25 5.25 0 1 0 0-10.5 5.25 5.25 0 0 0 0 10.5ZM20.264 8.593a3.669 3.669 0 1 0 0-7.337 3.669 3.669 0 0 0 0 7.337Z"/><path d="M1.293 12a10.395 10.395 0 0 1 19.624-4.78l1.086-.563a11.616 11.616 0 1 0 1.3 5.343c0-1.268-.203-2.67-.58-3.815 0 0-.26.237-.547.36a4.362 4.362 0 0 1-.615.204A10.395 10.395 0 1 1 1.293 12Z"/></svg>

+ 8
- 1
package.json View File

@ -7812,6 +7812,13 @@
"fontPath": "dist/glicons.woff2",
"fontCharacter": "\\f124"
}
},
"gitlens-workspaces-view": {
"description": "workspaces-view icon",
"default": {
"fontPath": "dist/glicons.woff2",
"fontCharacter": "\\f125"
}
}
},
"menus": {
@ -14187,7 +14194,7 @@
"name": "GitKraken Workspaces",
"when": "!gitlens:untrusted && !gitlens:hasVirtualFolders",
"contextualTitle": "GitLens",
"icon": "$(gitlens-worktrees-view)",
"icon": "$(gitlens-workspaces-view)",
"initialSize": 2,
"visibility": "visible"
},

+ 1
- 1
src/webviews/apps/commitDetails/commitDetails.html View File

@ -11,7 +11,7 @@
@font-face {
font-family: 'glicons';
font-display: block;
src: url('#{root}/dist/glicons.woff2?ab6c9110fb0444acd9ba719c4c55fa68') format('woff2');
src: url('#{root}/dist/glicons.woff2?8e33f5a80a91b05940d687a08305c156') format('woff2');
}
</style>
</head>

+ 1
- 1
src/webviews/apps/home/home.html View File

@ -11,7 +11,7 @@
@font-face {
font-family: 'glicons';
font-display: block;
src: url('#{root}/dist/glicons.woff2?ab6c9110fb0444acd9ba719c4c55fa68') format('woff2');
src: url('#{root}/dist/glicons.woff2?8e33f5a80a91b05940d687a08305c156') format('woff2');
}
</style>
</head>

+ 1
- 1
src/webviews/apps/plus/focus/focus.html View File

@ -11,7 +11,7 @@
@font-face {
font-family: 'glicons';
font-display: block;
src: url('#{root}/dist/glicons.woff2?ab6c9110fb0444acd9ba719c4c55fa68') format('woff2');
src: url('#{root}/dist/glicons.woff2?8e33f5a80a91b05940d687a08305c156') format('woff2');
}
:root {

+ 1
- 1
src/webviews/apps/plus/graph/graph.html View File

@ -11,7 +11,7 @@
@font-face {
font-family: 'glicons';
font-display: block;
src: url('#{root}/dist/glicons.woff2?ab6c9110fb0444acd9ba719c4c55fa68') format('woff2');
src: url('#{root}/dist/glicons.woff2?8e33f5a80a91b05940d687a08305c156') format('woff2');
}
</style>
<script type="application/javascript" nonce="#{cspNonce}">

+ 1
- 1
src/webviews/apps/plus/timeline/timeline.html View File

@ -11,7 +11,7 @@
@font-face {
font-family: 'glicons';
font-display: block;
src: url('#{root}/dist/glicons.woff2?ab6c9110fb0444acd9ba719c4c55fa68') format('woff2');
src: url('#{root}/dist/glicons.woff2?8e33f5a80a91b05940d687a08305c156') format('woff2');
}
</style>
</head>

+ 3
- 0
src/webviews/apps/shared/components/code-icon.ts View File

@ -1608,6 +1608,9 @@ export class CodeIcon extends LitElement {
:host([icon='gl-gitlens-inspect']):before {
content: '\\f124';
}
:host([icon='gl-workspaces-view']):before {
content: '\\f125';
}
@keyframes codicon-spin {
100% {

+ 4
- 1
src/webviews/apps/shared/glicons.scss View File

@ -6,7 +6,7 @@ Must be placed at the end of body in the HTML file of any webview that needs it
@font-face {
font-family: 'glicons';
font-display: block;
src: url("#{root}/dist/glicons.woff2?ab6c9110fb0444acd9ba719c4c55fa68") format("woff2");
src: url("#{root}/dist/glicons.woff2?8e33f5a80a91b05940d687a08305c156") format("woff2");
}
</style>
*/
@ -173,3 +173,6 @@ Must be placed at the end of body in the HTML file of any webview that needs it
.glicon-gitlens-inspect:before {
content: '\f124';
}
.glicon-workspaces-view:before {
content: '\f125';
}

+ 3
- 3
src/webviews/apps/welcome/welcome.html View File

@ -11,7 +11,7 @@
@font-face {
font-family: 'glicons';
font-display: block;
src: url('#{root}/dist/glicons.woff2?ab6c9110fb0444acd9ba719c4c55fa68') format('woff2');
src: url('#{root}/dist/glicons.woff2?8e33f5a80a91b05940d687a08305c156') format('woff2');
}
</style>
</head>
@ -224,7 +224,7 @@
data-requires="repo"
title="Show Workspaces view"
aria-label="Show Workspaces view"
><code-icon icon="gl-worktrees-view" size="20"></code-icon>Workspaces ☁️</a
><code-icon icon="gl-workspaces-view" size="20"></code-icon>Workspaces ☁️</a
>
</nav>
<p data-requires="norepo">
@ -448,7 +448,7 @@
data-requires="repo"
title="Show Workspaces view"
aria-label="Show Workspaces view"
><code-icon icon="gl-worktrees-view" size="20"></code-icon>Workspaces ☁️</a
><code-icon icon="gl-workspaces-view"></code-icon>Workspaces ☁️</a
>
<a
href="command:gitlens.showWorktreesView"

Loading…
Cancel
Save