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();
|
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 = popupMenu.CreateMenuItem("About".Localize() + " MatterControl", indicatorIcon);
|
||||||
menuItem.Click += (s, e) => ApplicationController.Instance.ShowAboutPage();
|
menuItem.Click += (s, e) => ApplicationController.Instance.ShowAboutPage();
|
||||||
return popupMenu;
|
return popupMenu;
|
||||||
|
|
|
||||||
BIN
StaticData/Icons/theme.png
Normal file
BIN
StaticData/Icons/theme.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 570 B |
Loading…
Add table
Add a link
Reference in a new issue