Skip to content

Commit

Permalink
Fix download button color
Browse files Browse the repository at this point in the history
Use material icon instead of css class

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
  • Loading branch information
CarlSchwan committed Feb 3, 2022
1 parent dc071f5 commit 397fe29
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
4 changes: 2 additions & 2 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

17 changes: 13 additions & 4 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@
</ActionButton>
<ActionLink v-if="canDownload"
:download="currentFile.basename"
icon="icon-download"
:close-after-click="true"
:href="currentFile.davPath">
<template #icon>
<Download :size="24" title="" decorative />
</template>
{{ t('viewer', 'Download') }}
</ActionLink>
<ActionButton v-if="canDelete"
Expand Down Expand Up @@ -137,6 +139,8 @@ import getFileList from '../services/FileList'
import Mime from '../mixins/Mime'
import logger from '../services/logger'

import Download from 'vue-material-design-icons/Download'

export default {
name: 'Viewer',

Expand All @@ -145,6 +149,7 @@ export default {
ActionLink,
Modal,
Error,
Download,
},

mixins: [isMobile, isFullscreen],
Expand Down Expand Up @@ -852,9 +857,13 @@ export default {
}
}
::v-deep .modal-title,
::v-deep .modal-header .icons-menu button svg {
body.theme--light & {
color: var(--color-main-text) !important;
::v-deep .modal-header .icons-menu {
button, a {
svg {
body.theme--light & {
color: var(--color-main-text) !important;
}
}
}
}
::v-deep .modal-container {
Expand Down

0 comments on commit 397fe29

Please sign in to comment.