mirror of
https://github.com/tuxdotrs/highminded.git
synced 2025-08-22 23:51:03 +05:30
feat: add watermark in prompt box
This commit is contained in:
@@ -6,4 +6,5 @@ public partial class ChatViewModel : ObservableObject
|
||||
{
|
||||
[ObservableProperty] private string _content = "";
|
||||
[ObservableProperty] private string _prompt = "";
|
||||
[ObservableProperty] private string _promptWatermark = "Ask me anything...";
|
||||
}
|
@@ -11,6 +11,7 @@
|
||||
<HtmlPanel Grid.Row="0" BaseStylesheet="* { font: Inter; color: white; }"
|
||||
IsContextMenuEnabled="False" IsSelectionEnabled="False" Text="{Binding Content}" />
|
||||
<TextBox Grid.Row="1" CornerRadius="5" TextWrapping="Wrap"
|
||||
Watermark="{Binding PromptWatermark}"
|
||||
KeyDown="PromptBox_OnKeyDown" Text="{Binding Prompt}" />
|
||||
</Grid>
|
||||
|
||||
|
Reference in New Issue
Block a user