Implemented with Antigravity.

This commit is contained in:
Creeper Lv
2026-06-01 05:09:20 +10:00
parent aaad155a30
commit e8ab8e0684
38 changed files with 3908 additions and 47 deletions
+47
View File
@@ -0,0 +1,47 @@
<UserControl 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:models="using:SNote.Models"
xmlns:vm="using:SNote.ViewModels"
mc:Ignorable="d" d:DesignWidth="300" d:DesignHeight="40"
x:Class="SNote.Views.FolderItemView"
x:CompileBindings="False">
<Button Background="Transparent"
BorderThickness="0"
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Left"
Padding="8,6"
CornerRadius="6"
Command="{Binding $parent[UserControl].DataContext.SelectNodeCommand}"
CommandParameter="{Binding}">
<Button.ContextMenu>
<ContextMenu>
<MenuItem Header="Link to..."
Command="{Binding $parent[UserControl].DataContext.OpenLinkDialogCommand}" />
<MenuItem Header="Share folder..."
Command="{Binding $parent[UserControl].DataContext.OpenShareDialogCommand}" />
<MenuItem Header="Delete"
Foreground="Red"
Command="{Binding $parent[UserControl].DataContext.DeleteNodeCommand}" />
</ContextMenu>
</Button.ContextMenu>
<StackPanel Orientation="Horizontal" Spacing="10">
<!-- Sleek Folder Icon -->
<Path Data="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"
Fill="#E9C46A"
Width="16" Height="16"
Stretch="Uniform"
VerticalAlignment="Center"/>
<TextBlock Text="{Binding Name}"
FontWeight="SemiBold"
Foreground="#E0E1DD"
FontSize="13"
VerticalAlignment="Center"/>
</StackPanel>
</Button>
</UserControl>