222 lines
10 KiB
XML
222 lines
10 KiB
XML
<Window x:Class="FasdDesktopUi.Pages.DesktopWidgetPage.DesktopWidgetPageView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:FasdDesktopUi.Pages.DesktopWidgetPage"
|
|
xmlns:vc="clr-namespace:FasdDesktopUi.Basics.Converter"
|
|
xmlns:ico="clr-namespace:FasdDesktopUi.Basics.UserControls.AdaptableIcon;assembly=F4SD-AdaptableIcon"
|
|
mc:Ignorable="d"
|
|
Title="DesktopWidgetPageView"
|
|
AllowsTransparency="True"
|
|
WindowStyle="None"
|
|
Background="Transparent"
|
|
VerticalAlignment="Bottom"
|
|
ResizeMode="NoResize"
|
|
WindowState="Maximized"
|
|
ShowInTaskbar="False"
|
|
Topmost="True"
|
|
x:Name="DesktopWidgetWindow">
|
|
|
|
<Window.Resources>
|
|
<BooleanToVisibilityConverter x:Key="BoolToVisibility" />
|
|
<vc:LanguageDefinitionsConverter x:Key="LanguageConverter" />
|
|
<Style x:Key="DesktopWidget.Grid"
|
|
TargetType="Grid">
|
|
<Setter Property="Visibility" Value="{Binding ElementName=DesktopWidgetWindow, Path=AreAllWidgetsVisible, Converter={StaticResource BoolToVisibility}}" />
|
|
<Style.Triggers>
|
|
<DataTrigger Binding="{Binding IsMouseOver, ElementName=F4SDWidget}" Value="True">
|
|
<Setter Property="Visibility" Value="Visible"/>
|
|
</DataTrigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
<Style x:Key="DesktopWidget.WidgetIcon"
|
|
TargetType="ico:AdaptableIcon">
|
|
<Setter Property="IconBackgroundColor" Value="{DynamicResource Color.AppBackground}"/>
|
|
<Setter Property="PrimaryIconColor" Value="{DynamicResource Color.Menu.Icon}"/>
|
|
<Setter Property="IconWidth" Value="50"/>
|
|
<Setter Property="IconHeight" Value="50"/>
|
|
<Setter Property="IconCornerRadius" Value="25"/>
|
|
<Setter Property="BorderPadding" Value="10"/>
|
|
<Setter Property="Margin" Value="-1"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="PrimaryIconColor" Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
|
<Setter Property="IconBackgroundColor" Value="{DynamicResource Background.Menu.Icon.Hover}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
<!--<Setter Property="BorderThickness" Value="10"/>
|
|
<Setter Property="BorderBrush" Value="{DynamicResource Color.Menu.Icon}"/>-->
|
|
</Style>
|
|
<Style x:Key="DesktopWidget.F4SDIcon"
|
|
TargetType="ico:AdaptableIcon">
|
|
<Setter Property="IconBackgroundColor" Value="{DynamicResource Color.AppBackground}"/>
|
|
<Setter Property="Cursor" Value="Hand"/>
|
|
<Setter Property="Margin" Value="-1"/>
|
|
<Setter Property="IconHeight" Value="70"/>
|
|
<Setter Property="IconWidth" Value="70"/>
|
|
<Setter Property="IconCornerRadius" Value="35"/>
|
|
<Setter Property="BorderPadding" Value="15"/>
|
|
<Setter Property="PrimaryIconColor" Value="{DynamicResource Color.F4SD}"/>
|
|
<Setter Property="SecondaryIconColor" Value="{DynamicResource Color.AppBackground}"/>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsMouseOver" Value="True">
|
|
<Setter Property="PrimaryIconColor" Value="{DynamicResource Color.Menu.Icon.Hover}" />
|
|
<Setter Property="IconBackgroundColor" Value="{DynamicResource Background.Menu.Icon.Hover}" />
|
|
<Setter Property="SecondaryIconColor" Value="{DynamicResource Background.Menu.Icon.Hover}" />
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<Border x:Name="MainBorder"
|
|
Background="Transparent"
|
|
Padding="10"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom"
|
|
Visibility="{Binding ElementName=DesktopWidgetWindow, Path=IsWindowVisible, Converter={StaticResource BoolToVisibility}}">
|
|
|
|
<Grid VerticalAlignment="Bottom"
|
|
Background="Transparent">
|
|
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
<RowDefinition Height="Auto"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid x:Name="RestartGrid"
|
|
Style="{DynamicResource DesktopWidget.Grid}"
|
|
Grid.Row="0">
|
|
|
|
<Border BorderBrush="{DynamicResource Color.Menu.Icon}"
|
|
BorderThickness="5"
|
|
CornerRadius="25"
|
|
Margin="0,10,0,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
|
|
<ico:AdaptableIcon x:Name="RestartWidget"
|
|
Style="{DynamicResource DesktopWidget.WidgetIcon}"
|
|
Grid.Row="0"
|
|
SelectedMaterialIcon="ic_power_settings_new"
|
|
MouseLeftButtonUp="RestartWidget_MouseLeftButtonUp"/>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
<Grid x:Name="SettingsGrid"
|
|
Style="{DynamicResource DesktopWidget.Grid}"
|
|
Grid.Row="1">
|
|
|
|
<Border BorderBrush="{DynamicResource Color.Menu.Icon}"
|
|
BorderThickness="5"
|
|
CornerRadius="25"
|
|
Margin="0,10,0,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
|
|
<ico:AdaptableIcon x:Name="SettingsWidget"
|
|
Style="{DynamicResource DesktopWidget.WidgetIcon}"
|
|
Grid.Row="0"
|
|
SelectedInternIcon="menuBar_settings"
|
|
MouseLeftButtonUp="SettingsWidget_MouseLeftButtonUp"/>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
<Grid x:Name="TicketNotifyGrid"
|
|
Grid.Row="2"
|
|
Style="{DynamicResource DesktopWidget.Grid}">
|
|
|
|
<Border BorderBrush="{DynamicResource Color.Menu.Icon}"
|
|
BorderThickness="5"
|
|
CornerRadius="25"
|
|
Margin="0,10,0,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
|
|
<ico:AdaptableIcon x:Name="TicketNotifyWidget"
|
|
Style="{DynamicResource DesktopWidget.WidgetIcon}"
|
|
Grid.Row="0"
|
|
SelectedInternIcon="misc_ticket"
|
|
MouseLeftButtonUp="TicketNotifyWidget_MouseLeftButtonUp"/>
|
|
|
|
</Border>
|
|
|
|
<Border Background="{DynamicResource Color.Red}"
|
|
Height="15"
|
|
Width="20"
|
|
CornerRadius="5"
|
|
Margin="0 -25 -35 0">
|
|
<TextBlock VerticalAlignment="Center"
|
|
HorizontalAlignment="Center">
|
|
1
|
|
</TextBlock>
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
<Grid x:Name="SearchGrid"
|
|
Grid.Row="3"
|
|
Style="{DynamicResource DesktopWidget.Grid}">
|
|
|
|
<Border BorderBrush="{DynamicResource Color.Menu.Icon}"
|
|
BorderThickness="5"
|
|
CornerRadius="25"
|
|
Margin="0,10,0,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
|
|
<ico:AdaptableIcon x:Name="SearchWidget"
|
|
Style="{DynamicResource DesktopWidget.WidgetIcon}"
|
|
Grid.Row="1"
|
|
SelectedInternIcon="menuBar_search"
|
|
BorderPadding="5,5,12,12"
|
|
MouseLeftButtonUp="SearchWidget_MouseLeftButtonUp"/>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="4">
|
|
|
|
<Border BorderBrush="{DynamicResource Color.Menu.Icon}"
|
|
BorderThickness="5"
|
|
CornerRadius="35"
|
|
Margin="0,10,0,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center">
|
|
|
|
<ico:AdaptableIcon x:Name="F4SDWidget"
|
|
Style="{DynamicResource DesktopWidget.F4SDIcon}"
|
|
SelectedInternIcon="f4sd"
|
|
MouseLeftButtonUp="F4SDWidget_MouseLeftButtonUp"/>
|
|
|
|
</Border>
|
|
|
|
<Border Background="{DynamicResource Color.Red}"
|
|
Height="15"
|
|
Width="20"
|
|
CornerRadius="5"
|
|
Margin="0 -35 -50 0"
|
|
Visibility="{Binding ElementName=DesktopWidgetWindow, Path=ShowMainNotification, Converter={StaticResource BoolToVisibility}}">
|
|
<TextBlock VerticalAlignment="Center"
|
|
HorizontalAlignment="Center">
|
|
1
|
|
</TextBlock>
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</Grid>
|
|
|
|
</Border>
|
|
|
|
</Window>
|