Use theme colors
- Issue MatterHackers/MCCentral#3893 New controls should use theme colors
This commit is contained in:
parent
cf81677177
commit
01021a9dbb
2 changed files with 8 additions and 2 deletions
|
|
@ -764,7 +764,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
break;
|
||||
|
||||
case SliceSettingData.DataEditTypes.READONLY_STRING:
|
||||
uiField = new ReadOnlyTextField();
|
||||
uiField = new ReadOnlyTextField(theme);
|
||||
break;
|
||||
|
||||
case SliceSettingData.DataEditTypes.STRING:
|
||||
|
|
|
|||
|
|
@ -70,10 +70,16 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
public class ReadOnlyTextField : UIField
|
||||
{
|
||||
TextWidget textWidget;
|
||||
private ThemeConfig theme;
|
||||
|
||||
public ReadOnlyTextField(ThemeConfig theme)
|
||||
{
|
||||
this.theme = theme;
|
||||
}
|
||||
|
||||
public override void Initialize(int tabIndex)
|
||||
{
|
||||
textWidget = new TextWidget("")
|
||||
textWidget = new TextWidget("", textColor: theme.Colors.PrimaryTextColor, pointSize: theme.DefaultFontSize)
|
||||
{
|
||||
TabIndex = tabIndex,
|
||||
ToolTipText = this.HelpText,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue