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

Commit 4ee93ee

Browse files
authored
Merge pull request #760 from github-for-unity/features/window-toolbar-functions
Moving the toolbar
2 parents e04f587 + 20d4a95 commit 4ee93ee

File tree

6 files changed

+389
-238
lines changed

6 files changed

+389
-238
lines changed

src/GitHub.Api/Localization.Designer.cs

Lines changed: 117 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/GitHub.Api/Localization.resx

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,4 +306,43 @@
306306
<data name="GitVersionTooLow" xml:space="preserve">
307307
<value>The detected Git at {0} has version {1}, which is too low. The minimum Git version is {2}.</value>
308308
</data>
309+
<data name="BranchesTitle" xml:space="preserve">
310+
<value>Branches</value>
311+
</data>
312+
<data name="ChangesTitle" xml:space="preserve">
313+
<value>Changes</value>
314+
</data>
315+
<data name="DefaultRepoUrl" xml:space="preserve">
316+
<value>No remote configured</value>
317+
</data>
318+
<data name="FetchActionTitle" xml:space="preserve">
319+
<value>Fetch Changes</value>
320+
</data>
321+
<data name="FetchButtonText" xml:space="preserve">
322+
<value>Fetch</value>
323+
</data>
324+
<data name="FetchFailureDescription" xml:space="preserve">
325+
<value>Could not fetch changes</value>
326+
</data>
327+
<data name="HistoryTitle" xml:space="preserve">
328+
<value>History</value>
329+
</data>
330+
<data name="InitializeTitle" xml:space="preserve">
331+
<value>Initialize</value>
332+
</data>
333+
<data name="PublishButton" xml:space="preserve">
334+
<value>Publish</value>
335+
</data>
336+
<data name="SettingsTitle" xml:space="preserve">
337+
<value>Settings</value>
338+
</data>
339+
<data name="Window_RepoBranchTooltip" xml:space="preserve">
340+
<value>Active branch</value>
341+
</data>
342+
<data name="Window_RepoNoUrlTooltip" xml:space="preserve">
343+
<value>Add a remote in the Settings tab</value>
344+
</data>
345+
<data name="Window_RepoUrlTooltip" xml:space="preserve">
346+
<value>Url of the {0} remote</value>
347+
</data>
309348
</root>

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,7 @@ public static GUIStyle HeaderBranchLabelStyle
226226
headerBranchLabelStyle = new GUIStyle(EditorStyles.label);
227227
headerBranchLabelStyle.name = "HeaderBranchLabelStyle";
228228
headerBranchLabelStyle.margin = new RectOffset(0, 0, 0, 0);
229+
headerBranchLabelStyle.wordWrap = true;
229230
}
230231
return headerBranchLabelStyle;
231232
}
@@ -240,6 +241,7 @@ public static GUIStyle HeaderRepoLabelStyle
240241
headerRepoLabelStyle = new GUIStyle(EditorStyles.boldLabel);
241242
headerRepoLabelStyle.name = "HeaderRepoLabelStyle";
242243
headerRepoLabelStyle.margin = new RectOffset(0, 0, 0, 0);
244+
headerRepoLabelStyle.wordWrap = true;
243245
}
244246
return headerRepoLabelStyle;
245247
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ class ChangesView : Subview
1818
private const string OneChangedFileLabel = "1 changed file";
1919
private const string NoChangedFilesLabel = "No changed files";
2020

21-
[NonSerialized] private bool currentBranchHasUpdate;
22-
[NonSerialized] private bool currentStatusEntriesHasUpdate;
23-
[NonSerialized] private bool currentLocksHasUpdate;
21+
[SerializeField] private bool currentBranchHasUpdate;
22+
[SerializeField] private bool currentStatusEntriesHasUpdate;
23+
[SerializeField] private bool currentLocksHasUpdate;
2424

2525
[NonSerialized] private GUIContent discardGuiContent;
2626

0 commit comments

Comments
 (0)