github-vscode-theme icon indicating copy to clipboard operation
github-vscode-theme copied to clipboard

[BUG] Dark theme changes color

Open zs-dima opened this issue 2 years ago • 11 comments

This issue had been already described, but wrongly closed https://github.com/primer/github-vscode-theme/issues/183

Reproduced for Dart and Flutter code highlighting.

Turning off Semantic highlighting will disable very useful highlighting features, that make code badly readable.

When using your dark theme with dart or flutter in VSCode, it originally looks like this image

but then after a minute switches to this: image

zs-dima avatar Nov 30 '22 20:11 zs-dima

I can't really reproduce this. 🤔 Here the steps I took:

  1. Open a new file
  2. Paste the below sample code
  3. Safe as dart.dart
  4. Toggle the theme's semanticHighlighting
class _InspectionResultState extends State<InspectionResult> {
  @override
  Widget build(BuildContext context) {
    return Container(
      width: double.infinity,
      child: Card()
    )
  }
}
semanticHighlighting: true semanticHighlighting: false
Screen Shot 2023-01-03 at 11 37 03 Screen Shot 2023-01-03 at 11 37 30

Not noticing a difference. Is there another (dart) extension that needs to be installed?

simurai avatar Jan 03 '23 02:01 simurai

@simurai 0.1. Install Flutter and Dart VSCode plugins 0.2. Install GitHub theme VSCode plugin 0.3. Select GitHub theme for the VSCode

zs-dima avatar Jan 03 '23 06:01 zs-dima

Hmm.. installed Flutter and Dart, but still can't see a difference:

semanticHighlighting: true semanticHighlighting: false
true false

simurai avatar Jan 17 '23 07:01 simurai

@simurai Just tested with the latest 'Visual Studio Code - Insiders' and the latest GitHub theme plugin, Flutter and Dart plugins are the latest as well. Default VSCode theme: df

GitHub theme - recommended - 'GitHub Dark colorblind': gh

zs-dima avatar Jan 17 '23 08:01 zs-dima

'GitHub Dark colorblind':

Hmm... weird. Still can't reproduce with GitHub Dark Colorblind (Beta):

Screen Shot 2023-01-23 at 19 33 09

simurai avatar Jan 23 '23 10:01 simurai

@simurai thanks a lot for the answer. Could I kindly ask you to check it on Windows 11 or Windows 10 ? I reproduced this issue on Windows 11

zs-dima avatar Jan 23 '23 11:01 zs-dima

Hi, I want to share mine as well. Looks like magic/special methods are rendered in a different color. I first thought this comes from "Pylance" extension but disabled it and the problem still exists.

Language: Python OS: Pop!_OS 22.04 LTS x86_64 VSCode: 1.77.0 GitHub Theme: v6.3.4 Theme: "GitHub Dark Dimmed"

Photo from GitHub website:

image

Photo from VSCode:

image

And yes I tried turning off semantic highlighting, but no soccess.

"editor.semanticHighlighting.enabled": false,

Thanks.

amirsoroush avatar Apr 05 '23 15:04 amirsoroush

Any updates are welcome

'GitHub Dark default' theme has the same issue

zs-dima avatar Nov 30 '23 09:11 zs-dima

Facing the same problem with github themes.

hawkkiller avatar Dec 01 '23 13:12 hawkkiller

I mentioned https://github.com/primer/github-vscode-theme/issues/192 issue already - it was reproduced by many users but closed without any fixes.

zs-dima avatar Dec 01 '23 20:12 zs-dima

Guys, I think I found the solution. In my case, vscode updated to the January 2024 version (1.86). I downgraded to version 1.85.1 and the colors were fixed 🎉

rukasudev avatar Feb 02 '24 22:02 rukasudev