@@ -12,6 +12,7 @@ import { usePlatform } from "@/context/platform"
1212import { useSettings , monoFontFamily } from "@/context/settings"
1313import { playSound , SOUND_OPTIONS } from "@/utils/sound"
1414import { Link } from "./link"
15+ import { SettingsList } from "./settings-list"
1516
1617let demoSoundState = {
1718 cleanup : undefined as ( ( ) => void ) | undefined ,
@@ -177,7 +178,7 @@ export const SettingsGeneral: Component = () => {
177178
178179 const GeneralSection = ( ) => (
179180 < div class = "flex flex-col gap-1" >
180- < div class = "bg-surface-raised-base px-4 rounded-lg" >
181+ < SettingsList >
181182 < SettingsRow
182183 title = { language . t ( "settings.general.row.language.title" ) }
183184 description = { language . t ( "settings.general.row.language.description" ) }
@@ -248,15 +249,15 @@ export const SettingsGeneral: Component = () => {
248249 triggerStyle = { { "min-width" : "180px" } }
249250 />
250251 </ SettingsRow >
251- </ div >
252+ </ SettingsList >
252253 </ div >
253254 )
254255
255256 const AppearanceSection = ( ) => (
256257 < div class = "flex flex-col gap-1" >
257258 < h3 class = "text-14-medium text-text-strong pb-2" > { language . t ( "settings.general.section.appearance" ) } </ h3 >
258259
259- < div class = "bg-surface-raised-base px-4 rounded-lg" >
260+ < SettingsList >
260261 < SettingsRow
261262 title = { language . t ( "settings.general.row.colorScheme.title" ) }
262263 description = { language . t ( "settings.general.row.colorScheme.description" ) }
@@ -333,15 +334,15 @@ export const SettingsGeneral: Component = () => {
333334 ) }
334335 </ Select >
335336 </ SettingsRow >
336- </ div >
337+ </ SettingsList >
337338 </ div >
338339 )
339340
340341 const NotificationsSection = ( ) => (
341342 < div class = "flex flex-col gap-1" >
342343 < h3 class = "text-14-medium text-text-strong pb-2" > { language . t ( "settings.general.section.notifications" ) } </ h3 >
343344
344- < div class = "bg-surface-raised-base px-4 rounded-lg" >
345+ < SettingsList >
345346 < SettingsRow
346347 title = { language . t ( "settings.general.notifications.agent.title" ) }
347348 description = { language . t ( "settings.general.notifications.agent.description" ) }
@@ -377,15 +378,15 @@ export const SettingsGeneral: Component = () => {
377378 />
378379 </ div >
379380 </ SettingsRow >
380- </ div >
381+ </ SettingsList >
381382 </ div >
382383 )
383384
384385 const SoundsSection = ( ) => (
385386 < div class = "flex flex-col gap-1" >
386387 < h3 class = "text-14-medium text-text-strong pb-2" > { language . t ( "settings.general.section.sounds" ) } </ h3 >
387388
388- < div class = "bg-surface-raised-base px-4 rounded-lg" >
389+ < SettingsList >
389390 < SettingsRow
390391 title = { language . t ( "settings.general.sounds.agent.title" ) }
391392 description = { language . t ( "settings.general.sounds.agent.description" ) }
@@ -430,15 +431,15 @@ export const SettingsGeneral: Component = () => {
430431 ) }
431432 />
432433 </ SettingsRow >
433- </ div >
434+ </ SettingsList >
434435 </ div >
435436 )
436437
437438 const UpdatesSection = ( ) => (
438439 < div class = "flex flex-col gap-1" >
439440 < h3 class = "text-14-medium text-text-strong pb-2" > { language . t ( "settings.general.section.updates" ) } </ h3 >
440441
441- < div class = "bg-surface-raised-base px-4 rounded-lg" >
442+ < SettingsList >
442443 < SettingsRow
443444 title = { language . t ( "settings.updates.row.startup.title" ) }
444445 description = { language . t ( "settings.updates.row.startup.description" ) }
@@ -474,7 +475,7 @@ export const SettingsGeneral: Component = () => {
474475 : language . t ( "settings.updates.action.checkNow" ) }
475476 </ Button >
476477 </ SettingsRow >
477- </ div >
478+ </ SettingsList >
478479 </ div >
479480 )
480481
@@ -504,7 +505,7 @@ export const SettingsGeneral: Component = () => {
504505 <div class="flex flex-col gap-1">
505506 <h3 class="text-14-medium text-text-strong pb-2">{language.t("settings.desktop.section.wsl")}</h3>
506507
507- <div class="bg-surface-raised-base px-4 rounded-lg" >
508+ <SettingsList >
508509 <SettingsRow
509510 title={language.t("settings.desktop.wsl.title")}
510511 description={language.t("settings.desktop.wsl.description")}
@@ -517,7 +518,7 @@ export const SettingsGeneral: Component = () => {
517518 />
518519 </div>
519520 </SettingsRow>
520- </div >
521+ </SettingsList >
521522 </div>
522523 )
523524 }}
@@ -537,7 +538,7 @@ export const SettingsGeneral: Component = () => {
537538 < div class = "flex flex-col gap-1" >
538539 < h3 class = "text-14-medium text-text-strong pb-2" > { language . t ( "settings.general.section.display" ) } </ h3 >
539540
540- < div class = "bg-surface-raised-base px-4 rounded-lg" >
541+ < SettingsList >
541542 < SettingsRow
542543 title = {
543544 < div class = "flex items-center gap-2" >
@@ -555,7 +556,7 @@ export const SettingsGeneral: Component = () => {
555556 < Switch checked = { value ( ) === "wayland" } onChange = { onChange } />
556557 </ div >
557558 </ SettingsRow >
558- </ div >
559+ </ SettingsList >
559560 </ div >
560561 )
561562 } }
0 commit comments