From a30c03624552fd6afa5a8c51611f7a003471a2f1 Mon Sep 17 00:00:00 2001 From: monitor1394 Date: Tue, 11 May 2021 21:00:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DTMP=E4=B8=8BTheme=E4=B8=8D?= =?UTF-8?q?=E6=98=BE=E7=A4=BATMPFont=E7=9A=84=E9=97=AE=E9=A2=98=20#143?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/PropertyDrawers/ThemeDrawer.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Editor/PropertyDrawers/ThemeDrawer.cs b/Editor/PropertyDrawers/ThemeDrawer.cs index 7cc4fdff..d7c5842b 100644 --- a/Editor/PropertyDrawers/ThemeDrawer.cs +++ b/Editor/PropertyDrawers/ThemeDrawer.cs @@ -58,7 +58,11 @@ namespace XCharts { XThemeMgr.SwitchTheme(chart, chartNameList[selectedIndex]); } +#if dUI_TextMeshPro + PropertyField(prop, "m_TMPFont"); +#else PropertyField(prop, "m_Font"); +#endif PropertyField(prop, "m_ContrastColor"); PropertyField(prop, "m_BackgroundColor"); PropertyField(prop, "m_ColorPalette");