Commit 2d0e0afe authored by Luciano Pacheco's avatar Luciano Pacheco Committed by Commit Bot

Files app: Fix displaying some volume icons in file list

Some volumes can be displayed in the file list in addition to
directory tree. This CL enable their special icons in the file list new
design.

Bug: 992821
Change-Id: Ieee8bc47b2a29ce1956bee6ce6a78a2ddd04c6ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2043519
Auto-Submit: Luciano Pacheco <lucmult@chromium.org>
Reviewed-by: default avatarAlex Danilo <adanilo@chromium.org>
Commit-Queue: Luciano Pacheco <lucmult@chromium.org>
Cr-Commit-Position: refs/heads/master@{#740500}
parent c0bc5bbb
...@@ -18,6 +18,9 @@ ...@@ -18,6 +18,9 @@
} }
body.files-ng [file-type-icon] { body.files-ng [file-type-icon] {
-webkit-mask-position: center;
-webkit-mask-repeat: no-repeat;
background-color: currentColor;
background-image: url(../images/filetype/filetype_generic.svg); background-image: url(../images/filetype/filetype_generic.svg);
background-size: 20px 20px; background-size: 20px 20px;
} }
...@@ -60,9 +63,6 @@ body.files-ng [file-type-icon='excel'] { ...@@ -60,9 +63,6 @@ body.files-ng [file-type-icon='excel'] {
body.files-ng [file-type-icon='folder'] { body.files-ng [file-type-icon='folder'] {
-webkit-mask-image: url(../images/filetype/filetype_folder.svg); -webkit-mask-image: url(../images/filetype/filetype_folder.svg);
-webkit-mask-position: center;
-webkit-mask-repeat: no-repeat;
background-color: currentColor;
background-image: none; background-image: none;
} }
...@@ -393,6 +393,11 @@ body.files-ng [file-type-icon='word'] { ...@@ -393,6 +393,11 @@ body.files-ng [file-type-icon='word'] {
-webkit-mask-image: url(../images/volumes/downloads.svg); -webkit-mask-image: url(../images/volumes/downloads.svg);
} }
body.files-ng [file-type-icon='downloads'] {
-webkit-mask-image: url(../images/volumes/downloads.svg);
background-image: none;
}
[volume-type-icon='drive'] { [volume-type-icon='drive'] {
background-image: -webkit-image-set( background-image: -webkit-image-set(
url(../images/volumes/drive.png) 1x, url(../images/volumes/drive.png) 1x,
...@@ -697,6 +702,11 @@ body.files-ng [file-type-icon='word'] { ...@@ -697,6 +702,11 @@ body.files-ng [file-type-icon='word'] {
url(../images/volumes/2x/hard_drive.png) 2x); url(../images/volumes/2x/hard_drive.png) 2x);
} }
body.files-ng [file-type-icon='removable'] {
-webkit-mask-image: url(../images/volumes/hard_drive.svg);
background-image: none;
}
.tree-row[selected] > [volume-type-icon='removable'][volume-subtype='unknown'], .tree-row[selected] > [volume-type-icon='removable'][volume-subtype='unknown'],
.tree-item .tree-item > .tree-row[selected] > [volume-type-icon='removable'] { .tree-item .tree-item > .tree-row[selected] > [volume-type-icon='removable'] {
background-image: -webkit-image-set( background-image: -webkit-image-set(
...@@ -745,6 +755,11 @@ body.files-ng [file-type-icon='word'] { ...@@ -745,6 +755,11 @@ body.files-ng [file-type-icon='word'] {
url(../images/volumes/2x/linux_files.png) 2x); url(../images/volumes/2x/linux_files.png) 2x);
} }
body.files-ng [file-type-icon='crostini'] {
-webkit-mask-image: url(../images/volumes/linux_files.svg);
background-image: none;
}
.tree-row[selected] > [root-type-icon='crostini'], .tree-row[selected] > [root-type-icon='crostini'],
.tree-row[selected] > [volume-type-icon='crostini'] { .tree-row[selected] > [volume-type-icon='crostini'] {
background-image: -webkit-image-set( background-image: -webkit-image-set(
...@@ -764,6 +779,11 @@ body.files-ng [file-type-icon='word'] { ...@@ -764,6 +779,11 @@ body.files-ng [file-type-icon='word'] {
url(../images/volumes/2x/android.png) 2x); url(../images/volumes/2x/android.png) 2x);
} }
body.files-ng [file-type-icon='android_files'] {
-webkit-mask-image: url(../images/volumes/android.svg);
background-image: none;
}
.tree-row[selected] > [volume-type-icon='android_files'] { .tree-row[selected] > [volume-type-icon='android_files'] {
background-image: -webkit-image-set( background-image: -webkit-image-set(
url(../images/volumes/android_active.png) 1x, url(../images/volumes/android_active.png) 1x,
...@@ -778,6 +798,11 @@ body.files-ng [file-type-icon='word'] { ...@@ -778,6 +798,11 @@ body.files-ng [file-type-icon='word'] {
background-image: url(../images/volumes/plugin_vm.svg); background-image: url(../images/volumes/plugin_vm.svg);
} }
body.files-ng [file-type-icon='plugin_vm'] {
-webkit-mask-image: url(../images/volumes/plugin_vm.svg);
background-image: none;
}
.tree-row[selected] > [file-type-icon='plugin_vm'] { .tree-row[selected] > [file-type-icon='plugin_vm'] {
background-image: url(../images/volumes/plugin_vm_active.svg) background-image: url(../images/volumes/plugin_vm_active.svg)
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment