Skip to content

Commit

Permalink
feat(settings): Add settings to enable tick emoji in title
Browse files Browse the repository at this point in the history
Allows switching between "done" and the tick emoji
  • Loading branch information
Hanziness committed Jan 23, 2021
1 parent bdc3db8 commit 3586ce8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
1 change: 1 addition & 0 deletions components/settings/settingsPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
/>
<divider />
<settings-check :settings-key="['performance', 'showProgressBar']" />
<settings-check :settings-key="['pageTitle', 'useTickEmoji']" />
<!-- TODO Audio volume control -->
</div>
</transition>
Expand Down
9 changes: 8 additions & 1 deletion i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ export default {
_title: 'Maximum active tasks to show',
_description: 'You\'ll only see this many active tasks at most'
}
},
pageTitle: {
useTickEmoji: {
_title: 'Use tick emoji in title',
_description: 'Show ✔ instead of "done"'
}
}
}
},
Expand Down Expand Up @@ -326,5 +332,6 @@ export default {
description: 'description (optional)'
},
empty: 'Nothing to do (?)'
}
},
ready: 'Done'
}
9 changes: 8 additions & 1 deletion i18n/hu.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,12 @@ export default {
_title: 'Maximum aktív feladatok',
_description: 'Legfeljebb ennyi aktív feladatot mutat majd a lista'
}
},
pageTitle: {
useTickEmoji: {
_title: 'Pipa jel használata a címsorban',
_description: 'Mutasson ✔ emojit a "kész" helyett az alkalmazás'
}
}
}
},
Expand Down Expand Up @@ -326,5 +332,6 @@ export default {
description: 'leírás (nem kötelező)'
},
empty: 'Nincs mit tenni (?)'
}
},
ready: 'Kész'
}
2 changes: 1 addition & 1 deletion pages/timer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default {
remainingTimeString () {
if (this.$store.getters['schedule/getCurrentTimerState'] === 3) {
return ''
return this.$store.state.settings.pageTitle.useTickEmoji ? '' : this.$i18n.t('ready').toLowerCase()
}
const currentScheduleItem = this.$store.getters['schedule/getCurrentItem']
Expand Down
3 changes: 3 additions & 0 deletions store/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ export const state = () => ({
tasks: {
enabled: false,
maxActiveTasks: 3
},
pageTitle: {
useTickEmoji: true
}
})

Expand Down

0 comments on commit 3586ce8

Please sign in to comment.