Skip to content

Commit

Permalink
- FONCTIONNEL : Mise en place d'un moyen de gestion global du style d…
Browse files Browse the repository at this point in the history
…es composants en lien avec les themes vuetify
  • Loading branch information
jvk88511334 committed Aug 27, 2024
1 parent e151c37 commit 0c6537b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
7 changes: 7 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,3 +125,10 @@ function toggleDrawer() {
color: #B71C1C !important; /* Assure que le bouton de fermeture est de la même couleur que le texte */
}
</style>
<style>
.custom-card-title {
background-color: v-bind('$vuetify.theme.current.colors.primary');
color: white;
}
</style>
6 changes: 4 additions & 2 deletions src/components/Rcr.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
A<template>
<v-card elevation="0">
<v-card-title>
<v-card-title class="custom-card-title">
<span>Sélection du RCR</span>
</v-card-title>
<v-card-text class="pt-5">
Expand All @@ -21,9 +21,10 @@ A<template>

<script setup>
import idrefService from '@/service/IdrefService'
import {onMounted, ref} from 'vue'
import {computed, onMounted, ref} from 'vue'
import {useAuthStore} from '@/store/authStore'
const authStore = useAuthStore()
const listRcr = ref([])
const rcr = defineModel()
Expand Down Expand Up @@ -64,3 +65,4 @@ onMounted(() => {
});
});
</script>

9 changes: 0 additions & 9 deletions src/plugins/vuetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,4 @@ export default createVuetify({
itemDarkTheme
},
},
defaults: {
VCardTitle: {
class: 'd-flex justify-space-between',
style: ({ $vuetify }) => ({
backgroundColor: $vuetify.theme.current.colors.primary,
color: 'white',
}),
},
},
})
2 changes: 1 addition & 1 deletion src/views/Utilisateur/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</v-col>
</v-row>
<v-card class="elevation-5">
<v-card-title class="py-4" style="background-color: #295494; color: white" >
<v-card-title class="py-4 custom-card-title">
<span>Connexion</span>
</v-card-title>
<v-card-text>
Expand Down

0 comments on commit 0c6537b

Please sign in to comment.