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

Commit ac8bd7b

Browse files
committed
yay an image!
1 parent 88b767e commit ac8bd7b

File tree

6 files changed

+27
-3
lines changed

6 files changed

+27
-3
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@
149149
<EmbeddedResource Include="IconsAndLogos\dot.png" />
150150
<EmbeddedResource Include="IconsAndLogos\dropdown-list-icon%402x.png" />
151151
<EmbeddedResource Include="IconsAndLogos\dropdown-list-icon.png" />
152+
<EmbeddedResource Include="IconsAndLogos\[email protected]" />
153+
<EmbeddedResource Include="IconsAndLogos\empty-state-init.png" />
152154
<EmbeddedResource Include="IconsAndLogos\favorite-branch-indicator.png" />
153155
<EmbeddedResource Include="IconsAndLogos\git-merge%402x.png" />
154156
<EmbeddedResource Include="IconsAndLogos\git-merge-light%402x.png" />
@@ -203,12 +205,12 @@
203205
</ItemGroup>
204206
<Import Project="..\..\..\..\..\common\nativelibraries.props" />
205207
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
206-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
208+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
207209
Other similar extension points exist, see Microsoft.Common.targets.
208210
<Target Name="BeforeBuild">
209211
</Target>
210212
<Target Name="AfterBuild">
211213
</Target>
212214
-->
213215
<Import Project="..\..\..\..\..\common\build.targets" />
214-
</Project>
216+
</Project>
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class Styles
9696
localCommitIcon,
9797
repoIcon,
9898
lockIcon,
99+
emptyStateInit,
99100
dropdownListIcon;
100101

101102
private static Color timelineBarColor;
@@ -803,6 +804,19 @@ public static Texture2D LockIcon
803804
}
804805
}
805806

807+
public static Texture2D EmptyStateInit
808+
{
809+
get
810+
{
811+
if (emptyStateInit == null)
812+
{
813+
emptyStateInit = Utility.GetIcon("empty-state-init.png", "[email protected]");
814+
}
815+
return emptyStateInit;
816+
}
817+
818+
}
819+
806820
public static Texture2D DropdownListIcon
807821
{
808822
get

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/InitProjectView.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ public override void OnGUI()
3535
{
3636
GUILayout.FlexibleSpace();
3737

38+
GUILayout.Label(Styles.EmptyStateInit);
39+
3840
GUILayout.Label(NoRepoTitle, Styles.BoldCenteredLabel);
3941

4042
GUILayout.BeginHorizontal();

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ private void DoToolbarGUI()
284284
changeTab = activeTab;
285285
EditorGUI.BeginChangeCheck();
286286
{
287-
if (HasRepository)
287+
if (!HasRepository)
288288
{
289289
changeTab = TabButton(SubTab.Changes, ChangesTitle, changeTab);
290290
changeTab = TabButton(SubTab.History, HistoryTitle, changeTab);

0 commit comments

Comments
 (0)