Use dedicated theme for menus, prefer theme colors over explicit refs
- Revise icon loader to take an Invert bool instead of custom enum - Remove icon loader static ref to ActiveTheme.Instance - Pass contextual theme.InvertIcons for theme specific invert behavior
This commit is contained in:
parent
d3ef1d354e
commit
37a0b64b02
54 changed files with 231 additions and 241 deletions
|
|
@ -50,8 +50,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
private GuiWidget restoreArea;
|
||||
private Button restoreButton = null;
|
||||
|
||||
public SliceSettingsRow(PrinterConfig printer, SettingsContext settingsContext, SliceSettingData settingData, Color textColor, ThemeConfig theme, bool fullRowSelect = false)
|
||||
: base (settingData.PresentationName.Localize(), settingData.HelpText.Localize(), textColor, theme, fullRowSelect: fullRowSelect)
|
||||
public SliceSettingsRow(PrinterConfig printer, SettingsContext settingsContext, SliceSettingData settingData, ThemeConfig theme, bool fullRowSelect = false)
|
||||
: base (settingData.PresentationName.Localize(), settingData.HelpText.Localize(), theme, fullRowSelect: fullRowSelect)
|
||||
{
|
||||
this.printer = printer;
|
||||
this.settingData = settingData;
|
||||
|
|
@ -77,7 +77,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
|
|||
&& settingData.DataEditType != SliceSettingData.DataEditTypes.HARDWARE_PRESENT)
|
||||
{
|
||||
unitsArea.AddChild(
|
||||
new WrappedTextWidget(settingData.Units.Localize(), pointSize: 8, textColor: textColor)
|
||||
new WrappedTextWidget(settingData.Units.Localize(), pointSize: 8, textColor: theme.Colors.PrimaryTextColor)
|
||||
{
|
||||
Margin = new BorderDouble(5, 0),
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue