mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
style<ChangeStatusIcon>: font family and characters for change status icon
This commit is contained in:
parent
a36c00f68c
commit
05bfc86a9b
1 changed files with 4 additions and 4 deletions
|
@ -74,7 +74,7 @@ namespace SourceGit.Views.Controls {
|
||||||
txt,
|
txt,
|
||||||
CultureInfo.CurrentCulture,
|
CultureInfo.CurrentCulture,
|
||||||
FlowDirection.LeftToRight,
|
FlowDirection.LeftToRight,
|
||||||
new Typeface(new FontFamily("Consolas"), FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
|
new Typeface(new FontFamily("Microsoft YaHei UI"), FontStyles.Normal, FontWeights.Normal, FontStretches.Normal),
|
||||||
icon.Width * 0.8,
|
icon.Width * 0.8,
|
||||||
new SolidColorBrush(Color.FromRgb(241,241,241)),
|
new SolidColorBrush(Color.FromRgb(241,241,241)),
|
||||||
VisualTreeHelper.GetDpi(icon).PixelsPerDip);
|
VisualTreeHelper.GetDpi(icon).PixelsPerDip);
|
||||||
|
@ -98,9 +98,9 @@ namespace SourceGit.Views.Controls {
|
||||||
private static string GetLabel(Models.Change.Status status) {
|
private static string GetLabel(Models.Change.Status status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case Models.Change.Status.Modified: return "±";
|
case Models.Change.Status.Modified: return "±";
|
||||||
case Models.Change.Status.Added: return "✚";
|
case Models.Change.Status.Added: return "+";
|
||||||
case Models.Change.Status.Deleted: return "▬";
|
case Models.Change.Status.Deleted: return "−";
|
||||||
case Models.Change.Status.Renamed: return "➔";
|
case Models.Change.Status.Renamed: return "➜";
|
||||||
case Models.Change.Status.Copied: return "❏";
|
case Models.Change.Status.Copied: return "❏";
|
||||||
case Models.Change.Status.Unmerged: return "U";
|
case Models.Change.Status.Unmerged: return "U";
|
||||||
case Models.Change.Status.Untracked: return "★";
|
case Models.Change.Status.Untracked: return "★";
|
||||||
|
|
Loading…
Reference in a new issue