Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 22c9217

Browse files
Merge pull request #528 from github-for-unity/enhancements/history-detail-tree-view-rollup
HistoryView Rollup
2 parents 9d8eb6c + 322cd24 commit 22c9217

18 files changed

+627
-1738
lines changed

src/GitHub.Api/GitHub.Api.csproj

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,7 @@
236236
<Compile Include="Extensions\UriExtensions.cs" />
237237
<Compile Include="Platform\Platform.cs" />
238238
<Compile Include="Git\GitCredentialManager.cs" />
239-
<Compile Include="UI\FileTreeNode.cs" />
240-
<Compile Include="UI\GitCommitTarget.cs" />
241239
<Compile Include="UI\TreeBase.cs" />
242-
<Compile Include="UI\TreeBuilder.cs" />
243240
</ItemGroup>
244241
<Choose>
245242
<When Condition="$(Buildtype) == 'Internal'">

src/GitHub.Api/UI/FileTreeNode.cs

Lines changed: 0 additions & 143 deletions
This file was deleted.

src/GitHub.Api/UI/GitCommitTarget.cs

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/GitHub.Api/UI/TreeBuilder.cs

Lines changed: 0 additions & 146 deletions
This file was deleted.

src/UnityExtension/Assets/Editor/GitHub.Unity/GitHub.Unity.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
<Compile Include="Tools\MozRoots.cs" />
9797
<Compile Include="UI\AuthenticationView.cs" />
9898
<Compile Include="UI\BranchesView.cs" />
99-
<Compile Include="UI\ChangesetTreeView.cs" />
10099
<Compile Include="UI\ChangesView.cs" />
101100
<Compile Include="UI\HistoryView.cs" />
102101
<Compile Include="UI\IView.cs" />

src/UnityExtension/Assets/Editor/GitHub.Unity/Misc/Styles.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class Styles
6464
headerDescriptionStyle,
6565
historyToolbarButtonStyle,
6666
historyLockStyle,
67+
historyEntrySummaryStyle,
6768
historyEntryDetailsStyle,
6869
historyEntryDetailsRightStyle,
6970
historyFileTreeBoxStyle,
@@ -396,6 +397,20 @@ public static GUIStyle HistoryLockStyle
396397
return historyLockStyle;
397398
}
398399
}
400+
public static GUIStyle HistoryEntrySummaryStyle
401+
{
402+
get
403+
{
404+
if (historyEntrySummaryStyle == null)
405+
{
406+
historyEntrySummaryStyle = new GUIStyle(Label);
407+
historyEntrySummaryStyle.name = "HistoryEntrySummaryStyle";
408+
409+
historyEntrySummaryStyle.contentOffset = new Vector2(BaseSpacing * 2, 0);
410+
}
411+
return historyEntrySummaryStyle;
412+
}
413+
}
399414

400415
public static GUIStyle HistoryEntryDetailsStyle
401416
{
@@ -412,6 +427,8 @@ public static GUIStyle HistoryEntryDetailsStyle
412427
historyEntryDetailsStyle.onNormal.textColor = Label.onNormal.textColor;
413428
historyEntryDetailsStyle.onFocused.background = Label.onFocused.background;
414429
historyEntryDetailsStyle.onFocused.textColor = Label.onFocused.textColor;
430+
431+
historyEntryDetailsStyle.contentOffset = new Vector2(BaseSpacing * 2, 0);
415432
}
416433
return historyEntryDetailsStyle;
417434
}

0 commit comments

Comments
 (0)