Skip to content

Commit

Permalink
feat: add docxf icon mapping and fix document icon colors
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Nov 22, 2023
1 parent 6df8c1e commit 9979f6f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion changelog/unreleased/enhancement-provide-neutral-file-icons
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ Enhancement: Provide vendor neutral file icons

We replaced the icons for Document, Spreadsheet, Presentation, Forms and Markdown

https://github.com/owncloud/web/pull/9911
https://github.com/owncloud/web/issues/9847
https://github.com/owncloud/web/pull/9911
https://github.com/owncloud/web/pull/10037
6 changes: 5 additions & 1 deletion packages/design-system/src/helpers/resourceIconMapping.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@
"name": "resource-type-document",
"color": "var(--oc-color-icon-document)"
},
"docxf": {
"name": "resource-type-form",
"color": "var(--oc-color-icon-form)"
},
"dot": {
"name": "resource-type-document",
"color": "var(--oc-color-icon-document)"
Expand Down Expand Up @@ -293,7 +297,7 @@
},
"md": {
"name": "resource-type-markdown",
"color": "var(--oc-color-text-default)"
"color": "var(--oc-color-icon-markdown)"
},
"mdb": {
"name": "resource-type-text",
Expand Down
10 changes: 7 additions & 3 deletions packages/design-system/src/tokens/ods/color.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,19 @@ color:
text:
value: '{color.text.default.value}'
spreadsheet:
value: rgb(0, 182, 87)
value: rgb(90, 192, 138)
document:
value: rgb(44, 101, 255)
value: rgb(61, 68, 160)
form:
value: rgb(102, 166, 163)
markdown:
value: rgb(75, 100, 137)
video:
value: rgb(0, 187, 219)
audio:
value: rgb(208, 67, 236)
presentation:
value: rgb(255, 64, 6)
value: rgb(222, 115, 72)
pdf:
value: rgb(225, 5, 14)
root:
Expand Down

0 comments on commit 9979f6f

Please sign in to comment.