From f78b462f8debeb00edb804f0d5f562be04e98bb7 Mon Sep 17 00:00:00 2001 From: Asva Date: Sun, 14 Apr 2019 01:11:49 +0300 Subject: [PATCH] fix: tweak color theme related things and do docs for color plugin --- src/app/main.js | 12 ++++- .../progress-bars/Widgets/ColorfulBars.vue | 2 +- src/components/ui/buttons/Buttons.vue | 2 +- .../ui/color-pickers/ColorPickers.vue | 8 ++-- src/components/ui/spinners/Spinners.vue | 8 ++-- src/services/ColorThemePlugin-docs.md | 21 +++++++++ src/services/ColorThemePlugin.js | 27 +++++++++++ src/services/colors.js | 23 ---------- src/vue-book/book-main.js | 4 +- .../va-button/VaButton.spec.js | 4 +- .../va-checkbox/VaCheckbox.spec.js | 4 +- .../VaColorPickerInput.demo.vue | 46 ++++++++++++------- .../va-color-picker/VaColorPickerInput.vue | 36 +++++++-------- ...stom.demo.vue => VaPaletteCustom.demo.vue} | 10 ++-- ...VaPalletCustom.vue => VaPaletteCustom.vue} | 18 +++----- .../VaSimplePalettePicker.demo.vue | 4 +- .../vuestic-sass/global/color-themes.demo.vue | 45 +++++++----------- 17 files changed, 151 insertions(+), 123 deletions(-) create mode 100644 src/services/ColorThemePlugin-docs.md create mode 100644 src/services/ColorThemePlugin.js delete mode 100644 src/services/colors.js rename src/vuestic-theme/vuestic-components/va-color-picker/{VaPalletCustom.demo.vue => VaPaletteCustom.demo.vue} (59%) rename src/vuestic-theme/vuestic-components/va-color-picker/{VaPalletCustom.vue => VaPaletteCustom.vue} (75%) diff --git a/src/app/main.js b/src/app/main.js index 217d271ce..ad376c11d 100644 --- a/src/app/main.js +++ b/src/app/main.js @@ -6,7 +6,7 @@ import 'babel-polyfill' import Vue from 'vue' import VeeValidate from 'vee-validate' import App from './App' -import { ColorPlugin } from './../services/colors' +import { ColorThemePlugin } from '../services/ColorThemePlugin' import store from '../store/index' import router from '../router/index' import VuesticPlugin from '../vuestic-theme/vuestic-plugin' @@ -17,7 +17,15 @@ import VueClipboard from 'vue-clipboard2' Vue.use(VuesticPlugin) Vue.use(YmapPlugin) Vue.use(VueClipboard) -Vue.use(ColorPlugin) + +Vue.use(ColorThemePlugin, + { + // Add or change theme colors here + themes: { + // primary: '#f06595', + // blurple: '#7289DA', + }, + }) // NOTE: workaround for VeeValidate + vuetable-2 Vue.use(VeeValidate, { fieldsBagName: 'formFields' }) diff --git a/src/components/statistics/progress-bars/Widgets/ColorfulBars.vue b/src/components/statistics/progress-bars/Widgets/ColorfulBars.vue index 4cb159e8b..8c5903d06 100644 --- a/src/components/statistics/progress-bars/Widgets/ColorfulBars.vue +++ b/src/components/statistics/progress-bars/Widgets/ColorfulBars.vue @@ -1,7 +1,7 @@