diff --git a/Src/Unity/Scripts/UX/Library/TabContainer.cs b/Src/Unity/Scripts/UX/Library/TabContainer.cs index 2cdc368..0949d7c 100644 --- a/Src/Unity/Scripts/UX/Library/TabContainer.cs +++ b/Src/Unity/Scripts/UX/Library/TabContainer.cs @@ -27,6 +27,12 @@ namespace BITKit.UX { RegisterCallback(OnAttachToPanel); RegisterCallback(OnDetachFromPanel); + RegisterCallback(OnGeometryChanged); + } + + private void OnGeometryChanged(GeometryChangedEvent evt) + { + Rebuild(); } public string TabPath diff --git a/Src/Unity/Scripts/UX/Painter/SkiaPainter.cs b/Src/Unity/Scripts/UX/Painter/SkiaPainter.cs index 5c03cb8..8be9804 100644 --- a/Src/Unity/Scripts/UX/Painter/SkiaPainter.cs +++ b/Src/Unity/Scripts/UX/Painter/SkiaPainter.cs @@ -1,7 +1,6 @@ using System.Collections; using System.Collections.Generic; using System.Linq; -using System.Net.Sockets.Kcp; using SkiaSharp; using UnityEngine; using UnityEngine.UIElements; diff --git a/Src/Unity/UX/Common/Common.uss b/Src/Unity/UX/Common/Common.uss index eb8505c..8d3aefd 100644 --- a/Src/Unity/UX/Common/Common.uss +++ b/Src/Unity/UX/Common/Common.uss @@ -445,3 +445,23 @@ Foldout Toggle Label { background-color: rgb(58, 58, 58); color: rgb(255, 255, 255); } + +Button.clear { + background-color: rgba(0, 0, 0, 0); + margin-top: 0; + margin-right: 0; + margin-bottom: 0; + margin-left: 0; + padding-top: 0; + padding-right: 0; + padding-bottom: 0; + padding-left: 0; + border-top-width: 0; + border-right-width: 0; + border-bottom-width: 0; + border-left-width: 0; + border-left-color: rgba(0, 0, 0, 0); + border-right-color: rgba(0, 0, 0, 0); + border-top-color: rgba(0, 0, 0, 0); + border-bottom-color: rgba(0, 0, 0, 0); +}