Factory 용 Setting 모달 개발 완료

This commit is contained in:
logonkhi
2026-02-26 09:56:34 +09:00
parent 2914667223
commit 33f07529d3
6 changed files with 40 additions and 30 deletions

View File

@@ -111,7 +111,40 @@ namespace UVC.UIToolkit
_tabView = new UTKTabView();
_tabView.AddToClassList("reordable-tab-list__tabview");
_tabView.Align = TabAlign.Top;
Add(_tabView);
// 외부 UTKTabView의 align-left 등 descendant selector가
// 내부 TabView에 침투하는 것을 인라인 스타일로 차단
_tabView.schedule.Execute(() =>
{
var headerContainer = _tabView.Q(className: "unity-tab-view__header-container");
if (headerContainer != null)
{
headerContainer.style.flexDirection = FlexDirection.Row;
headerContainer.style.borderRightWidth = 0;
headerContainer.style.borderTopWidth = 0;
headerContainer.style.borderLeftWidth = 0;
}
// underline도 top-align 방식(하단 가로선)으로 강제
_tabView.Query(className: "unity-tab__header-underline").ForEach(underline =>
{
underline.style.left = 0;
underline.style.right = 0;
underline.style.bottom = 0;
underline.style.top = StyleKeyword.Auto;
underline.style.width = StyleKeyword.Auto;
underline.style.height = 2;
});
// tab header margin도 top-align 방식으로 강제
_tabView.Query(className: "unity-tab__header").ForEach(header =>
{
header.style.marginRight = new StyleLength(StyleKeyword.Null);
header.style.marginBottom = 0;
});
});
}
private void SubscribeToThemeChanges()