UTKAccodion 완료. UTKComponentList 수정 중
This commit is contained in:
@@ -306,9 +306,10 @@ namespace UVC.UIToolkit
|
||||
if (!string.IsNullOrEmpty(icon))
|
||||
{
|
||||
// 1순위: UTKMaterialIcons에 해당하는지 확인
|
||||
if (UTKMaterialIcons.GetIcon(icon) != null)
|
||||
string iconChar = UTKMaterialIcons.GetIcon(icon);
|
||||
if (iconChar != string.Empty)
|
||||
{
|
||||
SetMaterialIcon(icon, iconSize);
|
||||
SetMaterialIcon(iconChar, iconSize);
|
||||
}
|
||||
// 2순위: UTKImageIcons에 해당하는지 확인
|
||||
else if (!string.IsNullOrEmpty(UTKImageIcons.GetPath(icon)))
|
||||
@@ -536,8 +537,8 @@ namespace UVC.UIToolkit
|
||||
/// <param name="fontSize">아이콘 폰트 크기 (null이면 버튼 크기에 맞춤)</param>
|
||||
public void SetMaterialIconByName(string iconName, int? fontSize = null)
|
||||
{
|
||||
var iconChar = UTKMaterialIcons.GetIcon(iconName);
|
||||
if (!string.IsNullOrEmpty(iconChar))
|
||||
string iconChar = UTKMaterialIcons.GetIcon(iconName);
|
||||
if (iconChar != string.Empty)
|
||||
{
|
||||
SetMaterialIcon(iconChar, fontSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user