mirror of
https://github.com/gotson/komga.git
synced 2025-12-06 08:32:25 +01:00
Merge d6a37e6852 into 361d20df2c
This commit is contained in:
commit
0abcd0e2fe
2 changed files with 21 additions and 4 deletions
|
|
@ -781,7 +781,8 @@
|
|||
"click": "Click / Tap"
|
||||
},
|
||||
"page_margins": "Page margins",
|
||||
"viewing_theme": "Viewing theme"
|
||||
"viewing_theme": "Viewing theme",
|
||||
"progress_markers": "Progress markers"
|
||||
},
|
||||
"shortcuts": {
|
||||
"cycle_pagination": "Cycle column count",
|
||||
|
|
|
|||
|
|
@ -164,12 +164,15 @@
|
|||
v-if="!verticalScroll"
|
||||
>
|
||||
<v-row>
|
||||
<v-col cols="10" class="text-truncate">
|
||||
<v-col cols="10" class="text-truncate" v-if="progressMarkers">
|
||||
{{ $t('epubreader.page_of', {page: progressionPage, count: progressionPageCount}) }}
|
||||
({{ progressionTitle || $t('epubreader.current_chapter') }})
|
||||
({{ progressionTitle || $t('epubreader.current_chapter')}})
|
||||
</v-col>
|
||||
<v-col cols="10" class="text-truncate" v-else-if="progressionTitle">
|
||||
{{ progressionTitle || $t('epubreader.current_chapter') }}
|
||||
</v-col>
|
||||
<v-spacer/>
|
||||
<v-col cols="auto">{{ progressionTotalPercentage }}</v-col>
|
||||
<v-col cols="auto" v-if="progressMarkers">{{ progressionTotalPercentage }}</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
|
||||
|
|
@ -250,6 +253,9 @@
|
|||
<v-btn v-for="(c, i) in columnCounts" :key="i" :value="c.value">{{ c.text }}</v-btn>
|
||||
</v-btn-toggle>
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
<settings-switch v-model="progressMarkers" :label="$t('epubreader.settings.progress_markers')"/>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-item class="justify-center">
|
||||
<v-btn depressed @click="fontSize-=10">
|
||||
|
|
@ -412,6 +418,7 @@ export default Vue.extend({
|
|||
alwaysFullscreen: false,
|
||||
navigationClick: true,
|
||||
navigationButtons: true,
|
||||
progressMarkers: true,
|
||||
},
|
||||
navigationOptions: [
|
||||
{text: this.$t('epubreader.settings.navigation_options.buttons').toString(), value: 'button'},
|
||||
|
|
@ -617,6 +624,15 @@ export default Vue.extend({
|
|||
else screenfull.isEnabled && screenfull.exit()
|
||||
},
|
||||
},
|
||||
progressMarkers: {
|
||||
get: function (): boolean {
|
||||
return this.settings.progressMarkers
|
||||
},
|
||||
set: function (value: boolean): void {
|
||||
this.settings.progressMarkers = value
|
||||
this.$store.commit('setEpubreaderSettings', this.settings)
|
||||
},
|
||||
},
|
||||
navigationMode: {
|
||||
get: function (): string {
|
||||
let r = this.settings.navigationButtons ? 'button' : ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue