These are chat archives for picoe/Eto

20th
Apr 2017
James Gregory
@j4m3z0r
Apr 20 2017 22:40
Follow-up on the styling question: have been able to figure out most of what I want to do, but stuck on menus. How can I set the style of the menu bar? Want to make something that looks like Visual Studio's menus when it's in dark mode.
Eto.Style.Add<MenuBar>(...) seems to yield an object that does not have a BackgroundColor field.
James Gregory
@j4m3z0r
Apr 20 2017 23:11
Ok, have made some progress. Discovered that I can do something like this:
        Eto.Style.Add<Eto.WinForms.Forms.Menu.MenuBarHandler>(null, c => {
            c.Control.BackColor = System.Drawing.Color.Black;
        });
Is that the best path forward?
James Gregory
@j4m3z0r
Apr 20 2017 23:52
Ok, and one more follow-up. Thank you for your patience with all my questions. Whilst the above will let me set the color of the menubar itself, the actual menus remain in Windows' default grey / white color scheme. How do I change the color of the menus themselves?
The closest thing I've been able to find is to implement a new Renderer class and use that to specify a new color palette. Is that the best thing to do here?