Intelliprompt scrollbar is not skinned if using metro dark but Windows 11 is set to use light theme

SyntaxEditor for Windows Forms Forum

The latest build of this product (v24.1.1) was released 9 months ago, which was before this thread was created.
Posted 14 days ago by Marc - Micromine
Version: 24.1.1
Platform: .NET 4.8
Environment: Windows 11 (64-bit)
Avatar

I just upgraded to Windows 11 and I noticed that if the SyntaxEditor is using Metro Dark mode, the intelliprompt scrollbar uses the Windows scrollbar. If Windows is set to use light theme for apps the scrollbar is rendered in light mode as well, resulting in a jarring look.

My code:

Program.cs

/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
    // Set the global color scheme
    UIRendererManager.ColorScheme = WindowsColorScheme.MetroDark;
    
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    Application.Run(new Form1());
}

Form1

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        syntaxEditor1.Document.Language.RegisterService(new DemoCompletionProvider());
    }
}

public class DemoCompletionProvider : CompletionProviderBase
{
    public override bool RequestSession(IEditorView view, bool canCommitWithoutPopup)
    {
        var session = new CompletionSession();
        for (var i = 0; i < 10; i++)
            session.Items.Add(new CompletionItem("Test " , null));
        session.Open(view, view.Selection.SnapshotRange);
        return true;
    }
}

By the way, is there a way to attach files to a thread or insert images? I have a sample project and a screenshot.

[Modified 14 days ago]

Comments (1)

Answer - Posted 13 days ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Marc,

Thank you for brining this up.  We revisited this area of the product and have implemented a way for Windows 11 dark themes to be applied to the scrollbars if SyntaxEditor is configured with a dark theme.  Those are native scrollbars that do not support custom themes, so we have to rely on Windows 11 support for dark themes to make it work.  Prior versions of Windows will continue to use the default light theme scrollbars.

This update will be in the next release.

Our forums do not support attaching files.  If you ever need to attach something, you can always email our support address with the attachments and reference the forum post in the email.  Alternatively, links can be posted to external sites that host the files.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.