Skip to content

Commit

Permalink
Add ability to manage custom chart color schemes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fajfa committed Oct 23, 2023
1 parent 6f45514 commit 2508b60
Show file tree
Hide file tree
Showing 20 changed files with 342 additions and 39 deletions.
2 changes: 2 additions & 0 deletions client/web/admin/src/components/User/CUserEditorAvatar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
data-test-id="input-text-color"
:translations="{
modalTitle: $t('colorPicker'),
cancelBtnLabel: $t('general:label.cancel'),
saveBtnLabel: $t('general:label.saveAndClose')
}"
/>
Expand All @@ -67,6 +68,7 @@
data-test-id="input-background-color"
:translations="{
modalTitle: $t('colorPicker'),
cancelBtnLabel: $t('general:label.cancel'),
saveBtnLabel: $t('general:label.saveAndClose')
}"
/>
Expand Down
1 change: 1 addition & 0 deletions client/web/compose/src/components/Chart/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ export default {
}
data.labels = data.labels.map(l => l === 'undefined' ? this.$t('chart:undefined') : l)
data.customColorSchemes = this.$Settings.get('ui.charts.colorSchemes', [])
this.renderer = chart.makeOptions(data)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
v-model="f.options.backgroundColor"
:translations="{
modalTitle: $t('kind.file.view.colorPicker'),
cancelBtnLabel: $t('general:label.cancel'),
saveBtnLabel: $t('general:label.saveAndClose')
}"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
v-model="feed.options.color"
:translations="{
modalTitle: $t('calendar.recordFeed.colorPicker'),
cancelBtnLabel: $t('general:label.cancel'),
saveBtnLabel: $t('general:label.saveAndClose')
}"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
v-model="feed.options.color"
:translations="{
modalTitle: $t('calendar.recordFeed.colorPicker'),
cancelBtnLabel: $t('general:label.cancel'),
saveBtnLabel: $t('general:label.saveAndClose')
}"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@
v-model="options.backgroundColor"
:translations="{
modalTitle: $t('kind.file.view.colorPicker'),
cancelBtnLabel: $t('general:label.cancel'),
saveBtnLabel: $t('general:label.saveAndClose')
}"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
v-model="feed.options.color"
:translations="{
modalTitle: $t('geometry.recordFeed.colorPicker'),
cancelBtnLabel: $t('general:label.cancel'),
saveBtnLabel: $t('general:label.saveAndClose')
}"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
v-model="options.color"
:translations="{
modalTitle: $t('metric.editStyle.colorPicker'),
cancelBtnLabel: $t('general:label.cancel'),
saveBtnLabel: $t('general:label.saveAndClose')
}"
class="mb-1"
Expand All @@ -23,6 +24,7 @@
v-model="options.backgroundColor"
:translations="{
modalTitle: $t('geometry.recordFeed.colorPicker'),
cancelBtnLabel: $t('general:label.cancel'),
saveBtnLabel: $t('general:label.saveAndClose')
}"
class="mb-1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
v-model="item.options.textColor"
:translations="{
modalTitle: $t('navigation.colorPicker'),
cancelBtnLabel: $t('general:label.cancel'),
saveBtnLabel: $t('general:label.saveAndClose')
}"
class="w-100"
Expand All @@ -144,6 +145,7 @@
v-model="item.options.backgroundColor"
:translations="{
modalTitle: $t('navigation.colorPicker'),
cancelBtnLabel: $t('general:label.cancel'),
saveBtnLabel: $t('general:label.saveAndClose')
}"
class="w-100"
Expand Down

0 comments on commit 2508b60

Please sign in to comment.