ux: unify icons and labels for repository action in both welcome and repository page; remove unused resources

This commit is contained in:
leo 2024-04-02 10:09:28 +08:00
parent 4dfbb0b2ba
commit ddd152df59
5 changed files with 3 additions and 57 deletions

View file

@ -2931,33 +2931,6 @@ namespace SourceGit.Resources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Bookmark.
/// </summary>
public static string Text_RepoCM_Bookmark {
get {
return ResourceManager.GetString("Text.RepoCM.Bookmark", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Explore in File Manager.
/// </summary>
public static string Text_RepoCM_Explore {
get {
return ResourceManager.GetString("Text.RepoCM.Explore", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Open.
/// </summary>
public static string Text_RepoCM_Open {
get {
return ResourceManager.GetString("Text.RepoCM.Open", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to ABORT. /// Looks up a localized string similar to ABORT.
/// </summary> /// </summary>

View file

@ -477,15 +477,6 @@
<data xml:space="preserve" name="Text.GitFlow.KeepBranchAfterFinish"> <data xml:space="preserve" name="Text.GitFlow.KeepBranchAfterFinish">
<value>Keep branch</value> <value>Keep branch</value>
</data> </data>
<data xml:space="preserve" name="Text.RepoCM.Bookmark">
<value>Bookmark</value>
</data>
<data xml:space="preserve" name="Text.RepoCM.Open">
<value>Open</value>
</data>
<data xml:space="preserve" name="Text.RepoCM.Explore">
<value>Explore in File Manager</value>
</data>
<data xml:space="preserve" name="Text.BranchCM.Push"> <data xml:space="preserve" name="Text.BranchCM.Push">
<value>Push${0}$</value> <value>Push${0}$</value>
</data> </data>

View file

@ -477,15 +477,6 @@
<data xml:space="preserve" name="Text.GitFlow.KeepBranchAfterFinish"> <data xml:space="preserve" name="Text.GitFlow.KeepBranchAfterFinish">
<value>Keep branch</value> <value>Keep branch</value>
</data> </data>
<data xml:space="preserve" name="Text.RepoCM.Bookmark">
<value>Bookmark</value>
</data>
<data xml:space="preserve" name="Text.RepoCM.Open">
<value>Open</value>
</data>
<data xml:space="preserve" name="Text.RepoCM.Explore">
<value>Explore in File Manager</value>
</data>
<data xml:space="preserve" name="Text.BranchCM.Push"> <data xml:space="preserve" name="Text.BranchCM.Push">
<value>Push${0}$</value> <value>Push${0}$</value>
</data> </data>

View file

@ -474,15 +474,6 @@
<data xml:space="preserve" name="Text.GitFlow.KeepBranchAfterFinish"> <data xml:space="preserve" name="Text.GitFlow.KeepBranchAfterFinish">
<value>保留分支</value> <value>保留分支</value>
</data> </data>
<data xml:space="preserve" name="Text.RepoCM.Bookmark">
<value>书签</value>
</data>
<data xml:space="preserve" name="Text.RepoCM.Open">
<value>打开</value>
</data>
<data xml:space="preserve" name="Text.RepoCM.Explore">
<value>在浏览器中查看</value>
</data>
<data xml:space="preserve" name="Text.BranchCM.Push"> <data xml:space="preserve" name="Text.BranchCM.Push">
<value>推送(push)${0}$</value> <value>推送(push)${0}$</value>
</data> </data>

View file

@ -83,12 +83,12 @@
<Path Width="12" Height="12" Data="{DynamicResource Icons.Folder.Add}"/> <Path Width="12" Height="12" Data="{DynamicResource Icons.Folder.Add}"/>
</MenuItem.Icon> </MenuItem.Icon>
</MenuItem> </MenuItem>
<MenuItem Header="{DynamicResource Text.RepoCM.Explore}" Command="{Binding OpenInFileManager}" IsVisible="{Binding IsRepository}"> <MenuItem Header="{DynamicResource Text.Repository.Explore}" Command="{Binding OpenInFileManager}" IsVisible="{Binding IsRepository}">
<MenuItem.Icon> <MenuItem.Icon>
<Path Width="12" Height="12" Data="{DynamicResource Icons.OpenWith}"/> <Path Width="12" Height="12" Data="{DynamicResource Icons.Folder.Open}"/>
</MenuItem.Icon> </MenuItem.Icon>
</MenuItem> </MenuItem>
<MenuItem Header="{DynamicResource Text.Welcome.OpenTerminal}" Command="{Binding OpenTerminal}" IsVisible="{Binding IsRepository}"> <MenuItem Header="{DynamicResource Text.Repository.Terminal}" Command="{Binding OpenTerminal}" IsVisible="{Binding IsRepository}">
<MenuItem.Icon> <MenuItem.Icon>
<Path Width="12" Height="12" Data="{DynamicResource Icons.Terminal}"/> <Path Width="12" Height="12" Data="{DynamicResource Icons.Terminal}"/>
</MenuItem.Icon> </MenuItem.Icon>