some UI cleanups

This commit is contained in:
sinaioutlander
2020-11-14 00:46:26 +11:00
parent e9acd68ee4
commit 60580c8183
13 changed files with 64 additions and 71 deletions

View File

@ -160,7 +160,7 @@ namespace UnityExplorer.UI.Modules
var bottomBarObj = UIFactory.CreateHorizontalGroup(mainObj);
LayoutElement topBarLayout = bottomBarObj.AddComponent<LayoutElement>();
topBarLayout.minHeight = 40;
topBarLayout.minHeight = 30;
topBarLayout.flexibleHeight = 0;
var bottomGroup = bottomBarObj.GetComponent<HorizontalLayoutGroup>();
@ -202,7 +202,7 @@ namespace UnityExplorer.UI.Modules
{
logAreaObj.SetActive(false);
hideBtnText.text = "Show";
mainLayout.minHeight = 40;
mainLayout.minHeight = 30;
}
else
{
@ -267,7 +267,7 @@ namespace UnityExplorer.UI.Modules
var unityToggleRect = unityToggleObj.transform.Find("Background").GetComponent<RectTransform>();
var pos = unityToggleRect.localPosition;
pos.y = -8;
pos.y = -4;
unityToggleRect.localPosition = pos;
// // Save to disk button