Jelajahi Sumber

feat: shuffle mode help and status bar

Fela Maslen 4 tahun lalu
induk
melakukan
c92f8b41cd

+ 1 - 0
gmus-web/src/components/ui/cmus/views/help.tsx

@@ -10,6 +10,7 @@ const commandsGeneral: Command[] = [
   { command: 'z', description: 'previous song' },
   { command: 'c', description: 'play / pause' },
   { command: 'b', description: 'next song' },
+  { command: 's', description: 'toggle shuffle mode' },
   { command: 'j', description: 'select next list item' },
   { command: 'k', description: 'select previous list item' },
   { command: '<PageDown>', description: 'select next page of list items' },

+ 2 - 0
gmus-web/src/components/ui/cmus/views/status.tsx

@@ -63,6 +63,8 @@ export const PlayerStatus: React.FC<Props> = ({ song, ...props }) => {
           {isActiveClient(state) ? '🔊' : '🔈'}
         </Styled.ClientName>
         &nbsp;
+        {state.player.shuffleMode ? 'S' : ' '}
+        &nbsp;
         <StatusIcon {...props} />
       </Styled.PlayStatus>
     </Styled.StatusContainer>