Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Ability to set a number of custom colours for KryptonColorButton #776

Open
PWagner1 opened this issue Jul 7, 2022 · 10 comments
Labels
area:toolkit All issues related to the toolkit components. enhancement New feature or request new feature A new feature has been requested. suggestion A suggestion has been requested. version:100 All things to do with V100.
Milestone

Comments

@PWagner1
Copy link
Contributor

PWagner1 commented Jul 7, 2022

From user jmgreywolf via Discord

_ I haven't been able to find it yet, but is there a way to only show specific colors in the ColorButton?_

Basically I want to provide users with only 10 different colors

@PWagner1 PWagner1 added enhancement New feature or request new feature A new feature has been requested. suggestion A suggestion has been requested. labels Jul 7, 2022
@Smurf-IV
Copy link
Member

Smurf-IV commented Jul 8, 2022

It should be the same as "Any restriction" that can be implemented n the standard winform colour selection.

Guessing, it would be the use of the cache colour, and the removal of the display of all.

@giduac
Copy link
Contributor

giduac commented Jul 8, 2022

Hi jmgreywolf (Discord),
cc: @Wagnerp, @Smurf-IV,

You might have a look at the KColorButton properties that start with visible
Those give you the opportunity to configure the dialog.

SchemeStandard and SchemeThemes give you the options to show a selected list of colours.
Although those are predefined.

Maybe this could solve your question.
If not a possible feature request could be to add an option that let the user add a custom array of colours.

image

Cheers,

@jgreywolf
Copy link

What I am doing for now is that I am restricting it to "Basic 16", and then translating which color was picked and replacing it with the corresponding color I allow.

Example: Lime, Green, Olive all become green

@giduac
Copy link
Contributor

giduac commented Jul 9, 2022

Hi @jgreywolf , @Wagnerp

image

Also a possibility to use a KToolStrip with DropDownButton and add the menu items (colours) you need...

@giduac
Copy link
Contributor

giduac commented Jul 9, 2022

Or a KDropButton in combination with a KContextMenu

image

@jgreywolf
Copy link

I used the Drop DownButton on extended toolstrip and it works great - thanks!

@Smurf-IV
Copy link
Member

@jgreywolf Can this be closed now ?

@Smurf-IV Smurf-IV added answered This question has been adequately answered. awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. labels Jul 16, 2022
@jgreywolf
Copy link

Well, I still think it would be a good feature. But my immediate issue has been resolved :)

@Smurf-IV
Copy link
Member

Well, I still think it would be a good feature. But my immediate issue has been resolved :)

Agreed, I think that is what #385 would be trying to do as well.

@Smurf-IV Smurf-IV added version:100 All things to do with V100. and removed answered This question has been adequately answered. awaiting feedback A fix for this issue has been implemented, waiting for feedback on the fix. labels Sep 29, 2024
@Smurf-IV
Copy link
Member

Reopened: Because the "Feature Request" has not been implemented - just worked around via the use of another control !

@Smurf-IV Smurf-IV reopened this Sep 29, 2024
@PWagner1 PWagner1 added this to the Version 100 milestone Sep 29, 2024
@PWagner1 PWagner1 added the area:toolkit All issues related to the toolkit components. label Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:toolkit All issues related to the toolkit components. enhancement New feature or request new feature A new feature has been requested. suggestion A suggestion has been requested. version:100 All things to do with V100.
Projects
None yet
Development

No branches or pull requests

4 participants