22 <pf-page v-if =" !$route.meta.iframe" managed-sidebar >
33 <template #skeleton >
44 <pf-masthead >
5- <pf-masthead-toggle >
6- <pf-page-toggle-button >
7- <bars-icon />
8- </pf-page-toggle-button >
9- </pf-masthead-toggle >
105 <pf-masthead-main >
6+ <pf-masthead-toggle >
7+ <pf-page-toggle-button >
8+ <bars-icon />
9+ </pf-page-toggle-button >
10+ </pf-masthead-toggle >
1111 <router-link v-slot =" { href }" :to =" { name: 'introduction' }" custom >
1212 <pf-masthead-brand :href =" href" >
13- <pf-brand
14- src =" https://v5-archive.patternfly.org/assets/images/pf_logo.svg"
15- style =" height :40px ;filter :invert (1 )"
16- />
13+ <pf-brand :src =" PfLogo" style =" height :38px " />
1714 </pf-masthead-brand >
1815 </router-link >
1916 </pf-masthead-main >
2017 <pf-masthead-content >
2118 <pf-toolbar full-height >
2219 <pf-toolbar-content >
23- <pf-toolbar-item >header-tools</pf-toolbar-item >
24- <pf-toolbar-item align =" right" >
25- <pf-switch v-model:checked =" darkTheme" label =" Dark theme" />
26- </pf-toolbar-item >
20+ <pf-toolbar-group align =" end" >
21+ <pf-toolbar-item >
22+ <pf-toggle-group v-model =" darkTheme" >
23+ <pf-toggle-group-item :value =" false" >
24+ <sun-icon />
25+ </pf-toggle-group-item >
26+ <pf-toggle-group-item :value =" true" >
27+ <moon-icon />
28+ </pf-toggle-group-item >
29+ </pf-toggle-group >
30+ </pf-toolbar-item >
31+ </pf-toolbar-group >
2732 </pf-toolbar-content >
2833 </pf-toolbar >
2934 </pf-masthead-content >
6166
6267<style lang="scss">
6368.page__layouts {
64- .pf-v5 -l-bullseye ,
65- .pf-v5 -l-bullseye > div ,
66- .pf-v5 -l-flex ,
67- .pf-v5 -l-flex > div ,
68- .pf-v5 -l-gallery ,
69- .pf-v5 -l-gallery > div ,
70- .pf-v5 -l-grid ,
71- .pf-v5 -l-grid > div ,
72- .pf-v5 -l-level ,
73- .pf-v5 -l-level > div ,
74- .pf-v5 -l-split ,
75- .pf-v5 -l-split > div ,
76- .pf-v5 -l-stack ,
77- .pf-v5 -l-stack > div {
69+ .pf-v6 -l-bullseye ,
70+ .pf-v6 -l-bullseye > div ,
71+ .pf-v6 -l-flex ,
72+ .pf-v6 -l-flex > div ,
73+ .pf-v6 -l-gallery ,
74+ .pf-v6 -l-gallery > div ,
75+ .pf-v6 -l-grid ,
76+ .pf-v6 -l-grid > div ,
77+ .pf-v6 -l-level ,
78+ .pf-v6 -l-level > div ,
79+ .pf-v6 -l-split ,
80+ .pf-v6 -l-split > div ,
81+ .pf-v6 -l-stack ,
82+ .pf-v6 -l-stack > div {
7883 border-style : dashed !important ;
7984 border-width : 2px !important ;
8085 padding : 1rem !important ;
8186 }
8287
83- .pf-v5 -l-bullseye ,
84- .pf-v5 -l-flex ,
85- .pf-v5 -l-gallery ,
86- .pf-v5 -l-grid ,
87- .pf-v5 -l-level ,
88- .pf-v5 -l-split ,
89- .pf-v5 -l-stack {
88+ .pf-v6 -l-bullseye ,
89+ .pf-v6 -l-flex ,
90+ .pf-v6 -l-gallery ,
91+ .pf-v6 -l-grid ,
92+ .pf-v6 -l-level ,
93+ .pf-v6 -l-split ,
94+ .pf-v6 -l-stack {
9095 margin : 1rem 0 !important ;
9196 }
9297}
9398 </style >
9499
95100<script lang="ts" setup>
96- import { computed } from ' vue' ;
101+ import { computed , ref , watch } from ' vue' ;
97102import { stories } from ' ./router' ;
98103import { useAlertsStore } from ' ./store/alerts' ;
99- import { ref } from ' vue' ;
100- import { watch } from ' vue' ;
104+ import PfLogo from ' @patternfly/patternfly/assets/images/PF-HorizontalLogo-Color.svg' ;
101105import BarsIcon from ' @vue-patternfly/icons/bars-icon' ;
106+ import SunIcon from ' @vue-patternfly/icons/sun-icon' ;
107+ import MoonIcon from ' @vue-patternfly/icons/moon-icon' ;
102108
103109const alerts = useAlertsStore ();
104110const maxDisplayed = ref (5 );
@@ -114,15 +120,14 @@ const overflowMessage = computed(() => {
114120 return ' ' ;
115121});
116122
117- const darkTheme = computed ({
118- get : () => document .documentElement .classList .contains (' pf-v5-theme-dark' ),
119- set(value ) {
120- if (value ) {
121- document .documentElement .classList .add (' pf-v5-theme-dark' );
122- } else {
123- document .documentElement .classList .remove (' pf-v5-theme-dark' );
124- }
125- },
123+ const darkTheme = ref (document .documentElement .classList .contains (' pf-v6-theme-dark' ));
124+
125+ watch (darkTheme , value => {
126+ if (value ) {
127+ document .documentElement .classList .add (' pf-v6-theme-dark' );
128+ } else {
129+ document .documentElement .classList .remove (' pf-v6-theme-dark' );
130+ }
126131});
127132
128133function expandAlerts() {
0 commit comments