mirror of
https://github.com/tuxdotrs/highminded.git
synced 2025-08-22 23:51:03 +05:30
98 lines
5.1 KiB
XML
98 lines
5.1 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
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:iconPacks="https://github.com/MahApps/IconPacks.Avalonia"
|
|
xmlns:vm="using:highminded.models"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="highminded.ui.windows.MainWindow"
|
|
x:DataType="vm:MainViewModel"
|
|
Icon="/assets/highminded.ico"
|
|
Title="highminded"
|
|
Height="600"
|
|
Width="800"
|
|
ShowInTaskbar="False"
|
|
ShowActivated="True"
|
|
Topmost="True"
|
|
WindowStartupLocation="CenterScreen"
|
|
SystemDecorations="None"
|
|
TransparencyLevelHint="Transparent"
|
|
Background="Transparent"
|
|
Foreground="#fff"
|
|
TransparencyBackgroundFallback="Transparent"
|
|
FontSize="16">
|
|
|
|
<Window.Styles>
|
|
<Style Selector="Border.recording">
|
|
<Setter Property="BorderBrush" Value="#19ffffff" />
|
|
</Style>
|
|
<Style Selector="Border.recording[IsVisible=True]">
|
|
<Setter Property="BorderBrush" Value="#997ce87c" />
|
|
</Style>
|
|
</Window.Styles>
|
|
|
|
<Grid RowDefinitions="Auto,*" Margin="5" RowSpacing="10">
|
|
<Border Grid.Row="0" CornerRadius="5" Background="Black" Opacity="0.8" PointerPressed="OnPointerPressed">
|
|
<Grid ColumnDefinitions="*,Auto" Margin="15 10">
|
|
<TextBlock Grid.Column="0" VerticalAlignment="Center" Margin="5" Text="{Binding AppName}" />
|
|
<StackPanel Grid.Column="1" Orientation="Horizontal" VerticalAlignment="Center"
|
|
HorizontalAlignment="Center">
|
|
<Border Background="Black" BorderBrush="#19ffffff" BorderThickness="2" CornerRadius="5"
|
|
Margin="0 0 10 0">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Spacing="5" Margin="6 0">
|
|
<TextBlock FontSize="10" Text="Hide:" />
|
|
<TextBlock FontSize="10" Text="{Binding HideShortcutKey}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border Background="Black" BorderBrush="#19ffffff" BorderThickness="2" CornerRadius="5"
|
|
Margin="0 0 10 0">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Spacing="5" Margin="6 0">
|
|
<TextBlock FontSize="10" Text="Screen:" />
|
|
<TextBlock FontSize="10" Text="{Binding ScreenshotShortcutKey}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border
|
|
IsVisible="{Binding !IsRecording}"
|
|
BorderBrush="#19ffffff"
|
|
Background="Black"
|
|
BorderThickness="2" CornerRadius="5"
|
|
Margin="0 0 10 0">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Spacing="5" Margin="6 0">
|
|
<TextBlock FontSize="10" Text="Audio:" />
|
|
<TextBlock FontSize="10" Text="{Binding AudioShortcutKey}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Border
|
|
IsVisible="{Binding IsRecording}"
|
|
BorderBrush="#997ce87c"
|
|
Background="Black"
|
|
BorderThickness="2" CornerRadius="5"
|
|
Margin="0 0 10 0">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"
|
|
Spacing="5" Margin="6 0">
|
|
<TextBlock FontSize="10" Text="Audio:" />
|
|
<TextBlock FontSize="10" Text="{Binding AudioShortcutKey}" />
|
|
</StackPanel>
|
|
</Border>
|
|
<Button Name="ChatBtn" Background="Transparent" Click="ChatBtnClick">
|
|
<iconPacks:PackIconLucide Grid.Column="1" Kind="Brain" Height="16" Width="16" />
|
|
</Button>
|
|
<Button Name="SettingsBtn" Background="Transparent" Click="SettingBtnClick">
|
|
<iconPacks:PackIconLucide Grid.Column="1" Kind="Settings" Height="16" Width="16" />
|
|
</Button>
|
|
<Button Name="HideBtn" Background="Transparent" Click="HideBtnClick">
|
|
<iconPacks:PackIconLucide Grid.Column="1" Kind="X" Height="13" Width="13" />
|
|
</Button>
|
|
|
|
</StackPanel>
|
|
</Grid>
|
|
</Border>
|
|
|
|
<Border Grid.Row="1" CornerRadius="5" Background="Black" Opacity="0.8">
|
|
<UserControl Name="UControl" />
|
|
</Border>
|
|
</Grid>
|
|
</Window> |