cfb1b99162
- 常驻 Host:无主窗口保活 + 系统托盘菜单 - Toast 弹窗:堆叠 / 自动消失 / 悬停暂停 / 淡入淡出 / 点击关闭 - Sticky 常驻弹窗与 InputMode 边框配色 - 跨虚拟桌面显示(源生成 COM PinView,AOT 友好) - 设置窗口(Semi + Ursa)+ JSON 源生成持久化 - AOT 准备:IsAotCompatible 0 警告
71 lines
2.6 KiB
XML
71 lines
2.6 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:u="https://irihi.tech/ursa"
|
||
xmlns:vm="clr-namespace:Notify.ViewModels"
|
||
xmlns:m="clr-namespace:Notify.Models"
|
||
x:Class="Notify.Views.SettingsWindow"
|
||
x:DataType="vm:SettingsViewModel"
|
||
Width="420"
|
||
SizeToContent="Height"
|
||
CanResize="False"
|
||
WindowStartupLocation="CenterScreen"
|
||
Icon="/Assets/claude.ico"
|
||
Title="弹窗设置">
|
||
|
||
<StackPanel Margin="20" Spacing="16">
|
||
|
||
<TextBlock Text="弹窗设置"
|
||
FontSize="18"
|
||
FontWeight="Bold" />
|
||
|
||
<u:Form LabelPosition="Left" LabelWidth="120">
|
||
|
||
<u:FormItem Label="停留时长(秒)">
|
||
<u:NumericIntUpDown Value="{Binding DurationSeconds}" Minimum="1" Maximum="60" />
|
||
</u:FormItem>
|
||
|
||
<u:FormItem Label="出现角落">
|
||
<ComboBox ItemsSource="{Binding Corners}"
|
||
SelectedItem="{Binding Corner}"
|
||
HorizontalAlignment="Stretch" />
|
||
</u:FormItem>
|
||
|
||
<u:FormItem Label="不透明度">
|
||
<u:NumericDoubleUpDown Value="{Binding Opacity}" Minimum="0.3" Maximum="1.0" Step="0.05" />
|
||
</u:FormItem>
|
||
|
||
<u:FormItem Label="最多同时显示">
|
||
<u:NumericIntUpDown Value="{Binding MaxVisible}" Minimum="1" Maximum="10" />
|
||
</u:FormItem>
|
||
|
||
<u:FormItem Label="宽度(DIP)">
|
||
<u:NumericDoubleUpDown Value="{Binding Width}" Minimum="240" Maximum="600" Step="10" />
|
||
</u:FormItem>
|
||
|
||
<u:FormItem Label="淡入淡出(毫秒)">
|
||
<u:NumericIntUpDown Value="{Binding FadeMilliseconds}" Minimum="0" Maximum="2000" Step="50" />
|
||
</u:FormItem>
|
||
|
||
<u:FormItem Label="播放提示音">
|
||
<ToggleSwitch IsChecked="{Binding PlaySound}" />
|
||
</u:FormItem>
|
||
|
||
<u:FormItem Label="跨所有桌面显示">
|
||
<ToggleSwitch IsChecked="{Binding ShowOnAllDesktops}" />
|
||
</u:FormItem>
|
||
|
||
</u:Form>
|
||
|
||
<StackPanel Orientation="Horizontal" Spacing="10" HorizontalAlignment="Right">
|
||
<TextBlock Text="{Binding StatusText}"
|
||
VerticalAlignment="Center"
|
||
Foreground="#FF4CAF50" />
|
||
<Button Content="测试弹窗" Command="{Binding TestToastCommand}" />
|
||
<Button Content="保存"
|
||
Classes="Primary"
|
||
Command="{Binding SaveCommand}" />
|
||
</StackPanel>
|
||
|
||
</StackPanel>
|
||
</Window>
|