Skip to content

Commit

Permalink
Use background to increase overlay contrast
Browse files Browse the repository at this point in the history
And limit it to files

Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Nov 13, 2023
1 parent eaaf954 commit dc16a74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion apps/files/src/components/FileEntry/FileEntryPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

<OverlayIcon :is="fileOverlay"
v-if="fileOverlay"
class="files-list__row-icon-overlay" />
class="files-list__row-icon-overlay files-list__row-icon-overlay--file" />
</span>
</template>

Expand Down
13 changes: 4 additions & 9 deletions apps/files/src/components/FilesListVirtual.vue
Original file line number Diff line number Diff line change
Expand Up @@ -519,16 +519,11 @@ export default Vue.extend({
// better alignment with the folder icon
margin-top: 2px;

svg {
// Improve icon contrast with a background for files
&--file {
color: var(--color-main-text);
background: var(--color-main-background);
border-radius: 100%;

// Sow a border around the icon for better contrast
path {
stroke: var(--color-main-background);
stroke-width: 8px;
stroke-linejoin: round;
paint-order: stroke;
}
}
}
}
Expand Down

0 comments on commit dc16a74

Please sign in to comment.