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`
|
const VolumeLabel = styled.label`
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
margin-bottom: 20px;
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const ActionButton = styled.button`
|
const ActionButton = styled.button`
|
||||||
|
@ -121,6 +120,8 @@ function BindingsWindow({
|
||||||
Volume:
|
Volume:
|
||||||
<Slider value={volume} onChange={(e) => setVolume(e)} />
|
<Slider value={volume} onChange={(e) => setVolume(e)} />
|
||||||
</VolumeLabel>
|
</VolumeLabel>
|
||||||
|
<ActionButton onClick={() => setVolume(0)}>Mute</ActionButton>
|
||||||
|
|
||||||
<BindingsControl
|
<BindingsControl
|
||||||
bindings={bindings}
|
bindings={bindings}
|
||||||
setBindings={setBindings}
|
setBindings={setBindings}
|
||||||
|
|
|
@ -57,6 +57,7 @@ const SelectButton = styled.button<SelectButtonProps>`
|
||||||
|
|
||||||
const ButtonWrapper = styled.div`
|
const ButtonWrapper = styled.div`
|
||||||
display: grid;
|
display: grid;
|
||||||
|
margin-top: 10px;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export type KeyBindings = {
|
export type KeyBindings = {
|
||||||
|
|
Loading…
Reference in a new issue