UI - Added keyboard layout selection UI

This commit is contained in:
Robert committed 2021-03-09 00:30:11 +01:00
1 parent ea1633c322
commit 46d3a288e9
20 files changed
+460 -12

No files matched your search

@@ -12,9 +12,12 @@ namespace Artemis.UI.Shared
{
internal class DeviceVisualizerLed
{
private const byte Dimmed = 100;
private const byte NonDimmed = 255;
private SolidColorBrush? _renderColorBrush;
private Color _renderColor;
public DeviceVisualizerLed(ArtemisLed led)
{
Led = led;
@@ -49,6 +52,7 @@ namespace Artemis.UI.Shared
byte b = Led.RgbLed.Color.GetB();
_renderColor.A = (byte)(isDimmed ? 100 : 255);
_renderColor.A = isDimmed ? Dimmed : NonDimmed;
_renderColor.R = r;
_renderColor.G = g;
_renderColor.B = b;
@@ -17,7 +17,7 @@
Text="{Binding Text}"
TextWrapping="Wrap" />
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="0 8 0 0">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right" Margin="16">
<Button Style="{StaticResource MaterialDesignFlatButton}"
Focusable="False"
IsCancel="True"