mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
style<ChangeStatusIcon>: better colors for change status icon
This commit is contained in:
parent
8f3c2fdc32
commit
672af4527e
2 changed files with 6 additions and 7 deletions
|
@ -84,13 +84,13 @@ namespace SourceGit.Views.Controls {
|
||||||
|
|
||||||
private static Brush GetBackground(Models.Change.Status status) {
|
private static Brush GetBackground(Models.Change.Status status) {
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case Models.Change.Status.Modified: return new LinearGradientBrush(Colors.Orange, Color.FromRgb(255, 213, 134), 90);
|
case Models.Change.Status.Modified: return new LinearGradientBrush(Color.FromRgb(238, 160, 14), Color.FromRgb(228, 172, 67), 90);
|
||||||
case Models.Change.Status.Added: return new LinearGradientBrush(Colors.LimeGreen, Color.FromRgb(124, 241, 124), 90);
|
case Models.Change.Status.Added: return new LinearGradientBrush(Color.FromRgb(47, 185, 47), Color.FromRgb(75, 189, 75), 90);
|
||||||
case Models.Change.Status.Deleted: return new LinearGradientBrush(Colors.Tomato, Color.FromRgb(252, 165, 150), 90);
|
case Models.Change.Status.Deleted: return new LinearGradientBrush(Colors.Tomato, Color.FromRgb(252, 165, 150), 90);
|
||||||
case Models.Change.Status.Renamed: return new LinearGradientBrush(Colors.Orchid, Color.FromRgb(248, 161, 245), 90);
|
case Models.Change.Status.Renamed: return new LinearGradientBrush(Colors.Orchid, Color.FromRgb(248, 161, 245), 90);
|
||||||
case Models.Change.Status.Copied: return new LinearGradientBrush(Colors.Orange, Color.FromRgb(255, 213, 134), 90);
|
case Models.Change.Status.Copied: return new LinearGradientBrush(Color.FromRgb(238, 160, 14), Color.FromRgb(228, 172, 67), 90);
|
||||||
case Models.Change.Status.Unmerged: return new LinearGradientBrush(Colors.Orange, Color.FromRgb(255, 213, 134), 90);
|
case Models.Change.Status.Unmerged: return new LinearGradientBrush(Color.FromRgb(238, 160, 14), Color.FromRgb(228, 172, 67), 90);
|
||||||
case Models.Change.Status.Untracked: return new LinearGradientBrush(Colors.LimeGreen, Color.FromRgb(124, 241, 124), 90);
|
case Models.Change.Status.Untracked: return new LinearGradientBrush(Color.FromRgb(47, 185, 47), Color.FromRgb(75, 189, 75), 90);
|
||||||
default: return Brushes.Transparent;
|
default: return Brushes.Transparent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -102,7 +102,7 @@ namespace SourceGit.Views.Controls {
|
||||||
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 "∪";
|
||||||
case Models.Change.Status.Untracked: return "?";
|
case Models.Change.Status.Untracked: return "?";
|
||||||
default: return "?";
|
default: return "?";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
Loading…
Reference in a new issue