@@ -666,6 +666,13 @@ function backgroundView(snapshot: PublicationSnapshot, noColor: boolean) {
666666 bold : index === selected ,
667667 color : index === selected && ! noColor ? "cyan" : undefined ,
668668 } , ( ) => `${ index === selected ? "› " : " " } ${ label . padEnd ( 20 ) } ${ value } ` ) ;
669+ const soundRow = ( sound : string ) => h ( Box , { flexDirection : "row" } , ( ) => [
670+ h ( Text , {
671+ bold : selected === 1 ,
672+ color : selected === 1 && ! noColor ? "cyan" : undefined ,
673+ } , ( ) => `${ selected === 1 ? "› " : " " } ${ "Sound" . padEnd ( 20 ) } ${ sound } ` ) ,
674+ h ( Text , { dimColor : true } , ( ) => " · Press Enter to choose" ) ,
675+ ] ) ;
669676 if ( state . status === "hidden" ) return null ;
670677 if ( state . status === "candidate" || state . status === "probing" ) {
671678 return h ( Box , { flexDirection : "column" , flexGrow : 1 , paddingX : 2 , paddingY : 1 } , ( ) => [
@@ -691,7 +698,7 @@ function backgroundView(snapshot: PublicationSnapshot, noColor: boolean) {
691698 h ( Text , { bold : true } , ( ) => "Background Sounds · macOS" ) ,
692699 h ( Text , ( ) => "" ) ,
693700 row ( 0 , "Background Sounds" , snapshotValue . enabled ? "● On" : "○ Off" ) ,
694- row ( 1 , "Sound" , ` ${ snapshotValue . sound . label } · Enter to choose` ) ,
701+ soundRow ( snapshotValue . sound . label ) ,
695702 row ( 2 , "Volume" , `[${ "■" . repeat ( filled ) } ${ "·" . repeat ( 10 - filled ) } ] ${ snapshotValue . volumePercent } %${ pendingVolume === null ? "" : ` → ${ pendingVolume } % pending` } ` ) ,
696703 h ( Text , { dimColor : true } , ( ) => ` ${ "State" . padEnd ( 20 ) } ${ busy ? "Refreshing from macOS…" : stale ? "Stale · press u to retry" : "Confirmed from macOS" } ` ) ,
697704 stale ? h ( Text , { color : noColor ? undefined : "red" } , ( ) => state . error ) : null ,
0 commit comments