Skip to content

Commit

Permalink
Merge pull request #839 from nextcloud/fix/838
Browse files Browse the repository at this point in the history
Set primary color on default calendar creation
  • Loading branch information
raimund-schluessler committed Jan 28, 2020
2 parents c015170 + f4af851 commit 43db153
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@
.percentdone {
height: 3px;
border-radius: 2px 0 0 2px;
opacity: .75;
background-color: $color-primary;
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ export default {
.then((calendars) => {
// No calendars? Create a new one!
if (calendars.length === 0) {
this.$store.dispatch('appendCalendar', { displayName: this.$t('tasks', 'Tasks') })
let color = '#0082C9'
if (this.$OCA.Theming) {
color = this.$OCA.Theming.color
}
this.$store.dispatch('appendCalendar', { displayName: this.$t('tasks', 'Tasks'), color })
.then(() => {
this.fetchTasks()
})
Expand Down

0 comments on commit 43db153

Please sign in to comment.