Browse Source

Adds cloud patch icons

main
Keith Daulton 1 year ago
parent
commit
2346ada9f6
7 changed files with 33 additions and 3 deletions
  1. +1
    -1
      CONTRIBUTING.md
  2. +1
    -0
      images/icons/cloud-patch-share.svg
  3. +1
    -0
      images/icons/cloud-patch.svg
  4. +3
    -1
      images/icons/template/mapping.json
  5. +14
    -0
      package.json
  6. +6
    -0
      src/webviews/apps/shared/components/code-icon.ts
  7. +7
    -1
      src/webviews/apps/shared/glicons.scss

+ 1
- 1
CONTRIBUTING.md View File

@ -207,7 +207,7 @@ The Publish Insiders workflow is no longer available and was replaced with the p
To add new icons to the GL Icons font follow the steps below:
- Add new SVG icons to the `images/icons` folder
- Update the `images/icons/mappings.json` file with entries for the new icons (append to the end of the file)
- Update the `images/icons/template/mapping.json` file with entries for the new icons (append to the end of the file)
- Optimize and build the icons by running the following from a terminal:
```

+ 1
- 0
images/icons/cloud-patch-share.svg View File

@ -0,0 +1 @@
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.75492 2C5.80802 2 4.11749 3.09297 3.26146 4.69709C1.42064 4.94046 0 6.51549 0 8.42267C0 10.4983 1.6826 12.1809 3.7582 12.1809H7.39039C7.38057 12.1561 7.37174 12.1306 7.36398 12.1044C7.28662 11.843 7.3342 11.5719 7.47717 11.3257H3.7582C2.15493 11.3257 0.855223 10.0259 0.855223 8.42267C0.855223 6.88429 2.05242 5.62503 3.56561 5.52599C3.72057 5.51585 3.85785 5.42249 3.92424 5.28211C4.60311 3.8467 6.06353 2.85522 7.75492 2.85522C9.88834 2.85522 11.6542 4.43306 11.9476 6.48525C11.9781 6.69869 12.1628 6.85602 12.3783 6.85228C12.3917 6.85205 12.4046 6.85193 12.4177 6.85193C12.922 6.85193 13.3874 7.01882 13.7615 7.30037C13.8039 7.32572 13.8456 7.3539 13.8864 7.38499L15.47 8.59104C15.2483 7.22118 14.1266 6.1529 12.7312 6.01241C12.2364 3.71867 10.1966 2 7.75492 2Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.4947 8.31126C12.4947 7.95785 12.8995 7.75688 13.1814 7.97151L15.8315 9.98982C16.0478 10.1546 16.0575 10.4767 15.8514 10.6541L13.2013 12.9356C12.9236 13.1747 12.4947 12.9774 12.4947 12.6122V11.3346L12.0986 11.3053C11.1039 11.2316 9.88136 11.3343 8.71507 11.8632C8.48097 11.9694 8.22257 11.9362 8.08036 11.8501C8.01364 11.8097 7.99939 11.7753 7.99717 11.7678C7.99605 11.764 7.99448 11.757 7.99681 11.7428C7.99932 11.7276 8.00752 11.6979 8.03431 11.6538C8.87633 10.2672 10.6397 9.58135 12.1373 9.33197L12.4947 9.27246V8.31126Z"/></svg>

+ 1
- 0
images/icons/cloud-patch.svg View File

@ -0,0 +1 @@
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.3218 8.17781C11.5187 8.37469 11.5187 8.6939 11.3218 8.89078L9.44807 10.7645L11.3218 12.6383C11.5187 12.8352 11.5187 13.1544 11.3218 13.3513C11.125 13.5482 10.8057 13.5482 10.6089 13.3513L8.37862 11.121C8.28407 11.0265 8.23096 10.8983 8.23096 10.7645C8.23096 10.6308 8.28407 10.5026 8.37862 10.4081L10.6089 8.17781C10.8057 7.98093 11.125 7.98093 11.3218 8.17781ZM12.9091 8.17781C13.106 7.98093 13.4252 7.98093 13.6221 8.17781L15.8524 10.4081C16.0492 10.6049 16.0492 10.9241 15.8524 11.121L13.6221 13.3513C13.4252 13.5482 13.106 13.5482 12.9091 13.3513C12.7123 13.1544 12.7123 12.8352 12.9091 12.6383L14.7829 10.7645L12.9091 8.89078C12.7123 8.6939 12.7123 8.37469 12.9091 8.17781Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.92072 2C5.9322 2 4.20552 3.11634 3.33119 4.75476C1.45101 5.00333 0 6.61203 0 8.55999C0 10.68 1.71858 12.3986 3.83856 12.3986H8.42068L7.76083 11.7387C7.69514 11.673 7.63677 11.6014 7.58624 11.525H3.83856C2.20101 11.525 0.873508 10.1975 0.873508 8.55999C0.873508 6.98872 2.09631 5.70254 3.64185 5.60138C3.80012 5.59102 3.94033 5.49567 4.00814 5.35228C4.70153 3.88618 6.19317 2.87351 7.92072 2.87351C10.0998 2.87351 11.9034 4.48508 12.203 6.58114C12.2342 6.79915 12.4228 6.95985 12.643 6.95603C12.6566 6.95579 12.6698 6.95567 12.6832 6.95567C13.1501 6.95567 13.5842 7.09569 13.946 7.33603C14.0511 7.3958 14.15 7.47051 14.2396 7.56016L15.8405 9.16097C15.801 7.56087 14.5714 6.25606 13.0034 6.0982C12.4981 3.75542 10.4146 2 7.92072 2ZM8.7825 11.525L9.64463 12.3872C9.83792 12.3422 9.98192 12.1688 9.98192 11.9618C9.98192 11.7206 9.78638 11.525 9.54517 11.525H8.7825Z"/></svg>

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

@ -39,5 +39,7 @@
"gitlens-inspect": 61732,
"workspaces-view": 61733,
"confirm-checked": 61734,
"confirm-unchecked": 61735
"confirm-unchecked": 61735,
"cloud-patch": 61736,
"cloud-patch-share": 61737
}

+ 14
- 0
package.json View File

@ -8522,6 +8522,20 @@
"fontPath": "dist/glicons.woff2",
"fontCharacter": "\\f127"
}
},
"gitlens-cloud-patch": {
"description": "cloud-patch icon",
"default": {
"fontPath": "dist/glicons.woff2",
"fontCharacter": "\\f128"
}
},
"gitlens-cloud-patch-share": {
"description": "cloud-patch-share icon",
"default": {
"fontPath": "dist/glicons.woff2",
"fontCharacter": "\\f129"
}
}
},
"menus": {

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

@ -1690,6 +1690,12 @@ export class CodeIcon extends LitElement {
:host([icon='gl-workspaces-view']):before {
content: '\\f125';
}
:host([icon='gl-cloud-patch']):before {
content: '\\f128';
}
:host([icon='gl-cloud-patch-share']):before {
content: '\\f129';
}
@keyframes codicon-spin {
100% {

+ 7
- 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?30855d21cb614f41edfd373458624529") format("woff2");
src: url("#{root}/dist/glicons.woff2?2cb9f62ddac44d3fc393ade4471fe802") format("woff2");
}
</style>
*/
@ -182,3 +182,9 @@ Must be placed at the end of body in the HTML file of any webview that needs it
.glicon-confirm-unchecked:before {
content: '\f127';
}
.glicon-cloud-patch:before {
content: '\f128';
}
.glicon-cloud-patch-share:before {
content: '\f129';
}

Loading…
Cancel
Save