mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
[Projects] Adding Edit button to the popup. + minor changes
This commit is contained in:
@@ -101,12 +101,14 @@
|
|||||||
Text="{Binding SearchTerm, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
Text="{Binding SearchTerm, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||||
Background="{DynamicResource SecondaryBackgroundBrush}"
|
Background="{DynamicResource SecondaryBackgroundBrush}"
|
||||||
BorderBrush="{DynamicResource PrimaryBorderBrush}"
|
BorderBrush="{DynamicResource PrimaryBorderBrush}"
|
||||||
|
ToolTip="{x:Static props:Resources.SearchExplanation}"
|
||||||
/>
|
/>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
IsHitTestVisible="False"
|
IsHitTestVisible="False"
|
||||||
Text="{x:Static props:Resources.Search}"
|
Text="{x:Static props:Resources.Search}"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Foreground="{DynamicResource SecondaryForegroundBrush}"
|
Foreground="{DynamicResource SecondaryForegroundBrush}"
|
||||||
|
ToolTip="{x:Static props:Resources.SearchExplanation}"
|
||||||
Margin="10,0,0,0">
|
Margin="10,0,0,0">
|
||||||
<TextBlock.Style>
|
<TextBlock.Style>
|
||||||
<Style TargetType="{x:Type TextBlock}">
|
<Style TargetType="{x:Type TextBlock}">
|
||||||
@@ -123,7 +125,7 @@
|
|||||||
<TextBlock
|
<TextBlock
|
||||||
HorizontalAlignment="Left"
|
HorizontalAlignment="Left"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Margin="-24,0,10,0"
|
Margin="-50,0,34,0"
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Search}"
|
AutomationProperties.Name="{x:Static props:Resources.Search}"
|
||||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||||
Foreground="{DynamicResource SecondaryForegroundBrush}"
|
Foreground="{DynamicResource SecondaryForegroundBrush}"
|
||||||
@@ -243,23 +245,46 @@
|
|||||||
StaysOpen="False"
|
StaysOpen="False"
|
||||||
PlacementTarget="{Binding ElementName=MoreButton}"
|
PlacementTarget="{Binding ElementName=MoreButton}"
|
||||||
Placement="Left">
|
Placement="Left">
|
||||||
<Button
|
<StackPanel
|
||||||
Style="{StaticResource DeleteButtonStyle}"
|
Background="{DynamicResource PrimaryBackgroundBrush}"
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
Orientation="Vertical">
|
||||||
Click="DeleteButtonClicked">
|
<Button
|
||||||
<StackPanel Orientation="Horizontal">
|
Style="{StaticResource DeleteButtonStyle}"
|
||||||
<TextBlock
|
Margin="5"
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
AutomationProperties.Name="{x:Static props:Resources.Edit}"
|
||||||
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
Click="EditButtonClicked">
|
||||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Text="" />
|
<TextBlock
|
||||||
<TextBlock
|
AutomationProperties.Name="{x:Static props:Resources.Edit}"
|
||||||
Margin="10,0,0,0"
|
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||||
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||||
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
Text="" />
|
||||||
Text="{x:Static props:Resources.Delete}" />
|
<TextBlock
|
||||||
</StackPanel>
|
Margin="10,0,0,0"
|
||||||
</Button>
|
AutomationProperties.Name="{x:Static props:Resources.Edit}"
|
||||||
|
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||||
|
Text="{x:Static props:Resources.Edit}" />
|
||||||
|
</StackPanel>
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
Style="{StaticResource DeleteButtonStyle}"
|
||||||
|
Margin="5"
|
||||||
|
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
||||||
|
Click="DeleteButtonClicked">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<TextBlock
|
||||||
|
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
||||||
|
FontFamily="{DynamicResource SymbolThemeFontFamily}"
|
||||||
|
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||||
|
Text="" />
|
||||||
|
<TextBlock
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
AutomationProperties.Name="{x:Static props:Resources.Delete}"
|
||||||
|
Foreground="{DynamicResource PrimaryForegroundBrush}"
|
||||||
|
Text="{x:Static props:Resources.Delete}" />
|
||||||
|
</StackPanel>
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
</Popup>
|
</Popup>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -420,6 +420,15 @@ namespace ProjectsEditor.Properties {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to Search for projects or apps.
|
||||||
|
/// </summary>
|
||||||
|
public static string SearchExplanation {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("SearchExplanation", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Looks up a localized string similar to seconds ago.
|
/// Looks up a localized string similar to seconds ago.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -237,6 +237,9 @@
|
|||||||
<data name="Search" xml:space="preserve">
|
<data name="Search" xml:space="preserve">
|
||||||
<value>Search</value>
|
<value>Search</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="SearchExplanation" xml:space="preserve">
|
||||||
|
<value>Search for projects or apps</value>
|
||||||
|
</data>
|
||||||
<data name="SecondsAgo" xml:space="preserve">
|
<data name="SecondsAgo" xml:space="preserve">
|
||||||
<value>seconds ago</value>
|
<value>seconds ago</value>
|
||||||
</data>
|
</data>
|
||||||
|
|||||||
Reference in New Issue
Block a user