Adding a custom BubbleColorSchemeChoice to CPreferenceModel

I’ve created a custom BubbleColorScheme and would like to add it to the BubbleColorSchemeChoice (otherwise if a user changes a hot key preference they lose the scheme), but I’m not sure how to get a handle to BubbleColorSchemeChoice from the CPreferenceModel. Can you suggest a path or make it easier in a future version?

thanks

Originally I thought people would setup their own preference-model. Thinking about this a second time I realize that this solution is not good. So I’ll add some methods that will allow you access to this choice (and other properties). This will be included in the next release, which I hopefully can make this week (I don’t make any promises).

[Edit. In your case the code will look like this:

    public static void main( String[] args ){
        CControl control = new CControl();
        
        CPreferenceModel model = new CPreferenceModel( control );
        
        BubbleColorSchemePreference preference = model.getBubbleThemePreferences().getColorScheme();
        BubbleColorSchemeChoice choices = new BubbleColorSchemeChoice( control.intern().getDockProperties() );
        choices.add( "custom", "Custom", new BubbleColorScheme() );
        preference.setValueInfo( choices );
        
        PreferenceTreeDialog.openDialog( model, null );
    }
}```
]

No rush, but it will be a nice enhancement to have.