Rewrite how picking a matching audio session works
rewrite the UI layer to make it only send updates to the stream deck if needed
This commit is contained in:
20
src/FocusVolumeControl/UI/ValueWithOpacity.cs
Normal file
20
src/FocusVolumeControl/UI/ValueWithOpacity.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlTypes;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FocusVolumeControl.UI
|
||||
{
|
||||
internal class ValueWithOpacity<T>
|
||||
{
|
||||
[JsonProperty("value")]
|
||||
public required T Value { get; init; }
|
||||
|
||||
[JsonProperty("opacity")]
|
||||
public required float Opacity { get; init; }
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user