add polish

This commit is contained in:
Carlos Zamora
2026-05-07 19:14:28 -07:00
parent e8a5c32612
commit 2fba2ee281
13 changed files with 35 additions and 29 deletions

View File

@@ -73,7 +73,7 @@
AutomationProperties.Name="{Binding Text, ElementName=Appearance_Section_Typography_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Appearance_Section_Typography_Title_AccTitle"
x:Uid="Appearance_Section_Typography_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -513,7 +513,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Appearance_Section_Cursor_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Appearance_Section_Cursor_Title_AccTitle"
x:Uid="Appearance_Section_Cursor_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -581,7 +581,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Appearance_Section_BackgroundImage_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Appearance_Section_BackgroundImage_Title_AccTitle"
x:Uid="Appearance_Section_BackgroundImage_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />

View File

@@ -176,8 +176,14 @@
<Setter Property="HorizontalContentAlignment" Value="Stretch" />
</Style>
<Style x:Key="SectionExpanderHeaderStackStyle"
TargetType="StackPanel">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Padding" Value="0,12,0,12" />
</Style>
<Style x:Key="SectionExpanderHeaderTextStyle"
BasedOn="{StaticResource BodyStrongTextBlockStyle}"
BasedOn="{StaticResource BodyTextBlockStyle}"
TargetType="TextBlock">
<Setter Property="VerticalAlignment" Value="Center" />
</Style>

View File

@@ -30,7 +30,7 @@
AutomationProperties.Name="{Binding Text, ElementName=Compatibility_Section_Compatibility_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Compatibility_Section_Compatibility_Title_AccTitle"
x:Uid="Compatibility_Section_Compatibility_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -123,7 +123,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Compatibility_Section_Rendering_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Compatibility_Section_Rendering_Title_AccTitle"
x:Uid="Compatibility_Section_Rendering_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />

View File

@@ -2,7 +2,7 @@
// Licensed under the MIT license.
#include "pch.h"
#include "TerminalColorConverters.h"
#include "Converters.h"
#include "ColorToBrushConverter.g.cpp"
#include "ColorToStringConverter.g.cpp"
#include "EmptyStringToVisibilityConverter.g.cpp"

View File

@@ -32,7 +32,7 @@
AutomationProperties.Name="{Binding Text, ElementName=Globals_Section_VisualStyle_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Globals_Section_VisualStyle_Title_AccTitle"
x:Uid="Globals_Section_VisualStyle_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -84,7 +84,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Globals_Section_TabsLayout_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Globals_Section_TabsLayout_Title_AccTitle"
x:Uid="Globals_Section_TabsLayout_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -142,7 +142,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Globals_Section_WindowBehavior_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Globals_Section_WindowBehavior_Title_AccTitle"
x:Uid="Globals_Section_WindowBehavior_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -171,7 +171,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Globals_Section_TitleBarIdentity_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Globals_Section_TitleBarIdentity_Title_AccTitle"
x:Uid="Globals_Section_TitleBarIdentity_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -200,7 +200,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Globals_Section_SystemIntegration_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Globals_Section_SystemIntegration_Title_AccTitle"
x:Uid="Globals_Section_SystemIntegration_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />

View File

@@ -31,7 +31,7 @@
AutomationProperties.Name="{Binding Text, ElementName=Interaction_Section_Clipboard_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Interaction_Section_Clipboard_Title_AccTitle"
x:Uid="Interaction_Section_Clipboard_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -77,7 +77,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Interaction_Section_TextSelection_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Interaction_Section_TextSelection_Title_AccTitle"
x:Uid="Interaction_Section_TextSelection_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -109,7 +109,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Interaction_Section_WindowLayout_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Interaction_Section_WindowLayout_Title_AccTitle"
x:Uid="Interaction_Section_WindowLayout_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -148,7 +148,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Interaction_Section_MouseScrolling_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Interaction_Section_MouseScrolling_Title_AccTitle"
x:Uid="Interaction_Section_MouseScrolling_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -177,7 +177,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Interaction_Section_UrlsExternal_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Interaction_Section_UrlsExternal_Title_AccTitle"
x:Uid="Interaction_Section_UrlsExternal_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -209,7 +209,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Interaction_Section_Warnings_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Interaction_Section_Warnings_Title_AccTitle"
x:Uid="Interaction_Section_Warnings_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />

View File

@@ -48,7 +48,7 @@
AutomationProperties.Name="{Binding Text, ElementName=Launch_Section_LaunchBehavior_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Launch_Section_LaunchBehavior_Title_AccTitle"
x:Uid="Launch_Section_LaunchBehavior_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />
@@ -248,7 +248,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Launch_Section_SystemInputDefaults_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Launch_Section_SystemInputDefaults_Title_AccTitle"
x:Uid="Launch_Section_SystemInputDefaults_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />

View File

@@ -107,8 +107,8 @@
<SubType>Code</SubType>
</ClInclude>
<ClInclude Include="SegoeFluentIconList.h" />
<ClInclude Include="TerminalColorConverters.h">
<DependentUpon>TerminalColorConverters.idl</DependentUpon>
<ClInclude Include="Converters.h">
<DependentUpon>Converters.idl</DependentUpon>
<SubType>Code</SubType>
</ClInclude>
<ClInclude Include="ColorSchemeViewModel.h">
@@ -309,8 +309,8 @@
<DependentUpon>ActionsViewModel.idl</DependentUpon>
<SubType>Code</SubType>
</ClCompile>
<ClCompile Include="TerminalColorConverters.cpp">
<DependentUpon>TerminalColorConverters.idl</DependentUpon>
<ClCompile Include="Converters.cpp">
<DependentUpon>Converters.idl</DependentUpon>
<SubType>Code</SubType>
</ClCompile>
<ClCompile Include="ColorSchemeViewModel.cpp">
@@ -432,7 +432,7 @@
</Midl>
<Midl Include="ProfileViewModel.idl" />
<Midl Include="ActionsViewModel.idl" />
<Midl Include="TerminalColorConverters.idl" />
<Midl Include="Converters.idl" />
<Midl Include="ColorSchemeViewModel.idl" />
<Midl Include="ColorSchemesPageViewModel.idl" />
<Midl Include="InteractionViewModel.idl" />

View File

@@ -29,7 +29,7 @@
<Midl Include="LaunchViewModel.idl" />
<Midl Include="EnumEntry.idl" />
<Midl Include="SettingContainer.idl" />
<Midl Include="TerminalColorConverters.idl" />
<Midl Include="Converters.idl" />
<Midl Include="NewTabMenuViewModel.idl" />
</ItemGroup>
<ItemGroup>

View File

@@ -367,7 +367,7 @@ namespace winrt::Microsoft::Terminal::Settings::Editor::implementation
{
return RS_(L"Profile_DefaultsSectionHeader");
}
return hstring{ fmt::format(fmt::runtime(std::wstring_view{ RS_(L"Profile_NameSectionHeaderFormat") }), Name()) };
return hstring{ RS_fmt(L"Profile_NameSectionHeaderFormat", Name()) };
}
hstring ProfileViewModel::AnswerbackMessagePreview() const

View File

@@ -39,7 +39,7 @@
AutomationProperties.Name="{x:Bind Profile.SectionHeaderText, Mode=OneWay}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock Style="{StaticResource SectionExpanderHeaderTextStyle}"
Text="{x:Bind Profile.SectionHeaderText, Mode=OneWay}" />
</StackPanel>
@@ -126,7 +126,7 @@
<muxc:Expander AutomationProperties.Name="{Binding Text, ElementName=Profile_Section_VisualUI_Title_AccTitle}"
Style="{StaticResource SectionExpanderStyle}">
<muxc:Expander.Header>
<StackPanel>
<StackPanel Style="{StaticResource SectionExpanderHeaderStackStyle}">
<TextBlock x:Name="Profile_Section_VisualUI_Title_AccTitle"
x:Uid="Profile_Section_VisualUI_Title"
Style="{StaticResource SectionExpanderHeaderTextStyle}" />