mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-24 13:45:00 +00:00
optimize<Converters>: move converter resources to app scope
This commit is contained in:
parent
fcad602144
commit
9a9a0601ed
23 changed files with 97 additions and 113 deletions
|
@ -131,13 +131,8 @@ namespace SourceGit.Views.Widgets {
|
|||
var bookmark = new MenuItem();
|
||||
bookmark.Header = App.Text("PageTabBar.Tab.Bookmark");
|
||||
for (int i = 0; i < Converters.IntToBookmarkBrush.COLORS.Length; i++) {
|
||||
var icon = new System.Windows.Shapes.Path();
|
||||
icon.Data = new EllipseGeometry(new Point(0, 0), 12, 12);
|
||||
icon.Fill = Converters.IntToBookmarkBrush.COLORS[i];
|
||||
icon.Width = 12;
|
||||
|
||||
var mark = new MenuItem();
|
||||
mark.Icon = icon;
|
||||
mark.Icon = new Bookmark() { Color = i, Width = 14, Height = 14 };
|
||||
mark.Header = $"{i}";
|
||||
|
||||
var refIdx = i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue