Mehr Icons
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<ResourceDictionary Source="..\DataTemplates\ControlTemplates.xaml" />
|
<ResourceDictionary Source="..\DataTemplates\ControlTemplates.xaml" />
|
||||||
|
<ResourceDictionary Source="..\Designs\GeometryCollection.xaml" />
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
|
||||||
<Style x:Key="MessageTextBoxStyle" TargetType="{x:Type TextBox}">
|
<Style x:Key="MessageTextBoxStyle" TargetType="{x:Type TextBox}">
|
||||||
@@ -160,8 +161,8 @@
|
|||||||
<Border
|
<Border
|
||||||
x:Name="border"
|
x:Name="border"
|
||||||
Padding="{TemplateBinding Padding}"
|
Padding="{TemplateBinding Padding}"
|
||||||
Background="#B2FFFFFF"
|
Background="#00000000"
|
||||||
BorderBrush="#26000000"
|
BorderBrush="#00000000"
|
||||||
BorderThickness="1"
|
BorderThickness="1"
|
||||||
CornerRadius="12">
|
CornerRadius="12">
|
||||||
<ContentPresenter
|
<ContentPresenter
|
||||||
@@ -347,8 +348,15 @@
|
|||||||
<Button
|
<Button
|
||||||
Command="{Binding Command}"
|
Command="{Binding Command}"
|
||||||
CommandParameter="{Binding DataContext, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
|
CommandParameter="{Binding DataContext, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"
|
||||||
Content="{Binding Name}"
|
Style="{StaticResource AssistentCommandButtonStyle}"
|
||||||
Style="{StaticResource AssistentCommandButtonStyle}" />
|
ToolTip="{Binding Name}">
|
||||||
|
<Path
|
||||||
|
Data="{Binding Icon}"
|
||||||
|
Width="16"
|
||||||
|
Height="16"
|
||||||
|
Fill="Black"
|
||||||
|
Stretch="Fill"/>
|
||||||
|
</Button>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ItemsControl.ItemTemplate>
|
</ItemsControl.ItemTemplate>
|
||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
@@ -501,8 +509,15 @@
|
|||||||
HorizontalAlignment="Right"
|
HorizontalAlignment="Right"
|
||||||
Command="{Binding DataContext.SavePromptCommand, RelativeSource={RelativeSource AncestorType={x:Type ListView}}}"
|
Command="{Binding DataContext.SavePromptCommand, RelativeSource={RelativeSource AncestorType={x:Type ListView}}}"
|
||||||
CommandParameter="{Binding}"
|
CommandParameter="{Binding}"
|
||||||
Content="Speichern"
|
ToolTip="Speichern"
|
||||||
Style="{StaticResource UserMessageSaveButtonStyle}" />
|
Style="{StaticResource UserMessageSaveButtonStyle}" >
|
||||||
|
<Path
|
||||||
|
Data="{StaticResource Phosphor.FloppyDisk}"
|
||||||
|
Width="16"
|
||||||
|
Height="16"
|
||||||
|
Fill="Black"
|
||||||
|
Stretch="Fill"/>
|
||||||
|
</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
|
|
||||||
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary.MergedDictionaries>
|
||||||
<ResourceDictionary Source="Colors\Colors.xaml" />
|
<ResourceDictionary Source="Colors\Colors.xaml" />
|
||||||
|
<ResourceDictionary Source="Designs\GeometryCollection.xaml" />
|
||||||
</ResourceDictionary.MergedDictionaries>
|
</ResourceDictionary.MergedDictionaries>
|
||||||
|
|
||||||
<conv:CustomerDCPrintURLConverter x:Key="CustomerDCPrintURLConverter" />
|
<conv:CustomerDCPrintURLConverter x:Key="CustomerDCPrintURLConverter" />
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
|
||||||
namespace BeWo.ViewModel.Controls.AI
|
namespace BeWo.ViewModel.Controls.AI
|
||||||
{
|
{
|
||||||
@@ -224,8 +225,13 @@ namespace BeWo.ViewModel.Controls.AI
|
|||||||
|
|
||||||
public class AiMenuItemTemplate
|
public class AiMenuItemTemplate
|
||||||
{
|
{
|
||||||
public string Icon { get; set; }
|
public Geometry Icon { get; set; }
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
public DelegateCommand<AiConversationMessageVM> Command { get; set; }
|
public DelegateCommand<AiConversationMessageVM> Command { get; set; }
|
||||||
|
|
||||||
|
public AiMenuItemTemplate()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Media;
|
||||||
|
|
||||||
namespace BeWo.ViewModel.Controls.AI
|
namespace BeWo.ViewModel.Controls.AI
|
||||||
{
|
{
|
||||||
@@ -54,13 +56,13 @@ namespace BeWo.ViewModel.Controls.AI
|
|||||||
new AiMenuItemTemplate()
|
new AiMenuItemTemplate()
|
||||||
{
|
{
|
||||||
Command = new DelegateCommand<AiConversationMessageVM>(x => AddValue(x.Message)),
|
Command = new DelegateCommand<AiConversationMessageVM>(x => AddValue(x.Message)),
|
||||||
Icon = null,
|
Icon = Application.Current.FindResource("Phosphor.RowsPlusTop") as Geometry,
|
||||||
Name = "Anfügen"
|
Name = "Anfügen"
|
||||||
},
|
},
|
||||||
new AiMenuItemTemplate()
|
new AiMenuItemTemplate()
|
||||||
{
|
{
|
||||||
Command = new DelegateCommand<AiConversationMessageVM>(x => ReplaceValue(x.Message)),
|
Command = new DelegateCommand<AiConversationMessageVM>(x => ReplaceValue(x.Message)),
|
||||||
Icon = null,
|
Icon = Application.Current.FindResource("Phosphor.Swap") as Geometry,
|
||||||
Name = "Ersetzen"
|
Name = "Ersetzen"
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user