* Update settings window layout with consistent margins Updated the layout of the different views of the settings window so that there is always margin at the bottom. In some cases this was achieved using <StackPanels> for clarity and extensibility, grouping e.g. a title and some radio options together with one unified margin. Also made some small consistency changes to the .xaml files. * Add width to Themes text input * Normalize margins in settings * Add default display values in Terminal settings ... for Arguments and Working Directory * Generalize TemplateSelector for empty strings * Add default display value for profile keybindings * Update margins and fontsize in theme preview * Update 'loading...' message in About ... to "Checking for updates..." and a spinner as suggested by @skipmeister123 * No popup when cancelling profile edit no changes * Delete profile when new and cancelled * Open new and cloned themes in edit mode ... and make it so canceling deletes the theme. * No popup when cancelling theme edit no changes * Add resources for margin definitions * Check for null Author in TerminalTheme * Add resource for header margin definition * Moved createdBy text to code behind
35 lines
1.4 KiB
XML
35 lines
1.4 KiB
XML
<UserControl
|
|
x:Class="FluentTerminal.App.Views.TerminalColorPicker"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
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"
|
|
d:DesignHeight="24"
|
|
d:DesignWidth="24"
|
|
mc:Ignorable="d">
|
|
<Button
|
|
x:Name="Root"
|
|
Background="{x:Bind ButtonBackground, Mode=OneWay}"
|
|
IsEnabled="{x:Bind EnableEditing, Mode=OneWay}"
|
|
Style="{StaticResource ColorPreviewButtonStyle}"
|
|
ToolTipService.ToolTip="{x:Bind ColorName}">
|
|
<!--<Button.Background>
|
|
<SolidColorBrush Color="{x:Bind VisibleColor, Mode=OneWay}" />
|
|
</Button.Background>-->
|
|
<Button.Flyout>
|
|
<Flyout>
|
|
<StackPanel>
|
|
<TextBlock
|
|
Margin="0,0,0,6"
|
|
Style="{StaticResource TitleTextBlockStyle}"
|
|
Text="{x:Bind ColorName}" />
|
|
<ColorPicker
|
|
x:Name="colorPicker"
|
|
ColorChanged="ColorPicker_ColorChanged"
|
|
IsAlphaEnabled="{x:Bind IsAlphaEnabled, Mode=OneWay}"
|
|
IsColorChannelTextInputVisible="False" />
|
|
</StackPanel>
|
|
</Flyout>
|
|
</Button.Flyout>
|
|
</Button>
|
|
</UserControl> |