Files
XRLib/Assets/Resources/UIToolkit/Window/UTKTreeListWindowUss.uss
2026-01-29 20:14:39 +09:00

124 lines
2.9 KiB
Plaintext

/*
* UTKTreeListWindow.uss
*
* UTKTreeListWindow 컴포넌트의 스타일 정의입니다.
* 테마 지원: var(--color-*) 변수 사용
*/
UTKTreeListWindow {
flex-grow: 1;
height: 100%;
align-self: flex-start;
}
.tree-menu-container {
background-color: var(--color-bg-panel);
flex-grow: 1;
height: 100%;
align-self: flex-start;
padding: 5px;
padding-top: 10px;
padding-bottom: 25px;
padding-left: 20px;
padding-right: 20px;
width: 300px;
}
/* ============================================
헤더 (Header)
============================================ */
.tree-window-header {
flex-direction: row;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
height: 24px;
flex-shrink: 0;
}
.tree-window-title {
color: var(--color-text-primary);
font-size: var(--font-size-label3);
-unity-font-definition: resource('Fonts/Pretendard/Pretendard-Medium');
-unity-font-style: normal;
margin: 0;
padding: 0;
-unity-text-align: middle-left;
}
/* ============================================
닫기 버튼 (Close Button) - UTKButton 스타일 오버라이드
============================================ */
.tree-window-close-button {
width: 22px;
height: 22px;
min-width: 22px;
min-height: 22px;
border-width: 0;
margin: 0;
padding: 0;
align-self: center;
display: none; /* 기본 숨김, 필요시 flex로 변경 */
}
/* ============================================
검색 필드 (Search Field)
============================================ */
.search-field {
margin-bottom: 12px;
margin-top: 0;
margin-right: 0;
margin-left: 0;
height: 24px;
}
/* ============================================
Clear 버튼 (Clear Button) - UTKButton 스타일 오버라이드
============================================ */
.search-clear-button {
width: 16px;
height: 16px;
min-width: 16px;
min-height: 16px;
border-width: 0;
margin: 0;
padding: 0;
align-self: center;
position: absolute;
right: 4px;
}
/* ============================================
TreeView 아이템 컨테이너 (TreeView Item Container)
============================================ */
.unity-tree-view__item-content TemplateContainer {
flex-grow: 1;
}
/* ============================================
트리 리스트 아이템 (Tree List Item) - UTKTreeListItem
============================================ */
.tree-list-item-container {
flex-direction: row;
justify-content: space-between;
align-items: center;
height: 18px;
padding: 0 8px 0 0;
}
.tree-list-item-container .item-label-style {
flex-grow: 1;
margin: 0;
padding: 0 4px;
color: var(--color-text-primary);
font-size: var(--font-size-label3);
-unity-font-definition: resource('Fonts/Pretendard/Pretendard-Bold');
-unity-text-align: middle-left;
}