@@ -16,7 +16,6 @@ import { useKey } from '../composables/useKey'
16
16
import { useTauriEvent } from ' ../composables/useTauriEvent'
17
17
import Separator from ' ../components/Separator.vue'
18
18
import Tooltip from ' ../components/Tooltip.vue'
19
- import { useElementNavigation } from ' ../composables/useElementNavigation'
20
19
import SlotRef from ' ../components/SlotRef.vue'
21
20
import MenuItems , { menuItem } from ' ../components/MenuItems.vue'
22
21
import Popover from ' ../components/Popover.vue'
@@ -90,14 +89,6 @@ async function handleUpdateShowSystemNotifications(value: boolean) {
90
89
showSystemNotifications .value = value
91
90
}
92
91
93
- const container = ref <HTMLElement | null >(null )
94
- useElementNavigation ({
95
- target: container ,
96
- targetQuery: ' button:not(.settings-header-back-button)' ,
97
- navigateNextHotkey: ' down' ,
98
- navigatePreviousHotkey: ' up' ,
99
- })
100
-
101
92
const selectedColorText = computedEager (() => {
102
93
switch (AppStorage .get (' colorPreference' )) {
103
94
case ColorPreference .System :
@@ -150,7 +141,6 @@ function handleScroll(e: Event) {
150
141
151
142
<template >
152
143
<div
153
- ref =" container"
154
144
class =" settings"
155
145
@scroll =" handleScroll"
156
146
>
@@ -187,7 +177,37 @@ function handleScroll(e: Event) {
187
177
dot
188
178
style =" margin-bottom : 20px ;"
189
179
>
190
- Notifications
180
+ Appearance
181
+ </PageHeader >
182
+
183
+ <SettingItem title =" Theme" >
184
+ <SlotRef >
185
+ <template #default >
186
+ <AppButton >
187
+ {{ selectedColorText }}
188
+
189
+ <template #icon >
190
+ <Icons .ChevronDown />
191
+ </template >
192
+ </AppButton >
193
+ </template >
194
+
195
+ <template #ref =" { el } " >
196
+ <Popover
197
+ :target =" el"
198
+ :wowerlayOptions =" { position: 'bottom-end' }"
199
+ >
200
+ <MenuItems :items =" selectColorItems" />
201
+ </Popover >
202
+ </template >
203
+ </SlotRef >
204
+ </SettingItem >
205
+
206
+ <PageHeader
207
+ dot
208
+ style =" margin : 20px 0px ;"
209
+ >
210
+ System
191
211
</PageHeader >
192
212
193
213
<SettingItem title =" Sounds" >
@@ -208,24 +228,6 @@ function handleScroll(e: Event) {
208
228
209
229
<Separator style =" margin : 2px auto " />
210
230
211
- <SettingItem title =" Show only participating" >
212
- <Switch
213
- :modelValue =" showOnlyParticipating"
214
- @update:modelValue =" showOnlyParticipating = $event"
215
- />
216
- </SettingItem >
217
-
218
- <Separator style =" margin : 2px auto " />
219
-
220
- <SettingItem title =" Show read notifications" >
221
- <Switch
222
- :modelValue =" showReadNotifications"
223
- @update:modelValue =" showReadNotifications = $event"
224
- />
225
- </SettingItem >
226
-
227
- <Separator style =" margin : 2px auto " />
228
-
229
231
<SettingItem title =" Show system notifications" >
230
232
<Switch
231
233
:modelValue =" showSystemNotifications"
@@ -237,30 +239,23 @@ function handleScroll(e: Event) {
237
239
dot
238
240
style =" margin : 20px 0px ;"
239
241
>
240
- Appearance
242
+ Notifications
241
243
</PageHeader >
242
244
243
- <SettingItem title =" Theme" >
244
- <SlotRef >
245
- <template #default >
246
- <AppButton >
247
- {{ selectedColorText }}
245
+ <SettingItem title =" Show only participating" >
246
+ <Switch
247
+ :modelValue =" showOnlyParticipating"
248
+ @update:modelValue =" showOnlyParticipating = $event"
249
+ />
250
+ </SettingItem >
248
251
249
- <template #icon >
250
- <Icons .ChevronDown />
251
- </template >
252
- </AppButton >
253
- </template >
252
+ <Separator style =" margin : 2px auto " />
254
253
255
- <template #ref =" { el } " >
256
- <Popover
257
- :target =" el"
258
- :wowerlayOptions =" { position: 'bottom-end' }"
259
- >
260
- <MenuItems :items =" selectColorItems" />
261
- </Popover >
262
- </template >
263
- </SlotRef >
254
+ <SettingItem title =" Show read notifications" >
255
+ <Switch
256
+ :modelValue =" showReadNotifications"
257
+ @update:modelValue =" showReadNotifications = $event"
258
+ />
264
259
</SettingItem >
265
260
</div >
266
261
</div >
0 commit comments