mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
UI - Removed kinda hacky window style
This commit is contained in:
parent
091b65d1e4
commit
4325005b0e
@ -8,6 +8,5 @@
|
|||||||
|
|
||||||
<Application.Styles>
|
<Application.Styles>
|
||||||
<StyleInclude Source="avares://Artemis.UI/Styles/Artemis.axaml" />
|
<StyleInclude Source="avares://Artemis.UI/Styles/Artemis.axaml" />
|
||||||
<StyleInclude Source="avares://Artemis.UI.Shared/Styles/Artemis.axaml" />
|
|
||||||
</Application.Styles>
|
</Application.Styles>
|
||||||
</Application>
|
</Application>
|
||||||
|
|||||||
@ -5,22 +5,6 @@
|
|||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="Artemis.UI.MainWindow"
|
x:Class="Artemis.UI.MainWindow"
|
||||||
Icon="/Assets/Images/Logo/bow.ico"
|
Icon="/Assets/Images/Logo/bow.ico"
|
||||||
Title="Artemis.UI.Avalonia"
|
Title="Artemis 2.0">
|
||||||
ExtendClientAreaToDecorationsHint="True"
|
<ContentControl Content="{Binding}" />
|
||||||
TransparencyLevelHint="AcrylicBlur"
|
|
||||||
Background="Transparent">
|
|
||||||
|
|
||||||
<Panel>
|
|
||||||
<ExperimentalAcrylicBorder IsHitTestVisible="False">
|
|
||||||
<ExperimentalAcrylicBorder.Material>
|
|
||||||
<ExperimentalAcrylicMaterial
|
|
||||||
BackgroundSource="Digger"
|
|
||||||
TintColor="Black"
|
|
||||||
TintOpacity="1"
|
|
||||||
MaterialOpacity="0.85" />
|
|
||||||
</ExperimentalAcrylicBorder.Material>
|
|
||||||
</ExperimentalAcrylicBorder>
|
|
||||||
|
|
||||||
<ContentControl Content="{Binding}" />
|
|
||||||
</Panel>
|
|
||||||
</Window>
|
</Window>
|
||||||
@ -7,10 +7,10 @@
|
|||||||
xmlns:reactiveUi="http://reactiveui.net"
|
xmlns:reactiveUi="http://reactiveui.net"
|
||||||
mc:Ignorable="d" d:DesignWidth="1200" d:DesignHeight="800"
|
mc:Ignorable="d" d:DesignWidth="1200" d:DesignHeight="800"
|
||||||
x:Class="Artemis.UI.Screens.Debugger.DebugView"
|
x:Class="Artemis.UI.Screens.Debugger.DebugView"
|
||||||
|
Icon="/Assets/Images/Logo/bow.ico"
|
||||||
Title="Artemis | Debugger"
|
Title="Artemis | Debugger"
|
||||||
Width="1200"
|
Width="1200"
|
||||||
Height="800"
|
Height="800">
|
||||||
ExtendClientAreaToDecorationsHint="True">
|
|
||||||
|
|
||||||
<Window.Styles>
|
<Window.Styles>
|
||||||
<Style Selector="StackPanel.sidebar-stackpanel avalonia|MaterialIcon">
|
<Style Selector="StackPanel.sidebar-stackpanel avalonia|MaterialIcon">
|
||||||
@ -24,7 +24,7 @@
|
|||||||
SelectedItem="{Binding SelectedItem}"
|
SelectedItem="{Binding SelectedItem}"
|
||||||
IsPaneToggleButtonVisible="False"
|
IsPaneToggleButtonVisible="False"
|
||||||
PaneDisplayMode="Left"
|
PaneDisplayMode="Left"
|
||||||
Margin="0 30 0 0">
|
Margin="0 10 0 0">
|
||||||
<controls:NavigationView.MenuItems>
|
<controls:NavigationView.MenuItems>
|
||||||
<controls:NavigationViewItem Tag="Rendering">
|
<controls:NavigationViewItem Tag="Rendering">
|
||||||
<controls:NavigationViewItem.Content>
|
<controls:NavigationViewItem.Content>
|
||||||
|
|||||||
@ -5,66 +5,61 @@
|
|||||||
xmlns:controls="clr-namespace:Artemis.UI.Shared.Controls;assembly=Artemis.UI.Shared"
|
xmlns:controls="clr-namespace:Artemis.UI.Shared.Controls;assembly=Artemis.UI.Shared"
|
||||||
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"
|
||||||
|
Icon="/Assets/Images/Logo/bow.ico"
|
||||||
Title="Artemis | Device Properties"
|
Title="Artemis | Device Properties"
|
||||||
Width="1250"
|
Width="1250"
|
||||||
Height="900"
|
Height="900">
|
||||||
WindowStartupLocation="CenterOwner"
|
|
||||||
ExtendClientAreaToDecorationsHint="True">
|
|
||||||
<Grid>
|
|
||||||
<TextBlock Margin="10" IsHitTestVisible="False" Text="Artemis | Device Properties" />
|
|
||||||
|
|
||||||
<Grid Margin="0 32 0 0" ColumnDefinitions="*,0,1.5*">
|
<Grid ColumnDefinitions="*,0,1.5*">
|
||||||
<Grid Grid.Column="0" Name="DeviceDisplayGrid">
|
<Grid.Background>
|
||||||
<Grid.Background>
|
<VisualBrush TileMode="Tile" Stretch="Uniform" DestinationRect="0,0,25,25">
|
||||||
<VisualBrush TileMode="Tile" Stretch="Uniform" DestinationRect="0,0,25,25">
|
<VisualBrush.Visual>
|
||||||
<VisualBrush.Visual>
|
<Grid Width="25" Height="25" RowDefinitions="*,*" ColumnDefinitions="*,*">
|
||||||
<Grid Width="25" Height="25" RowDefinitions="*,*" ColumnDefinitions="*,*">
|
<Rectangle Grid.Row="0" Grid.Column="0" Fill="Black" Opacity="0.15" />
|
||||||
<Rectangle Grid.Row="0" Grid.Column="0" Fill="Black" Opacity="0.15" />
|
<Rectangle Grid.Row="0" Grid.Column="1" />
|
||||||
<Rectangle Grid.Row="0" Grid.Column="1" />
|
<Rectangle Grid.Row="1" Grid.Column="0" />
|
||||||
<Rectangle Grid.Row="1" Grid.Column="0" />
|
<Rectangle Grid.Row="1" Grid.Column="1" Fill="Black" Opacity="0.15" />
|
||||||
<Rectangle Grid.Row="1" Grid.Column="1" Fill="Black" Opacity="0.15" />
|
</Grid>
|
||||||
</Grid>
|
</VisualBrush.Visual>
|
||||||
</VisualBrush.Visual>
|
</VisualBrush>
|
||||||
</VisualBrush>
|
</Grid.Background>
|
||||||
</Grid.Background>
|
<Grid Grid.Column="0" Name="DeviceDisplayGrid">
|
||||||
|
<!-- No need to provide LEDs to highlight as LEDs are already physically highlighted -->
|
||||||
|
<controls:DeviceVisualizer Device="{Binding Device}"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
ShowColors="True"
|
||||||
|
Margin="20" />
|
||||||
|
|
||||||
<!-- No need to provide LEDs to highlight as LEDs are already physically highlighted -->
|
<StackPanel Orientation="Horizontal"
|
||||||
<controls:DeviceVisualizer Device="{Binding Device}"
|
VerticalAlignment="Bottom"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Left"
|
||||||
VerticalAlignment="Center"
|
Margin="15"
|
||||||
ShowColors="True"
|
IsVisible="{Binding Device.Layout.RgbLayout.Author, Converter={x:Static StringConverters.IsNotNullOrEmpty}}">
|
||||||
Margin="20" />
|
<TextBlock Classes="h5" Text="Device layout by " />
|
||||||
|
<TextBlock Classes="h5" FontWeight="Bold" Text="{Binding Device.Layout.RgbLayout.Author}" />
|
||||||
<StackPanel Orientation="Horizontal"
|
</StackPanel>
|
||||||
VerticalAlignment="Bottom"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
Margin="15"
|
|
||||||
IsVisible="{Binding Device.Layout.RgbLayout.Author, Converter={x:Static StringConverters.IsNotNullOrEmpty}}">
|
|
||||||
<TextBlock Classes="h5" Text="Device layout by " />
|
|
||||||
<TextBlock Classes="h5" FontWeight="Bold" Text="{Binding Device.Layout.RgbLayout.Author}" />
|
|
||||||
</StackPanel>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
|
|
||||||
<GridSplitter Grid.Column="1" Width="15" Margin="-15 0 0 0" Background="Transparent" HorizontalAlignment="Stretch" />
|
|
||||||
|
|
||||||
<Border Grid.Column="2" Classes="card" CornerRadius="10 0 0 0">
|
|
||||||
<TabControl Items="{Binding Tabs}">
|
|
||||||
<TabControl.ItemTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<TextBlock Text="{Binding DisplayName}" />
|
|
||||||
</DataTemplate>
|
|
||||||
</TabControl.ItemTemplate>
|
|
||||||
<TabControl.ContentTemplate>
|
|
||||||
<DataTemplate>
|
|
||||||
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
|
|
||||||
<ContentControl Content="{Binding}" Margin="0 10 0 0" />
|
|
||||||
</ScrollViewer>
|
|
||||||
</DataTemplate>
|
|
||||||
</TabControl.ContentTemplate>
|
|
||||||
</TabControl>
|
|
||||||
</Border>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
|
<GridSplitter Grid.Column="1" Width="15" Margin="-15 0 0 0" Background="Transparent" HorizontalAlignment="Stretch" />
|
||||||
|
|
||||||
|
<Border Grid.Column="2" Classes="card" CornerRadius="10 0 0 0" Margin="0 10 0 0" Background="#ff323232">
|
||||||
|
<TabControl Items="{Binding Tabs}">
|
||||||
|
<TabControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBlock Text="{Binding DisplayName}" />
|
||||||
|
</DataTemplate>
|
||||||
|
</TabControl.ItemTemplate>
|
||||||
|
<TabControl.ContentTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<ScrollViewer HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
|
||||||
|
<ContentControl Content="{Binding}" Margin="0 10 0 0" />
|
||||||
|
</ScrollViewer>
|
||||||
|
</DataTemplate>
|
||||||
|
</TabControl.ContentTemplate>
|
||||||
|
</TabControl>
|
||||||
|
</Border>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
</Window>
|
</Window>
|
||||||
@ -4,14 +4,10 @@
|
|||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||||||
x:Class="Artemis.UI.Screens.Plugins.PluginSettingsWindowView"
|
x:Class="Artemis.UI.Screens.Plugins.PluginSettingsWindowView"
|
||||||
|
Icon="/Assets/Images/Logo/bow.ico"
|
||||||
Title="{Binding DisplayName}"
|
Title="{Binding DisplayName}"
|
||||||
ExtendClientAreaToDecorationsHint="True"
|
|
||||||
Width="800"
|
Width="800"
|
||||||
Height="800"
|
Height="800"
|
||||||
WindowStartupLocation="CenterOwner">
|
WindowStartupLocation="CenterOwner">
|
||||||
<Grid>
|
<ContentControl Content="{Binding ConfigurationViewModel}"></ContentControl>
|
||||||
<TextBlock Margin="10" IsHitTestVisible="False" Text="{Binding DisplayName}"></TextBlock>
|
|
||||||
<ContentControl Margin="0 32 0 0" Content="{Binding ConfigurationViewModel}"></ContentControl>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
</Window>
|
</Window>
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<ContentControl Grid.Column="0" Content="{Binding SidebarViewModel}" />
|
<ContentControl Grid.Column="0" Content="{Binding SidebarViewModel}" />
|
||||||
|
|
||||||
<Border Classes="router-container" Grid.Column="1" Margin="0 40 0 0">
|
<Border Classes="router-container" Grid.Column="1" Margin="0 10 0 0">
|
||||||
<reactiveUi:RoutedViewHost Router="{Binding Router}">
|
<reactiveUi:RoutedViewHost Router="{Binding Router}">
|
||||||
<reactiveUi:RoutedViewHost.PageTransition>
|
<reactiveUi:RoutedViewHost.PageTransition>
|
||||||
<CrossFade Duration="0.1" />
|
<CrossFade Duration="0.1" />
|
||||||
|
|||||||
@ -5,9 +5,5 @@
|
|||||||
<!-- Third party styles -->
|
<!-- Third party styles -->
|
||||||
<styling:FluentAvaloniaTheme RequestedTheme="Dark" />
|
<styling:FluentAvaloniaTheme RequestedTheme="Dark" />
|
||||||
<StyleInclude Source="avares://Material.Icons.Avalonia/App.xaml" />
|
<StyleInclude Source="avares://Material.Icons.Avalonia/App.xaml" />
|
||||||
|
<StyleInclude Source="avares://Artemis.UI.Shared/Styles/Artemis.axaml" />
|
||||||
<!-- Grab the window styling from Avalonia -->
|
|
||||||
<StyleInclude Source="avares://Avalonia.Themes.Fluent/Controls/Window.xaml" />
|
|
||||||
<StyleInclude Source="avares://Avalonia.Themes.Fluent/Controls/TitleBar.xaml" />
|
|
||||||
<StyleInclude Source="avares://Avalonia.Themes.Fluent/Controls/CaptionButtons.xaml" />
|
|
||||||
</Styles>
|
</Styles>
|
||||||
Loading…
x
Reference in New Issue
Block a user