Skip to content

Commit

Permalink
fix: make dark header configurable
Browse files Browse the repository at this point in the history
Required to fix regression with Text in Viewer in Nextcloud 30, where we
still want a white viewer header.

Signed-off-by: Jonas <[email protected]>
  • Loading branch information
mejo- committed Sep 15, 2024
1 parent c520008 commit c732f45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/services/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import logger from './logger.js'
* @property {object} component Vue component to render the file
* @property {string} group group identifier to combine for navigating to the next/previous files
* @property {?string} theme viewer modal theme (one of 'dark', 'light', 'default')
* @property {boolean} darkHeader viewer dark header
* @property {boolean} canCompare Indicate support for comparing two files
*/

Expand Down
3 changes: 3 additions & 0 deletions src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
:clear-view-delay="-1 /* disable fade-out because of accessibility reasons */"
:close-button-contained="false"
:dark="true"
:dark-header="darkHeader"
:data-handler="handlerId"
:enable-slideshow="hasPrevious || hasNext"
:slideshow-paused="editing"
Expand Down Expand Up @@ -285,6 +286,7 @@ export default {
canSwipe: true,
isStandalone: false,
theme: null,
darkHeader: null,
root: davRemoteURL,
handlerId: '',
Expand Down Expand Up @@ -698,6 +700,7 @@ export default {
}
this.theme = handler.theme ?? 'dark'
this.darkHeader = handler.darkHeader ?? true
this.handlerId = handler.id
// check if part of a group, if so retrieve full files list
Expand Down

0 comments on commit c732f45

Please sign in to comment.