Add theme widget back into main menu
This commit is contained in:
parent
fc9099139a
commit
5fde89295c
2 changed files with 20 additions and 0 deletions
|
|
@ -170,6 +170,26 @@ namespace MatterHackers.MatterControl
|
|||
|
||||
popupMenu.CreateHorizontalLine();
|
||||
|
||||
var themeRow = new GuiWidget()
|
||||
{
|
||||
HAnchor = HAnchor.Stretch,
|
||||
VAnchor = VAnchor.Fit,
|
||||
};
|
||||
|
||||
themeRow.AddChild(new TextWidget("Theme".Localize(), pointSize: menuTheme.DefaultFontSize, textColor: menuTheme.Colors.PrimaryTextColor)
|
||||
{
|
||||
VAnchor = VAnchor.Center,
|
||||
});
|
||||
|
||||
themeRow.AddChild(new ThemeColorPanel.AccentColorsWidget(AppContext.ThemeSet, 16, 2)
|
||||
{
|
||||
HAnchor = HAnchor.Right
|
||||
});
|
||||
|
||||
menuItem = popupMenu.CreateMenuItem(themeRow, "Theme Menu Item", AggContext.StaticData.LoadIcon("theme.png", 16, 16, menuTheme.InvertIcons));
|
||||
|
||||
popupMenu.CreateHorizontalLine();
|
||||
|
||||
menuItem = popupMenu.CreateMenuItem("About".Localize() + " MatterControl", indicatorIcon);
|
||||
menuItem.Click += (s, e) => ApplicationController.Instance.ShowAboutPage();
|
||||
return popupMenu;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue