- {{ t('theming', 'In some cases keyboard shortcuts can interfere with accessibility tools. In order to allow focusing on your tool correctly you can disable all keyboard shortcuts here. This will also disable all available shortcuts in apps.') }}
+
theme.remove()
document.head.append(newTheme)
})
- },
-
- updateBackground(data) {
- this.background = (data.type === 'custom' || data.type === 'default') ? data.type : data.value
- this.refreshGlobalStyles()
+ emit('theming:global-styles-refreshed')
},
changeTheme({ enabled, id }) {
diff --git a/apps/theming/src/components/BackgroundSettings.vue b/apps/theming/src/components/BackgroundSettings.vue
index 166fdbc5f4b..1ccf05b3ce9 100644
--- a/apps/theming/src/components/BackgroundSettings.vue
+++ b/apps/theming/src/components/BackgroundSettings.vue
@@ -116,7 +116,6 @@ const defaultShippedBackground = loadState('theming', 'defaultShippedBackground'
const prefixWithBaseUrl = (url) => generateFilePath('theming', '', 'img/background/') + url
-console.warn(loadState('theming', 'data', {}))
export default {
name: 'BackgroundSettings',
diff --git a/apps/theming/src/components/UserPrimaryColor.vue b/apps/theming/src/components/UserPrimaryColor.vue
new file mode 100644
index 00000000000..5211b5aaba0
--- /dev/null
+++ b/apps/theming/src/components/UserPrimaryColor.vue
@@ -0,0 +1,130 @@
+
+
+
+
+ {{ t('theming', 'Primary color') }}
+
+
+
+
+
+
+
+
+ {{ t('theming', 'Reset primary color') }}
+
+
+
+
+
+
+