예제 #1
0
        static Settings()
        {
            if (!RunningOnWindows())
            {
                PathSeparator = '/';
                PathSeparatorWrong = '\\';
            }

            BranchBorders = true;
            StripedBranchChange = true;
            MulticolorBranches = true;
            DiffAddedExtraColor = Color.FromArgb(135, 255, 135);
            DiffAddedColor = Color.FromArgb(200, 255, 200);
            DiffRemovedExtraColor = Color.FromArgb(255, 150, 150);
            DiffRemovedColor = Color.FromArgb(255, 200, 200);
            DiffSectionColor = Color.FromArgb(230, 230, 230);
            RemoteBranchColor = Color.Green;
            BranchColor = Color.DarkRed;
            GraphColor = Color.Red;
            TagColor = Color.DarkBlue;
            OtherTagColor = Color.Gray;
            AutoStartPageant = true;
            Pageant = "";
            Puttygen = "";
            Plink = "";
            GitLog = new CommandLogger();
            MaxCommits = 2000;
            GitCommand = "git.cmd";
            ShowRevisionGraph = true;
            UseFastChecks = true;
            RelativeDate = true;
            Dictionary = "en-US";
            OrderRevisionByDate = true;
            Smtp = "";
            PullMerge = "merge";
            Encoding = Encoding.Default;
            RevisionGraphThickness = 1F;
            RevisionGraphWidth = 6;
            FollowRenamesInFileHistory = true;
            ShowAuthorGravatar = true;
            AuthorImageCacheDays = 5;
            AuthorImageSize = 80;
            IconColor = "default";
            CustomHomeDir = "";
            Translation = "";
            CommitInfoShowContainedInBranchesLocal = true;
            CommitInfoShowContainedInBranchesRemote = false;
            CommitInfoShowContainedInBranchesRemoteIfNoLocal = false;
            CommitInfoShowContainedInTags = true;
            RevisionGridQuickSearchTimeout = 700;
            ApplicationDataPath = Application.UserAppDataPath + Settings.PathSeparator.ToString();
            ShowGitStatusInBrowseToolbar = false;
            LastCommitMessage = "";
            ShowErrorsWhenStagingFiles = true;
            RevisionGraphDrawNonRelativesGray = true;
            RevisionGraphShowWorkingDirChanges = false;
        }
예제 #2
0
 protected void RefreshLogItems(CommandLogger log)
 {
     SendOrPostCallback method = o =>
     {
         if (TabControl.SelectedTab == tabPageCommandLog)
         {
             bool selectLastIndex = LogItems.Items.Count == 0 || LogItems.SelectedIndex == LogItems.Items.Count - 1;
             LogItems.DataSource = log.Commands();
             if (selectLastIndex && LogItems.Items.Count > 0)
                 LogItems.SelectedIndex = LogItems.Items.Count - 1;
         }
     };
     syncContext.Post(method, this);
 }
예제 #3
0
 static Settings()
 {
     BranchBorders = true;
     StripedBranchChange = true;
     MulticolorBranches = true;
     DiffAddedExtraColor = Color.FromArgb(135, 255, 135);
     DiffAddedColor = Color.FromArgb(200, 255, 200);
     DiffRemovedExtraColor = Color.FromArgb(255, 150, 150);
     DiffRemovedColor = Color.FromArgb(255, 200, 200);
     DiffSectionColor = Color.FromArgb(230, 230, 230);
     RemoteBranchColor = Color.Green;
     BranchColor = Color.DarkRed;
     GraphColor = Color.Red;
     TagColor = Color.DarkBlue;
     OtherTagColor = Color.Gray;
     AutoStartPageant = true;
     Pageant = "";
     Puttygen = "";
     Plink = "";
     GitLog = new CommandLogger();
     MaxCommits = 2000;
     GitCommand = "git.cmd";
     ShowRevisionGraph = true;
     UseFastChecks = true;
     RelativeDate = true;
     Dictionary = "en-US";
     OrderRevisionByDate = true;
     Smtp = "";
     PullMerge = "merge";
     Encoding = Encoding.UTF8;
     RevisionGraphThickness = 1F;
     RevisionGraphWidth = 6;
     FollowRenamesInFileHistory = true;
     ShowAuthorGravatar = true;
     AuthorImageCacheDays = 5;
     AuthorImageSize = 80;
     IconColor = "default";
     CustomHomeDir = "";
     Translation = "";
 }
예제 #4
0
파일: Settings.cs 프로젝트: 8/gitextensions
        static Settings()
        {
            if (!RunningOnWindows())
            {
                PathSeparator = '/';
                PathSeparatorWrong = '\\';
            }

            GitLog = new CommandLogger();
            ApplicationDataPath = Application.UserAppDataPath + Settings.PathSeparator.ToString();
        }