浏览代码

Style tweaks and minor code clean-up for title bar

/main
Peter Bay Bastian 8 年前
当前提交
621f548e
共有 3 个文件被更改,包括 8 次插入8 次删除
  1. 6
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/DrawData/TitleBarDrawData.cs
  2. 3
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/TitleBarDrawer.cs
  3. 7
      MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Styles/TitleBar.uss

6
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/DrawData/TitleBarDrawData.cs


public void Initialize(IGraphAsset graphAsset)
{
if (graphAsset == null)
return;
title = graphAsset.GetScriptableObject().name;
title = "";
else
title = graphAsset.GetScriptableObject().name;
}
}
}

3
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Drawer/TitleBarDrawer.cs


};
AddChild(rightContainer);
m_title = new Label(new GUIContent("testttt"))
m_title = new Label(new GUIContent(""))
pickingMode = PickingMode.Ignore
};
leftContainer.AddChild(m_title);

7
MaterialGraphProject/Assets/GraphFramework/SerializableGraph/Editor/Drawing/Styles/TitleBar.uss


align-items: stretch;
background-color: #212121;
padding-bottom: 1;
padding-left: 1;
margin-left: 1;
}
#TitleBar #left,

}
#TitleBar #left {
/* background-color: #f00; */
#TitleBar #left #title {
#TitleBar #title {
font-size: 12;
font-style: bold;
}
正在加载...
取消
保存