浏览代码

Merge pull request #349 from Unity-Technologies/blackboard-uss-fixes

Fix font sizes in blackboard
/main
GitHub 7 年前
当前提交
753d4c0f
共有 4 个文件被更改,包括 30 次插入18 次删除
  1. 1
      com.unity.shadergraph/Editor/Drawing/Blackboard/BlackboardFieldPropertyView.cs
  2. 19
      com.unity.shadergraph/Editor/Resources/Styles/Blackboard.uss
  3. 18
      com.unity.shadergraph/Editor/Resources/Styles/ShaderGraphBlackboard.uss
  4. 10
      com.unity.shadergraph/Editor/Resources/Styles/ShaderGraphBlackboard.uss.meta

1
com.unity.shadergraph/Editor/Drawing/Blackboard/BlackboardFieldPropertyView.cs


public BlackboardFieldPropertyView(AbstractMaterialGraph graph, IShaderProperty property)
{
AddStyleSheetPath("Styles/ShaderGraphBlackboard");
m_Graph = graph;
if (property is Vector1ShaderProperty)
{

19
com.unity.shadergraph/Editor/Resources/Styles/Blackboard.uss


.sgblackboardField > .mainContainer > #contentItem > #pill > #textLabel {
font-size: 11;
}
.sgblackboardFieldPropertyView > .rowView {
flex-direction: row;
padding-left: 10;
padding-right: 2;
padding-top: 2;
padding-bottom: 2;
}
.sgblackboardFieldPropertyView > .rowView > .rowViewLabel {
min-width: 50;
font-size: 11;
}
.sgblackboardFieldPropertyView > .rowView > .rowViewControl {
flex: 1;
}
}

18
com.unity.shadergraph/Editor/Resources/Styles/ShaderGraphBlackboard.uss


.sgblackboardFieldPropertyView * {
font-size: 11;
}
.sgblackboardFieldPropertyView > .rowView {
flex-direction: row;
padding-left: 10;
padding-right: 2;
padding-top: 2;
padding-bottom: 2;
}
.sgblackboardFieldPropertyView > .rowView > .rowViewLabel {
min-width: 50;
}
.sgblackboardFieldPropertyView > .rowView > .rowViewControl {
flex: 1;
}

10
com.unity.shadergraph/Editor/Resources/Styles/ShaderGraphBlackboard.uss.meta


fileFormatVersion: 2
guid: 381f1cbb2f6577e408bed4c5f6208020
ScriptedImporter:
fileIDToRecycleName:
11400000: stylesheet
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
script: {fileID: 12385, guid: 0000000000000000e000000000000000, type: 0}
正在加载...
取消
保存