leocb / MaterialSkin

Theming .NET WinForms, C# or VB.Net, to Google's Material Design Principles.
MIT License
437 stars 132 forks source link

Icon support in tab selector #319

Closed Serraniel closed 2 years ago

Serraniel commented 2 years ago

I wanted to use the tabselector with icons in the tab sheets. So I tried to set them up similar as it is working for the drawer:

But the tab selector only displays the name, not the icon: image

valimaties commented 2 years ago

TabSelector control can accept icons, by setting the Tab Label property of TabSelector to IconAndText but I see an issue with the Height of it, which will not change the position of TabControl. Maybe another approach, by adding a new enumeration property to TabSelector which must positioning the icon to the left/right/up/down of label is better than this fix position of top/up. Personally, I don't like it as it is now. And I think that icons must be recolored as they are colored in drawer.

TabSelector icons

valimaties commented 2 years ago

I've better redraw a control named MetroTab, which will contains a TabControl and a TabSelector. The settings made in designer must be seen in designer too, not only in runtime. And the tabs for the TabControl must be invisible.

orapps44 commented 2 years ago

I don't like it as it is now. And I think that icons must be recolored as they are colored in drawer.

I agree it could be improved.

Serraniel commented 2 years ago

Thanks for your reply. Must have overseeh the property.