Skip to content

Allow plugins to apply darkmode colors to dialogs using method call or API call? #13574

@BdR76

Description

@BdR76

Description of the Issue

Is it possible to somehow call the autoSubclassAndThemeChildControls function from within a plug-in? afaik there isn't a API call for this. That way the plugins can use the default Notepad++ function to apply darkmode colors uniformly to all dialogs.

Currently most plugins display any dialogs in normal/lightmode colors even when Notepad++ is set to darkmode. I know there is DWS_USEOWNDARKMODE but for simple Settings/About forms when there are no special controls or anything, it would imho be better to just let Notepad++ change these to darkmode.

Steps to Reproduce the Issue

  1. Set Notepad++ to darkmode Settings > Preferences > Dark Mode
  2. See "About" dialog in (almost?) all plugins, the CSV Query parse settings, CSV Lint setting dialogs etc.

csvquery_example_dialog

Expected Behavior

Be able to call the function autoSubclassAndThemeChildControls to stylize any extra dialogs (settings, parameters, about etc) with the default darkmode colors, see mockup below.

notepad_plugin_darkmode

Actual Behavior

When Notepad++ is set to darkmode, some plugin dialogs will display using the normal/lightmode colors.

Debug Information

Tagging @ozone10 for his knowledge about darkmode

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions