Add in the ability to make custom overrides.

Fixed issues with the CSS in the property inspector
Make it so i can actually write unit tests if i want to
This commit is contained in:
2024-04-20 21:19:44 -06:00
parent 7abbc92080
commit fdfa32909f
29 changed files with 810 additions and 216 deletions

View File

@ -10,9 +10,11 @@ using FocusVolumeControl.AudioSession;
namespace FocusVolumeControl.AudioSessions;
#nullable enable
public sealed class ActiveAudioSessionWrapper : IAudioSession
{
public string DisplayName { get; set; }
public string DisplayName { get; set; } = null!;
private List<IAudioSessionControl2> Sessions { get; } = new List<IAudioSessionControl2>();
private IEnumerable<ISimpleAudioVolume> Volume => Sessions.Cast<ISimpleAudioVolume>();
@ -102,3 +104,4 @@ public sealed class ActiveAudioSessionWrapper : IAudioSession
return VolumeHelpers.GetVolumePercentage(level);
}
}
#nullable restore

View File

@ -4,6 +4,8 @@ using FocusVolumeControl.UI;
using System;
using System.Drawing;
#nullable enable
namespace FocusVolumeControl.AudioSession
{
public abstract class IconWrapper
@ -101,3 +103,4 @@ namespace FocusVolumeControl.AudioSession
}
}
#nullable restore