Skip to content

Commit

Permalink
Add UI improvements
Browse files Browse the repository at this point in the history
(cherry picked from commit b277186)
  • Loading branch information
ivangrek authored and RussKie committed Mar 2, 2021
1 parent 5bb94e4 commit 3f4032b
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
2 changes: 1 addition & 1 deletion GitExtUtils/GitUI/ControlDpiExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public static void AdjustForDpiScaling(this Control control)
splitContainer.SplitterWidth = DpiUtil.Scale(splitterWidth);
}

splitContainer.BackColor = ColorHelper.GetSplitterColor();
splitContainer.BackColor = Color.Transparent;
break;
}

Expand Down
10 changes: 10 additions & 0 deletions GitExtUtils/GitUI/Theming/OtherColors.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Drawing;

namespace GitExtUtils.GitUI.Theming
{
public static class OtherColors
{
public static readonly Color BackgroundColor = Color.FromArgb(251, 251, 251).AdaptBackColor();
public static readonly Color PanelBorderColor = Color.FromArgb(224, 224, 224).AdaptBackColor();
}
}
14 changes: 11 additions & 3 deletions GitUI/CommandsDialogs/FormBrowse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,14 @@ public FormBrowse([NotNull] GitUICommands commands, string filter, ObjectId sele

RevisionGrid.ToggledBetweenArtificialAndHeadCommits += (s, e) => FocusRevisionDiffFileStatusList();

toolPanel.TopToolStripPanel.BackColor = Color.Transparent;
mainMenuStrip.BackColor = Color.Transparent;
ToolStripMain.BackColor = Color.Transparent;
ToolStripFilters.BackColor = Color.Transparent;
ToolStripScripts.BackColor = Color.Transparent;

BackColor = OtherColors.BackgroundColor;

return;

void FocusRevisionDiffFileStatusList()
Expand Down Expand Up @@ -3169,9 +3177,9 @@ private void LayoutRevisionInfo()
RevisionInfo.Parent.BackColor = RevisionInfo.BackColor;
RevisionInfo.ResumeLayout(performLayout: true);

MainSplitContainer.Panel1.BackColor = Color.LightGray.AdaptBackColor();
RevisionsSplitContainer.Panel1.BackColor = Color.LightGray.AdaptBackColor();
RevisionsSplitContainer.Panel2.BackColor = Color.LightGray.AdaptBackColor();
MainSplitContainer.Panel1.BackColor = OtherColors.PanelBorderColor;
RevisionsSplitContainer.Panel1.BackColor = OtherColors.PanelBorderColor;
RevisionsSplitContainer.Panel2.BackColor = OtherColors.PanelBorderColor;

CommitInfoTabControl.ResumeLayout(performLayout: true);
RevisionsSplitContainer.ResumeLayout(performLayout: true);
Expand Down
4 changes: 2 additions & 2 deletions GitUI/CommitInfo/CommitInfo.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3f4032b

Please sign in to comment.