mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Add a mute button
This commit is contained in:
parent
489e95de9f
commit
f354cff108
|
@ -15,7 +15,6 @@ const BindingsDialog = styled.dialog`
|
|||
const VolumeLabel = styled.label`
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-bottom: 20px;
|
||||
`;
|
||||
|
||||
const ActionButton = styled.button`
|
||||
|
@ -121,6 +120,8 @@ function BindingsWindow({
|
|||
Volume:
|
||||
<Slider value={volume} onChange={(e) => setVolume(e)} />
|
||||
</VolumeLabel>
|
||||
<ActionButton onClick={() => setVolume(0)}>Mute</ActionButton>
|
||||
|
||||
<BindingsControl
|
||||
bindings={bindings}
|
||||
setBindings={setBindings}
|
||||
|
|
|
@ -57,6 +57,7 @@ const SelectButton = styled.button<SelectButtonProps>`
|
|||
|
||||
const ButtonWrapper = styled.div`
|
||||
display: grid;
|
||||
margin-top: 10px;
|
||||
`;
|
||||
|
||||
export type KeyBindings = {
|
||||
|
|
Loading…
Reference in a new issue