Consolidate DisplayMode logic into IsTouchscreen setting

This commit is contained in:
John Lewin 2017-02-16 14:00:21 -08:00
parent e129d72cc1
commit 78c04a0e37
12 changed files with 13 additions and 35 deletions

View file

@ -85,7 +85,7 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
tabControl.TabBar.Padding = new BorderDouble(top: 6);
RGBA_Bytes selectedTabColor;
if (UserSettings.Instance.DisplayMode == ApplicationDisplayType.Responsive)
if (UserSettings.Instance.IsTouchScreen)
{
tabControl.TabBar.BackgroundColor = ActiveTheme.Instance.PrimaryBackgroundColor;
selectedTabColor = ActiveTheme.Instance.TabLabelSelected;