Exemplo n.º 1
0
        public static void LoadStyles()
        {
            if (IdeApp.Preferences.UserInterfaceTheme == Theme.Light)
            {
                BlameView = new BlameViewStyle {
                    AnnotationMarkColor         = Color.FromName("#e5f1ff"),
                    AnnotationMarkModifiedColor = Color.FromName("#ffff00"),
                    RangeHazeColor     = Color.FromName("#ababab").WithAlpha(.1),
                    RangeSplitterColor = Color.FromName("#ababab").WithAlpha(.2),
                };

                LogView = new LogViewStyle {
                    DiffAddBackgroundColor    = Color.FromName("#7bc87b").AddLight(0.1),
                    DiffRemoveBackgroundColor = Color.FromName("#c88c8c").AddLight(0.1),
                    DiffHighlightColor        = Color.FromName("#000000").WithAlpha(0.05),
                    DiffBoxBorderColor        = Color.FromName("#eaeaea"),
                    SearchSnippetTextColor    = "#f1c40f",
                };

                DiffView = new DiffViewStyle {
                    AddBackgroundColor    = Color.FromName("#85a885"),
                    AddBorderColor        = Color.FromName("#85a885"),
                    RemoveBackgroundColor = Color.FromName("#b28c8c"),
                    RemoveBorderColor     = Color.FromName("#b28c8c"),
                    MergeBackgroundColor  = Color.FromName("#8585a8"),
                    MergeBorderColor      = Color.FromName("#8585a8"),
                };
            }
            else
            {
                BlameView = new BlameViewStyle {
                    AnnotationMarkColor         = Color.FromName("#e5f1ff"),
                    AnnotationMarkModifiedColor = Color.FromName("#ffff00"),
                    RangeHazeColor     = Color.FromName("#111111").WithAlpha(.4),
                    RangeSplitterColor = Color.FromName("#5b5f68").WithAlpha(.6),
                };

                LogView = new LogViewStyle()
                {
                    DiffAddBackgroundColor    = Color.FromName("#7bc87b").AddLight(-0.1),
                    DiffRemoveBackgroundColor = Color.FromName("#c88c8c").AddLight(-0.1),
                    DiffHighlightColor        = MonoDevelop.Ide.Gui.Styles.BackgroundColor.AddLight(0.1),
                    DiffBoxBorderColor        = Color.FromName("#4c4c4c"),
                    SearchSnippetTextColor    = "#f9d33c",
                };

                DiffView = new DiffViewStyle {
                    AddBackgroundColor    = Color.FromName("#85a885"),
                    AddBorderColor        = Color.FromName("#bef0be"),
                    RemoveBackgroundColor = Color.FromName("#b28c8c"),
                    RemoveBorderColor     = Color.FromName("#ffffc8"),
                    MergeBackgroundColor  = Color.FromName("#8585a8"),
                    MergeBorderColor      = Color.FromName("#bebef0"),
                };
            }

            // Shared

            BlameView.AnnotationTextColor        = MonoDevelop.Ide.Gui.Styles.BaseForegroundColor;
            BlameView.AnnotationHighlightColor   = MonoDevelop.Ide.Gui.Styles.SecondaryBackgroundLighterColor;
            BlameView.AnnotationBackgroundColor  = MonoDevelop.Ide.Gui.Styles.SecondaryBackgroundDarkerColor;
            BlameView.AnnotationSplitterColor    = MonoDevelop.Ide.Gui.Styles.SeparatorColor;
            BlameView.AnnotationSummaryTextColor = MonoDevelop.Ide.Gui.Styles.DimTextColor;

            LogView.CommitDescBackgroundColor = MonoDevelop.Ide.Gui.Styles.SecondaryBackgroundDarkerColor;
            LogView.DiffBoxSplitterColor      = MonoDevelop.Ide.Gui.Styles.PrimaryBackgroundColor;
        }
Exemplo n.º 2
0
		public static void LoadStyles ()
		{
			if (IdeApp.Preferences.UserInterfaceTheme == Theme.Light) {
				BlameView = new BlameViewStyle {
					AnnotationMarkColor = Color.FromName ("#e5f1ff"),
					AnnotationMarkModifiedColor = Color.FromName ("#ffff00"),
					RangeHazeColor = Color.FromName ("#ababab").WithAlpha (.1),
					RangeSplitterColor = Color.FromName ("#ababab").WithAlpha (.2),
				};

				LogView = new LogViewStyle {
					DiffAddBackgroundColor = Color.FromName ("#7bc87b").AddLight (0.1),
					DiffRemoveBackgroundColor = Color.FromName ("#c88c8c").AddLight (0.1),
					DiffHighlightColor = Color.FromName ("#000000").WithAlpha (0.05),
					DiffBoxBorderColor = Color.FromName ("#eaeaea"),
					SearchSnippetTextColor = "#f1c40f",
				};

				DiffView = new DiffViewStyle {
					AddBackgroundColor = Color.FromName ("#85a885"),
					AddBorderColor = Color.FromName ("#85a885"),
					RemoveBackgroundColor = Color.FromName ("#b28c8c"),
					RemoveBorderColor = Color.FromName ("#b28c8c"),
					MergeBackgroundColor = Color.FromName ("#8585a8"),
					MergeBorderColor = Color.FromName ("#8585a8"),
				};
			} else {
				BlameView = new BlameViewStyle {
					AnnotationMarkColor = Color.FromName ("#e5f1ff"),
					AnnotationMarkModifiedColor = Color.FromName ("#ffff00"),
					RangeHazeColor = Color.FromName ("#111111").WithAlpha (.4),
					RangeSplitterColor = Color.FromName ("#5b5f68").WithAlpha (.6),
				};

				LogView = new LogViewStyle () {
					DiffAddBackgroundColor = Color.FromName ("#7bc87b").AddLight (-0.1),
					DiffRemoveBackgroundColor = Color.FromName ("#c88c8c").AddLight (-0.1),
					DiffHighlightColor = MonoDevelop.Ide.Gui.Styles.BackgroundColor.AddLight (0.1),
					DiffBoxBorderColor = Color.FromName ("#4c4c4c"),
					SearchSnippetTextColor = "#f9d33c",
				};

				DiffView = new DiffViewStyle {
					AddBackgroundColor = Color.FromName ("#85a885"),
					AddBorderColor = Color.FromName ("#bef0be"),
					RemoveBackgroundColor = Color.FromName ("#b28c8c"),
					RemoveBorderColor = Color.FromName ("#ffffc8"),
					MergeBackgroundColor = Color.FromName ("#8585a8"),
					MergeBorderColor = Color.FromName ("#bebef0"),
				};
			}

			// Shared

			BlameView.AnnotationTextColor = MonoDevelop.Ide.Gui.Styles.BaseForegroundColor;
			BlameView.AnnotationHighlightColor = MonoDevelop.Ide.Gui.Styles.SecondaryBackgroundLighterColor;
			BlameView.AnnotationBackgroundColor = MonoDevelop.Ide.Gui.Styles.SecondaryBackgroundDarkerColor;
			BlameView.AnnotationSplitterColor = MonoDevelop.Ide.Gui.Styles.SeparatorColor;
			BlameView.AnnotationSummaryTextColor = MonoDevelop.Ide.Gui.Styles.DimTextColor;

			LogView.CommitDescBackgroundColor = MonoDevelop.Ide.Gui.Styles.SecondaryBackgroundDarkerColor;
			LogView.DiffBoxSplitterColor = MonoDevelop.Ide.Gui.Styles.PrimaryBackgroundColor;
		}