Community
    • Login

    Question about the Dark Mode's dark scrollbars and toolbars

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    7 Posts 3 Posters 1.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Vitalii DovganV
      Vitalii Dovgan
      last edited by

      The Dark Mode in Notepad++ makes both the background and the scrollbars dark, as on the screenshot.
      alt text

      The dark background is applied to the title bars of Notepad++‘es plugins and to some scrollbars in plugins’ windows.
      However, it is not applied to some plugins’ toolbars and to a scrollbar of a RichEdit control as can be seen on the another screenshot.
      alt text

      Is there some specific code that needs to be added to plugins to fully support the Dark Mode?

      PeterJonesP rdipardoR 2 Replies Last reply Reply Quote 1
      • PeterJonesP
        PeterJones @Vitalii Dovgan
        last edited by

        @vitalii-dovgan ,

        Well, as of v8.4.1, there is the new messages NPPM_ISDARKMODEENABLED and NPPM_GETDARKMODECOLORS (which will eventually be documented at the usermanual, the next time it’s published)… but I don’t know if that’s sufficient for you to then change the colors of the toolbar yourself. (And, of course, it won’t work before v8.4.1)

        PeterJonesP 1 Reply Last reply Reply Quote 1
        • rdipardoR
          rdipardo @Vitalii Dovgan
          last edited by

          @vitalii-dovgan,
          watch this space: https://github.com/notepad-plus-plus/notepad-plus-plus/pull/11711

          Vitalii DovganV 1 Reply Last reply Reply Quote 3
          • Vitalii DovganV
            Vitalii Dovgan @rdipardo
            last edited by

            @rdipardo
            Wow, this is an impressive pull request! It definitely shows that the Dark Mode is not so easy to implement!

            1 Reply Last reply Reply Quote 2
            • PeterJonesP
              PeterJones @PeterJones
              last edited by

              @peterjones said in Question about the Dark Mode's dark scrollbars and toolbars:

              which will eventually be documented at the usermanual, the next time it’s published)

              It has been published:

              • NPPM_ISDARKMODEENABLED
              • NPPM_GETDARKMODECOLORS
              Vitalii DovganV 1 Reply Last reply Reply Quote 1
              • Vitalii DovganV
                Vitalii Dovgan @PeterJones
                last edited by

                Since Notepad++ 8.4.4 enhanced Dark Mode, the plugins’ docked dialogs seem to stop receiving the WM_CTLCOLOREDIT message. Is it something expected? If so, what is the alternative way of providing a custom colors for EDIT controls?

                rdipardoR 1 Reply Last reply Reply Quote 1
                • rdipardoR
                  rdipardo @Vitalii Dovgan
                  last edited by

                  Possibly related: Plugin rendered wrong since v8.4.3

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors