Files
ebbes-meme-clipboard/src/EbbesMemeClipboard/Views/SettingsWindow.xaml
T

55 lines
3.5 KiB
XML

<Window x:Class="EbbesMemeClipboard.Views.SettingsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Settings - Ebbe's Meme Clipboard"
Width="400"
Background="#F0202225"
WindowStartupLocation="CenterScreen"
ResizeMode="NoResize"
SizeToContent="Height">
<StackPanel Margin="20">
<TextBlock Text="Global Hotkey" Foreground="White" FontSize="14" FontWeight="Bold" Margin="0,0,0,8"/>
<Border Background="#2B2D31" CornerRadius="6">
<TextBox x:Name="HotkeyBox"
Text="{Binding HotkeyDisplay, Mode=OneWay}"
IsReadOnly="True" Focusable="True"
Background="Transparent" Foreground="White" BorderThickness="0"
Padding="10,8" FontSize="13"
CaretBrush="Transparent"
PreviewKeyDown="HotkeyBox_OnPreviewKeyDown"/>
</Border>
<TextBlock Text="Click the box above, then press a new key combination." TextWrapping="Wrap"
Foreground="#7B7D85" FontSize="11" Margin="0,4,0,0"/>
<TextBlock Text="{Binding HotkeyError}" TextWrapping="Wrap"
Foreground="#E06060" FontSize="11" Margin="0,4,0,0"/>
<TextBlock Text="Insert Mode" Foreground="White" FontSize="14" FontWeight="Bold" Margin="0,24,0,8"/>
<RadioButton GroupName="InsertMode" Content="Copy to clipboard" Foreground="White"
IsChecked="{Binding IsCopyOnly}" Margin="0,0,0,8"/>
<RadioButton GroupName="InsertMode" Content="Paste into active window" Foreground="White"
IsChecked="{Binding IsPasteIntoActiveWindow}" Margin="0,0,0,8"/>
<RadioButton GroupName="InsertMode" Content="Paste and send instantly" Foreground="White"
IsChecked="{Binding IsPasteAndSend}"/>
<TextBlock Text="Presses Enter right after pasting to submit it - use with care in chat apps."
Foreground="#7B7D85" FontSize="10" TextWrapping="Wrap" Margin="20,4,0,0"/>
<TextBlock Text="Startup" Foreground="White" FontSize="14" FontWeight="Bold" Margin="0,24,0,8"/>
<CheckBox Content="Start automatically when Windows starts" Foreground="White"
IsChecked="{Binding AutostartEnabled}"/>
<TextBlock Text="Previews" Foreground="White" FontSize="14" FontWeight="Bold" Margin="0,24,0,8"/>
<CheckBox Content="Play GIF previews in the picker" Foreground="White"
IsChecked="{Binding PlayGifPreviews}"/>
<TextBlock Text="Animates GIF thumbnails instead of showing a still frame. Uses more CPU and memory, especially with lots of Giphy results."
Foreground="#7B7D85" FontSize="10" TextWrapping="Wrap" Margin="20,4,0,0"/>
<TextBlock Text="Giphy" Foreground="White" FontSize="14" FontWeight="Bold" Margin="0,24,0,8"/>
<Border Background="#2B2D31" CornerRadius="6">
<TextBox Text="{Binding GiphyApiKey, UpdateSourceTrigger=PropertyChanged}"
Background="Transparent" Foreground="White" BorderThickness="0"
Padding="10,8" FontSize="13" CaretBrush="White"/>
</Border>
<TextBlock TextWrapping="Wrap" Foreground="#7B7D85" FontSize="11" Margin="0,4,0,0"
Text="API key for the Giphy tab. Get a free one at developers.giphy.com (create an app, choose an API key). Leave empty to disable Giphy search."/>
</StackPanel>
</Window>