|
7 | 7 | xmlns:controls="using:StabilityMatrix.Avalonia.Controls" |
8 | 8 | xmlns:fluent="clr-namespace:FluentIcons.Avalonia.Fluent;assembly=FluentIcons.Avalonia.Fluent" |
9 | 9 | xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity" |
| 10 | + xmlns:iconExt="clr-namespace:FluentIcons.Avalonia.Fluent.MarkupExtensions;assembly=FluentIcons.Avalonia.Fluent" |
10 | 11 | xmlns:icons="clr-namespace:Projektanker.Icons.Avalonia;assembly=Projektanker.Icons.Avalonia" |
11 | 12 | xmlns:lang="clr-namespace:StabilityMatrix.Avalonia.Languages" |
12 | 13 | xmlns:mocks="clr-namespace:StabilityMatrix.Avalonia.DesignData" |
|
48 | 49 | Grid.Row="0" |
49 | 50 | Grid.Column="0" |
50 | 51 | Grid.ColumnSpan="2" |
51 | | - Margin="4,0,4,8" |
| 52 | + Margin="4,0,4,4" |
| 53 | + VerticalAlignment="Top" |
52 | 54 | Orientation="Horizontal"> |
53 | 55 | <TextBlock FontSize="14" Text="Prompt" /> |
54 | 56 | <icons:Icon |
|
60 | 62 | <StackPanel |
61 | 63 | Grid.Row="0" |
62 | 64 | Grid.Column="1" |
63 | | - Margin="0,0,0,4" |
| 65 | + Margin="0,-2,0,4" |
64 | 66 | HorizontalAlignment="Right" |
65 | | - Orientation="Horizontal"> |
66 | | - |
67 | | - <Panel> |
68 | | - <Button |
69 | | - x:Name="PART_HelpButton" |
70 | | - Margin="0,-2,0,0" |
71 | | - Padding="10,4" |
72 | | - VerticalAlignment="Top" |
73 | | - VerticalContentAlignment="Top" |
74 | | - icons:Attached.Icon="fa-solid fa-question" |
75 | | - Classes="transparent-full" |
76 | | - Command="{Binding ShowHelpDialogCommand}" /> |
77 | | - |
78 | | - <ui:TeachingTip |
79 | | - Title="{x:Static lang:Resources.TeachingTip_InferencePromptHelpButton}" |
80 | | - IsOpen="{Binding IsHelpButtonTeachingTipOpen, Mode=TwoWay}" |
81 | | - Target="{Binding #PART_HelpButton}" /> |
82 | | - </Panel> |
83 | | - |
| 67 | + VerticalAlignment="Top" |
| 68 | + Orientation="Horizontal" |
| 69 | + Spacing="0"> |
| 70 | + <StackPanel.Styles> |
| 71 | + <!-- Set Button Stuff --> |
| 72 | + <Style Selector="StackPanel > Button"> |
| 73 | + <Setter Property="Padding" Value="6,4" /> |
| 74 | + <Setter Property="Height" Value="24" /> |
| 75 | + <Setter Property="VerticalAlignment" Value="Top" /> |
| 76 | + </Style> |
| 77 | + </StackPanel.Styles> |
| 78 | + <Button |
| 79 | + x:Name="PART_HelpButton" |
| 80 | + VerticalAlignment="Top" |
| 81 | + VerticalContentAlignment="Top" |
| 82 | + icons:Attached.Icon="fa-solid fa-question" |
| 83 | + Classes="transparent-full" |
| 84 | + Command="{Binding ShowHelpDialogCommand}" /> |
| 85 | + <ui:TeachingTip |
| 86 | + Title="{x:Static lang:Resources.TeachingTip_InferencePromptHelpButton}" |
| 87 | + IsOpen="{Binding IsHelpButtonTeachingTipOpen, Mode=TwoWay}" |
| 88 | + Target="{Binding #PART_HelpButton}" /> |
84 | 89 | <Button |
85 | 90 | x:Name="PART_AmplifyButton" |
86 | | - Margin="0,-2,0,0" |
87 | | - Padding="10,4" |
| 91 | + Padding="6,2,6,1" |
88 | 92 | VerticalAlignment="Top" |
89 | 93 | VerticalContentAlignment="Top" |
90 | | - icons:Attached.Icon="fa-solid fa-wand-magic-sparkles" |
91 | | - Classes="accent" |
| 94 | + Classes="transparent-full" |
| 95 | + Content="{iconExt:FluentIcon Icon=SlideTextSparkle, |
| 96 | + IconVariant=Regular, |
| 97 | + IconSize=Size20, |
| 98 | + FontSize=19}" |
92 | 99 | ToolTip.Tip="Prompt Amplifier"> |
93 | 100 | <Button.Flyout> |
94 | 101 | <controls:BetterFlyout> |
|
385 | 392 | NavigateUri="https://lykos.ai/prompt-amplifier/help" /> |
386 | 393 | </StackPanel> |
387 | 394 | </ui:TeachingTip> |
388 | | - <Button |
389 | | - Padding="8,4" |
390 | | - Command="{Binding DebugShowTokensCommand}" |
391 | | - Content="Show Tokens" |
392 | | - IsVisible="{Binding SharedState.IsDebugMode}" /> |
| 395 | + <Button Classes="transparent-full" Content="{iconExt:FluentIcon Icon=MoreVertical, FontSize=16, IconVariant=Regular}"> |
| 396 | + <Button.Flyout> |
| 397 | + <MenuFlyout> |
| 398 | + <!-- ReSharper disable once Xaml.RedundantResource --> |
| 399 | + <MenuItem Command="{Binding DebugShowTokensCommand}" Header="(Debug) Show Tokens" /> |
| 400 | + </MenuFlyout> |
| 401 | + </Button.Flyout> |
| 402 | + </Button> |
393 | 403 |
|
394 | 404 | </StackPanel> |
395 | 405 |
|
|
0 commit comments