Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehjohn committed Aug 14, 2024
1 parent 3083c20 commit 4c607fd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Zen.Desktop.Host/Infrastructure/Menu/SoundMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ public override List<Label> GetMenu()
var items = new List<Label>
{
new(0, true, "Zen - Sound", Color.White, 0, 0, null),
new(1, false, $"[1] {(AppSettings.Instance.Sound ? ">" : " ")} On {(AppSettings.Instance.Sound ? "<" : " ")}", Color.Yellow, 1, 3, Keys.D1, Color.LightGreen),
new(2, false, $"[2] {(AppSettings.Instance.Sound ? " " : ">")} Off {(AppSettings.Instance.Sound ? " " : "<")}", Color.Yellow, 1, 5, Keys.D2, Color.LightGreen),
new(1, false, $"[1] {(AppSettings.Instance.Sound ? " " : ">")} Off {(AppSettings.Instance.Sound ? " " : "<")}", Color.Yellow, 1, 3, Keys.D1, Color.LightGreen),
new(2, false, $"[2] {(AppSettings.Instance.Sound && AppSettings.Instance.AudioEngine == AudioEngine.PortAudio ? ">" : " ")} On - PortAudio {(AppSettings.Instance.AudioEngine == AudioEngine.PortAudio ? "<" : " ")}", Color.Yellow, 1, 5, Keys.D2, Color.LightGreen),
new(3, false, $"[3] {(AppSettings.Instance.Sound && AppSettings.Instance.AudioEngine == AudioEngine.Bass ? ">" : " ")} On - Bass {(AppSettings.Instance.AudioEngine == AudioEngine.PortAudio ? "<" : " ")}", Color.Yellow, 1, 7, Keys.D3, Color.LightGreen),
new(99, true, "[ESC] Close Menu", Color.FromNonPremultiplied(255, 64, 64, 255), 0, 21, Keys.Escape, Color.LightGreen)
};

Expand All @@ -25,10 +26,10 @@ public override (MenuResult Result, MenuBase NewMenu, object Arguments) ItemSele
switch (id)
{
case 1:
return (MenuResult.SoundOn, null, null);
return (MenuResult.SoundOff, null, null);

case 2:
return (MenuResult.SoundOff, null, null);
return (MenuResult.SoundOn, null, null);

default:
return (MenuResult.NewMenu, new MainMenu(), null);
Expand Down

0 comments on commit 4c607fd

Please sign in to comment.