Skip to content

[BUG] URL link controls in Plugins are not being handled for dark mode #16537

@shriprem

Description

@shriprem

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

SysLink controls in plugins are rendered in the same OS default color across dark and light modes.

Steps To Reproduce

  1. Start with a plugin that utilizes the dark mode rendering support from Notepad++.
  2. Add a SysLink control either in the plugin's dock panel or one of its static dialog windows (such as an 'About' dialog seen in the screenshots below).
  3. View and compare the SysLink rendering between dark and light modes in Notepad++.

Current Behavior

In the light mode, the About dialog will be correctly rendered using the OS default hyperlink color:

Image

However, in the dark mode also, the About dialog will be incorrectly rendered using the OS default hyperlink color:

Image

Expected Behavior

The SysLink control should be rendered in dark mode using the 'Link' color.

For example, with Notepad++'s built-in 'Black' theme, the About dialog should be rendered with the yellow color (the preset color for the 'Link' in the 'Black' theme):

Image

With Notepad++'s 'Customized' theme, the About dialog should be rendered with the whatever color is set by the user for the 'Link':

Image

Debug Information

Notepad++ v8.8.1   (64-bit)
Build time : May  3 2025 - 18:41:09
Scintilla/Lexilla included : 5.5.6/5.4.4
Boost Regex included : 1_85
Path : C:\Portable\Notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
Periodic Backup : ON
Placeholders : OFF
Scintilla Rendering Mode : SC_TECHNOLOGY_DIRECTWRITE (1)
Multi-instance Mode : monoInst
File Status Auto-Detection : cdEnabledNew (for current file/tab only) + cdAutoUpdate
Dark Mode : OFF
OS Name : Windows 11 Pro (64-bit)
OS Version : 24H2
OS Build : 26100.3915
Current ANSI codepage : 1252
Plugins : 
    ComparePlugin (2.0.2)
    CSVLint (0.4.6.8)
    CsvQuery (1.2.9)
    Explorer (1.9.9)
    FWDataViz (2.6.4)
    GotoLineCol (2.4.4)
    HexEditor (0.9.12)
    MarkdownViewerPlusPlus (0.8.2)
    mimeTools (3.1)
    NppConverter (4.6)
    NppExec (0.8.8)
    NppExport (0.4)
    NPPJSONViewer (2.1.1)
    NppMarkdownPanel (0.7.3)
    NppMenuSearch (0.9.6)
    NppOpenAI (0.4.2.1)
    NppPluginTemplate (4.4)
    NppToolBucket (1.10.6622.41516)
    PreviewHTML (1.3.3.2)
    PythonScript (2.1)
    StayAwake_NPP (1.0.0.2)
    SurroundSelection (1.4.1)
    XBrackets (1.3.1)
    _CustomizeToolbar (5.3)

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    dark modeDark mode related issues, fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions