mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-01-01 18:23:32 +00:00
Yes! I Love it when not all files are saved!
This commit is contained in:
parent
5340e6c6d4
commit
6a5304c3e3
@ -31,7 +31,7 @@
|
|||||||
Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Teal.xaml" />
|
Source="pack://application:,,,/MaterialDesignColors;component/Themes/Recommended/Accent/MaterialDesignColor.Teal.xaml" />
|
||||||
|
|
||||||
<!-- Include the Dragablz Material Design style -->
|
<!-- Include the Dragablz Material Design style -->
|
||||||
<ResourceDictionary Source="pack://application:,,,/Dragablz;component/Themes/materialdesign.xaml"/>
|
<ResourceDictionary Source="pack://application:,,,/Dragablz;component/Themes/materialdesign.xaml" />
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
|
||||||
<!-- MahApps Brushes -->
|
<!-- MahApps Brushes -->
|
||||||
@ -59,7 +59,8 @@
|
|||||||
Color="{DynamicResource Primary500Foreground}" />
|
Color="{DynamicResource Primary500Foreground}" />
|
||||||
|
|
||||||
<!-- tell Dragablz tab control to use the Material Design theme -->
|
<!-- tell Dragablz tab control to use the Material Design theme -->
|
||||||
<Style TargetType="{x:Type dragablz:TabablzControl}" BasedOn="{StaticResource MaterialDesignTabablzControlStyle}" />
|
<Style TargetType="{x:Type dragablz:TabablzControl}"
|
||||||
|
BasedOn="{StaticResource MaterialDesignTabablzControlStyle}" />
|
||||||
|
|
||||||
<!-- Some general convertes etc. -->
|
<!-- Some general convertes etc. -->
|
||||||
<BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter" />
|
<BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter" />
|
||||||
|
|||||||
@ -10,12 +10,12 @@
|
|||||||
d:DataContext="{d:DesignInstance {x:Type profileEditor:ProfileDeviceViewModel}}"
|
d:DataContext="{d:DesignInstance {x:Type profileEditor:ProfileDeviceViewModel}}"
|
||||||
d:DesignHeight="450" d:DesignWidth="800">
|
d:DesignHeight="450" d:DesignWidth="800">
|
||||||
<UserControl.Resources>
|
<UserControl.Resources>
|
||||||
<converters:NullToImageConverter x:Key="NullToImageConverter"/>
|
<converters:NullToImageConverter x:Key="NullToImageConverter" />
|
||||||
<converters:NullToVisibilityConverter x:Key="NullToVisibilityConverter" />
|
<converters:NullToVisibilityConverter x:Key="NullToVisibilityConverter" />
|
||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
<Grid>
|
<Grid>
|
||||||
<!-- Device image with fallback -->
|
<!-- Device image with fallback -->
|
||||||
<Image Source="{Binding Device.RgbDevice.DeviceInfo.Image, Converter={StaticResource NullToImageConverter}}"/>
|
<Image Source="{Binding Device.RgbDevice.DeviceInfo.Image, Converter={StaticResource NullToImageConverter}}" />
|
||||||
|
|
||||||
<Rectangle Fill="{DynamicResource ControlBackgroundBrush}"
|
<Rectangle Fill="{DynamicResource ControlBackgroundBrush}"
|
||||||
Stroke="{DynamicResource ControlBorderBrush}"
|
Stroke="{DynamicResource ControlBorderBrush}"
|
||||||
|
|||||||
@ -111,8 +111,7 @@
|
|||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<ContentControl Width="{Binding Device.RgbDevice.Size.Width}"
|
<ContentControl Width="{Binding Device.RgbDevice.Size.Width}"
|
||||||
Height="{Binding Device.RgbDevice.Size.Height}"
|
Height="{Binding Device.RgbDevice.Size.Height}"
|
||||||
s:View.Model="{Binding}">
|
s:View.Model="{Binding}" />
|
||||||
</ContentControl>
|
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl.ItemTemplate>
|
</ItemsControl.ItemTemplate>
|
||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
@ -149,8 +148,10 @@
|
|||||||
</Grid>
|
</Grid>
|
||||||
</materialDesign:Card>
|
</materialDesign:Card>
|
||||||
|
|
||||||
<materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth1" Grid.Row="2" Grid.Column="1" VerticalAlignment="Stretch" Margin="5,0,0,0">
|
<materialDesign:Card materialDesign:ShadowAssist.ShadowDepth="Depth1" Grid.Row="2" Grid.Column="1"
|
||||||
<materialDesign:DialogHost Identifier="SurfaceListDialogHost" CloseOnClickAway="True" UseLayoutRounding="True">
|
VerticalAlignment="Stretch" Margin="5,0,0,0">
|
||||||
|
<materialDesign:DialogHost Identifier="SurfaceListDialogHost" CloseOnClickAway="True"
|
||||||
|
UseLayoutRounding="True">
|
||||||
<Grid>
|
<Grid>
|
||||||
<Grid.RowDefinitions>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="*" />
|
<RowDefinition Height="*" />
|
||||||
|
|||||||
@ -4,7 +4,8 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
xmlns:profileEditor="clr-namespace:Artemis.UI.ViewModels.Controls.ProfileEditor"
|
xmlns:profileEditor="clr-namespace:Artemis.UI.ViewModels.Controls.ProfileEditor"
|
||||||
xmlns:Converters="clr-namespace:Artemis.UI.Converters" x:Class="Artemis.UI.Views.Controls.ProfileEditor.ProfileLedView"
|
xmlns:Converters="clr-namespace:Artemis.UI.Converters"
|
||||||
|
x:Class="Artemis.UI.Views.Controls.ProfileEditor.ProfileLedView"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
d:DataContext="{d:DesignInstance {x:Type profileEditor:ProfileLedViewModel}}"
|
d:DataContext="{d:DesignInstance {x:Type profileEditor:ProfileLedViewModel}}"
|
||||||
d:DesignHeight="25" d:DesignWidth="25"
|
d:DesignHeight="25" d:DesignWidth="25"
|
||||||
@ -14,7 +15,8 @@
|
|||||||
</UserControl.Resources>
|
</UserControl.Resources>
|
||||||
<Canvas Width="{Binding Width}" Height="{Binding Height}">
|
<Canvas Width="{Binding Width}" Height="{Binding Height}">
|
||||||
<Canvas.Background>
|
<Canvas.Background>
|
||||||
<ImageBrush AlignmentX="Center" AlignmentY="Center" Stretch="Fill" ImageSource="{Binding Led.Image, Converter={StaticResource NullToImageConverter}}" />
|
<ImageBrush AlignmentX="Center" AlignmentY="Center" Stretch="Fill"
|
||||||
|
ImageSource="{Binding Led.Image, Converter={StaticResource NullToImageConverter}}" />
|
||||||
</Canvas.Background>
|
</Canvas.Background>
|
||||||
|
|
||||||
<Path Data="{Binding DisplayGeometry}" ClipToBounds="False">
|
<Path Data="{Binding DisplayGeometry}" ClipToBounds="False">
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user