Fix visual bug on windows, avoid multiple rehighlight with dark theme