Skip to content

Commit

Permalink
#716: set primary color to black if high contrast mode is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanStrehlerCGI committed Dec 1, 2023
1 parent b752305 commit 73fa862
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion digiwf-apps/packages/apps/digiwf-tasklist/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ declare module '@vue/runtime-core' {
VListItemTitle: typeof import('vuetify/lib')['VListItemTitle']
VMain: typeof import('vuetify/lib')['VMain']
VMenu: typeof import('vuetify/lib')['VMenu']
VMessages: typeof import('vuetify/lib')['VMessages']
VMultiUserInput: typeof import('./src/components/schema/VMultiUserInput.vue')['default']
VNavigationDrawer: typeof import('vuetify/lib')['VNavigationDrawer']
VProgressCircular: typeof import('vuetify/lib')['VProgressCircular']
Expand Down
11 changes: 6 additions & 5 deletions digiwf-apps/packages/apps/digiwf-tasklist/src/plugins/vuetify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ import store from "../store";
Vue.use(Vuetify);

export const lightTheme: Partial<VuetifyThemeVariant> = {
primary: '#ff7c02',
secondary: '#333333',
accent: '#7BA4D9',
success: '#69BE28',
error: '#FF0000',
primary: "#ff7c02",
secondary: "#333333",
accent: "#7BA4D9",
success: "#69BE28",
error: "#FF0000",
};

export const highContrastTheme: Partial<VuetifyThemeVariant> = {
...lightTheme,
primary: "#000000"
};

// https://medium.com/@jogarcia/vuetify-multiple-themes-c580f41ece65
Expand Down

0 comments on commit 73fa862

Please sign in to comment.