1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Surface editor - Show LED colors in editor

Surface editor - Link to FAQ for missing layouts
This commit is contained in:
Robert 2020-12-14 20:00:48 +01:00
parent 746c42e538
commit c401bc6525
3 changed files with 39 additions and 12 deletions

View File

@ -34,12 +34,32 @@
</Grid.RowDefinitions> </Grid.RowDefinitions>
<StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3"> <StackPanel Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3">
<TextBlock> <Grid>
<InlineUIContainer> <Grid.ColumnDefinitions>
<materialDesign:PackIcon Kind="AboutOutline" Margin="0 0 0 -3" /> <ColumnDefinition Width="25" />
</InlineUIContainer> <ColumnDefinition />
<Run Text=" The surface is a digital representation of your LED setup. Set this up accurately and effects will seamlessly move from one device to the other." /> </Grid.ColumnDefinitions>
</TextBlock> <Grid.RowDefinitions>
<RowDefinition />
<RowDefinition />
</Grid.RowDefinitions>
<materialDesign:PackIcon Grid.Column="0" Grid.RowSpan="2" Kind="AboutOutline" />
<TextBlock Grid.Row="0" Grid.Column="1">
The surface is a digital representation of your LED setup. Set this up accurately and effects will seamlessly move from one
device to the other.
</TextBlock>
<TextBlock Grid.Row="1" Grid.Column="1">
Are devices showing up as gray blocks and/or are LEDs in wrong place and not sure why?
<Run Text="Check out the" FontWeight="Bold" />
<Hyperlink Style="{StaticResource ArtemisHyperlink}"
RequestNavigate="{s:Action OpenHyperlink}"
FontWeight="Bold"
NavigateUri="https://wiki.artemis-rgb.com/faq#q-my-device-is-missing-an-image-and-the-leds-are-in-the-wrong-place-whats-wrong">
FAQ
</Hyperlink>
<Run Text="more info." FontWeight="Bold" />
</TextBlock>
</Grid>
<Border BorderBrush="{DynamicResource MaterialDesignDivider}" BorderThickness="0 0 0 1" Margin="0 10" /> <Border BorderBrush="{DynamicResource MaterialDesignDivider}" BorderThickness="0 0 0 1" Margin="0 10" />
</StackPanel> </StackPanel>
@ -257,8 +277,9 @@
<InlineUIContainer> <InlineUIContainer>
<materialDesign:PackIcon Kind="Keyboard" Margin="0 0 0 -3" /> <materialDesign:PackIcon Kind="Keyboard" Margin="0 0 0 -3" />
</InlineUIContainer> </InlineUIContainer>
<Run Text=" " /><Run Text="Hold" /><Run Text=" " /><Run FontWeight="Bold" Text="shift" /><Run Text=" " /> <Run Text="Hold " /><Run FontWeight="Bold" Text="shift" />
<Run Text="or click and drag to select multiple devices at once. To move around the surface hold down" /><Run Text=" " /><Run FontWeight="Bold" Text="ctrl" /><Run Text=" " /> <Run Text="or click and drag to select multiple devices at once. To move around the surface hold down" />
<Run FontWeight="Bold" Text="ctrl" />
<Run Text="and drag." /> <Run Text="and drag." />
</TextBlock> </TextBlock>
</Grid> </Grid>

View File

@ -7,6 +7,7 @@ using System.Windows;
using System.Windows.Controls; using System.Windows.Controls;
using System.Windows.Input; using System.Windows.Input;
using System.Windows.Media; using System.Windows.Media;
using System.Windows.Navigation;
using Artemis.Core; using Artemis.Core;
using Artemis.Core.Services; using Artemis.Core.Services;
using Artemis.UI.Screens.Shared; using Artemis.UI.Screens.Shared;
@ -114,6 +115,11 @@ namespace Artemis.UI.Screens.SurfaceEditor
return config; return config;
} }
public void OpenHyperlink(object sender, RequestNavigateEventArgs e)
{
Core.Utilities.OpenUrl(e.Uri.AbsoluteUri);
}
public async Task AutoArrange() public async Task AutoArrange()
{ {
bool confirmed = await _dialogService.ShowConfirmDialog("Auto-arrange layout", "Are you sure you want to auto-arrange your layout? Your current settings will be overwritten."); bool confirmed = await _dialogService.ShowConfirmDialog("Auto-arrange layout", "Are you sure you want to auto-arrange your layout? Your current settings will be overwritten.");

View File

@ -20,7 +20,7 @@
<Grid> <Grid>
<!-- Content --> <!-- Content -->
<Grid> <Grid>
<shared:DeviceVisualizer Device="{Binding Device}" VerticalAlignment="Top" HorizontalAlignment="Left" /> <shared:DeviceVisualizer Device="{Binding Device}" ShowColors="True" VerticalAlignment="Top" HorizontalAlignment="Left" />
<Rectangle Fill="{DynamicResource MaterialDesignCardBackground}" <Rectangle Fill="{DynamicResource MaterialDesignCardBackground}"
Stroke="{DynamicResource MaterialDesignTextBoxBorder}" Stroke="{DynamicResource MaterialDesignTextBoxBorder}"