mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 11:17:53 +01:00
[Projects] bringing back the breadcrumb on the editor page. Make it clickable.
This commit is contained in:
@@ -123,7 +123,34 @@
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="Auto"/>
|
||||
</Grid.RowDefinitions>
|
||||
<TextBlock Text="{Binding EditorWindowTitle}" FontSize="24" FontWeight="SemiBold" Margin="0,20,0,20" Foreground="{DynamicResource PrimaryForegroundBrush}"/>
|
||||
<StackPanel Grid.Row="0" Orientation="Horizontal">
|
||||
<Button
|
||||
Margin="0,20,0,20"
|
||||
Background="Transparent"
|
||||
VerticalAlignment="Center">
|
||||
<TextBlock
|
||||
Text="{x:Static props:Resources.Projects}"
|
||||
FontSize="24"
|
||||
FontWeight="Normal"
|
||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||
MouseDown="ProjectsTextBlock_MouseDown"
|
||||
VerticalAlignment="Center"/>
|
||||
</Button>
|
||||
<TextBlock
|
||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||
FontSize="16"
|
||||
Margin="10,0,0,0"
|
||||
Text=""
|
||||
VerticalAlignment="Center"/>
|
||||
<TextBlock
|
||||
Text="{Binding EditorWindowTitle}"
|
||||
FontSize="24"
|
||||
FontWeight="SemiBold"
|
||||
Margin="10,0,0,0"
|
||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||
VerticalAlignment="Center"/>
|
||||
</StackPanel>
|
||||
<StackPanel Grid.Row="1" Orientation="Vertical">
|
||||
<TextBlock Text="{x:Static props:Resources.ProjectName}" FontSize="14" FontWeight="Normal" Foreground="{DynamicResource PrimaryForegroundBrush}"/>
|
||||
<TextBox
|
||||
|
||||
@@ -91,5 +91,10 @@ namespace ProjectsEditor
|
||||
project.Name = EditNameTextBox.Text;
|
||||
project.OnPropertyChanged(new PropertyChangedEventArgs(nameof(Project.CanBeSaved)));
|
||||
}
|
||||
|
||||
private void ProjectsTextBlock_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
{
|
||||
CancelButtonClicked(null, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -376,7 +376,7 @@ namespace ProjectsEditor.Properties {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Name project.
|
||||
/// Looks up a localized string similar to Project name.
|
||||
/// </summary>
|
||||
public static string ProjectName {
|
||||
get {
|
||||
|
||||
@@ -223,7 +223,7 @@
|
||||
<value>Pin Project to Taskbar</value>
|
||||
</data>
|
||||
<data name="ProjectName" xml:space="preserve">
|
||||
<value>Name project</value>
|
||||
<value>Project name</value>
|
||||
</data>
|
||||
<data name="Projects" xml:space="preserve">
|
||||
<value>Projects</value>
|
||||
|
||||
Reference in New Issue
Block a user