Krypton-Suite-Legacy-Archive / Krypton-NET-5.470

A update to Component factory's krypton toolkit to support the .NET 4.7 framework.
BSD 3-Clause "New" or "Revised" License
78 stars 20 forks source link

[Question]: How to Change ButtonSpecType Color ? #233

Closed pc8181 closed 4 years ago

pc8181 commented 5 years ago

Krypton form i changed the StateCommon\Header backcolor to Black and add ButtonSpec in form and change it type to Pin Vertical, ButtonSpec Type icon is white in design time but in run time it will show as black color I'm using krypton palette 'office 365 Black',
how to resolve this ?

Design Time : image

RunTime: image

pc8181 commented 5 years ago

have any possible way to invert the form buttonspec type icon colors ?

Thanks

PWagner1 commented 5 years ago

Is it a custom icon?

pc8181 commented 5 years ago

WindowsApp3.zip no sir this is inbuilt icon

`
Friend WithEvents btnOnTop As ComponentFactory.Krypton.Toolkit.ButtonSpecAny

    Me.btnOnTop = New ComponentFactory.Krypton.Toolkit.ButtonSpecAny()
    Me.btnOnTop.Style = ComponentFactory.Krypton.Toolkit.PaletteButtonStyle.ButtonSpec
    Me.btnOnTop.Type = ComponentFactory.Krypton.Toolkit.PaletteButtonSpecStyle.PinVertical
    Me.ButtonSpecs.AddRange(New ComponentFactory.Krypton.Toolkit.ButtonSpecAny() {Me.btnOnTop})`

this icon is come from

Me.btnOnTop.Type = ComponentFactory.Krypton.Toolkit.PaletteButtonSpecStyle.PinVertical

ButtonSpec Type has inbuilt icons ...

image

please check the attached project .... just click the buttonspec on form top border

PWagner1 commented 5 years ago

Sorry I'm not familiar with ButtonSpec, so it may take time to investigate

Smurf-IV commented 4 years ago

This appears to be 2 part situation:

Smurf-IV commented 4 years ago

Oh, and to make things worse, there are 2 set of icons that can be used for most things, but only 1 pin type: image These are all Buttons Specs, and using the Office2007 Black Theme. It's the same for the other themes. The order is (From Left)

Smurf-IV commented 4 years ago

It is possible to use a generic ButtonSpecType, and add your own image: image

Smurf-IV commented 4 years ago

The Order of image retrieval:

Smurf-IV commented 4 years ago

I'm setting this to "Won't fix" unless "we" want to add a new bmp to each theme and route it through for usage as a different Pin type (And the other pin type also!)