1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2026-02-04 10:53:31 +00:00

Tweak background

This commit is contained in:
Robert 2023-06-16 22:58:48 +02:00
parent af03f291d3
commit 49d229cd2b

View File

@ -1,58 +1,59 @@
<windowing:AppWindow xmlns="https://github.com/avaloniaui" <windowing:AppWindow xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:shared="clr-namespace:Artemis.UI.Shared;assembly=Artemis.UI.Shared" xmlns:shared="clr-namespace:Artemis.UI.Shared;assembly=Artemis.UI.Shared"
xmlns:device="clr-namespace:Artemis.UI.Screens.Device" xmlns:device="clr-namespace:Artemis.UI.Screens.Device"
xmlns:windowing="clr-namespace:FluentAvalonia.UI.Windowing;assembly=FluentAvalonia" xmlns:windowing="clr-namespace:FluentAvalonia.UI.Windowing;assembly=FluentAvalonia"
mc:Ignorable="d" d:DesignWidth="1200" d:DesignHeight="800" mc:Ignorable="d" d:DesignWidth="1200" d:DesignHeight="800"
x:Class="Artemis.UI.Screens.Device.DevicePropertiesView" x:Class="Artemis.UI.Screens.Device.DevicePropertiesView"
x:DataType="device:DevicePropertiesViewModel" x:DataType="device:DevicePropertiesViewModel"
Icon="/Assets/Images/Logo/application.ico" Icon="/Assets/Images/Logo/application.ico"
Title="Artemis | Device Properties" Title="Artemis | Device Properties"
WindowStartupLocation="CenterOwner" WindowStartupLocation="CenterOwner"
Width="1400" Width="1400"
Height="800"> Height="800">
<windowing:AppWindow.KeyBindings> <windowing:AppWindow.KeyBindings>
<KeyBinding Gesture="Escape" Command="{CompiledBinding ClearSelectedLeds}" /> <KeyBinding Gesture="Escape" Command="{CompiledBinding ClearSelectedLeds}" />
</windowing:AppWindow.KeyBindings> </windowing:AppWindow.KeyBindings>
<Grid ColumnDefinitions="*,0,1.5*"> <Grid ColumnDefinitions="*,0,1.5*">
<Grid.Background> <Border Grid.Column="0" Classes="card" Margin="5">
<VisualBrush TileMode="Tile" Stretch="Uniform" DestinationRect="0,0,25,25"> <Border.Background>
<VisualBrush.Visual> <VisualBrush TileMode="Tile" Stretch="Uniform" DestinationRect="0,0,25,25">
<Grid Width="25" Height="25" RowDefinitions="*,*" ColumnDefinitions="*,*"> <VisualBrush.Visual>
<Rectangle Grid.Row="0" Grid.Column="0" Fill="Black" Opacity="0.15" /> <Grid Width="25" Height="25" RowDefinitions="*,*" ColumnDefinitions="*,*">
<Rectangle Grid.Row="0" Grid.Column="1" /> <Rectangle Grid.Row="0" Grid.Column="0" Fill="Black" Opacity="0.15" />
<Rectangle Grid.Row="1" Grid.Column="0" /> <Rectangle Grid.Row="0" Grid.Column="1" />
<Rectangle Grid.Row="1" Grid.Column="1" Fill="Black" Opacity="0.15" /> <Rectangle Grid.Row="1" Grid.Column="0" />
</Grid> <Rectangle Grid.Row="1" Grid.Column="1" Fill="Black" Opacity="0.15" />
</VisualBrush.Visual> </Grid>
</VisualBrush> </VisualBrush.Visual>
</Grid.Background> </VisualBrush>
<Grid Grid.Column="0" Name="DeviceDisplayGrid" PointerReleased="DeviceDisplayGrid_OnPointerReleased"> </Border.Background>
<shared:DeviceVisualizer Device="{CompiledBinding Device}" <Grid Name="DeviceDisplayGrid" PointerReleased="DeviceDisplayGrid_OnPointerReleased">
HorizontalAlignment="Center" <shared:DeviceVisualizer Device="{CompiledBinding Device}"
VerticalAlignment="Center" HorizontalAlignment="Center"
ShowColors="True" VerticalAlignment="Center"
Margin="20" ShowColors="True"
RenderOptions.BitmapInterpolationMode="MediumQuality" Margin="5"
LedClicked="DeviceVisualizer_OnLedClicked" RenderOptions.BitmapInterpolationMode="MediumQuality"
Clicked="DeviceVisualizer_OnClicked" /> LedClicked="DeviceVisualizer_OnLedClicked"
Clicked="DeviceVisualizer_OnClicked" />
<StackPanel Orientation="Horizontal" <StackPanel Orientation="Horizontal"
VerticalAlignment="Bottom" VerticalAlignment="Bottom"
HorizontalAlignment="Left" HorizontalAlignment="Left"
Margin="15" IsVisible="{CompiledBinding Device.Layout.RgbLayout.Author, Converter={x:Static StringConverters.IsNotNullOrEmpty}}">
IsVisible="{CompiledBinding Device.Layout.RgbLayout.Author, Converter={x:Static StringConverters.IsNotNullOrEmpty}}"> <TextBlock Classes="h5" Text="Device layout by " />
<TextBlock Classes="h5" Text="Device layout by " /> <TextBlock Classes="h5" FontWeight="Bold" Text="{CompiledBinding Device.Layout.RgbLayout.Author}" />
<TextBlock Classes="h5" FontWeight="Bold" Text="{CompiledBinding Device.Layout.RgbLayout.Author}" /> </StackPanel>
</StackPanel> </Grid>
</Grid> </Border>
<GridSplitter Grid.Column="1" Width="15" Margin="-15 0 0 0" Background="Transparent" HorizontalAlignment="Stretch" /> <GridSplitter Grid.Column="1" Width="15" Margin="-15 0 0 0" Background="Transparent" HorizontalAlignment="Stretch" />
<Border Grid.Column="2" Classes="card-condensed" Margin="5" Background="#ff323232"> <Border Grid.Column="2" Classes="card-condensed" Margin="5">
<Panel> <Panel>
<TabControl ItemsSource="{CompiledBinding Tabs}" IsVisible="{CompiledBinding Tabs.Count}" Padding="12"> <TabControl ItemsSource="{CompiledBinding Tabs}" IsVisible="{CompiledBinding Tabs.Count}" Padding="12">
<TabControl.ItemTemplate> <TabControl.ItemTemplate>