Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 深色主题下当中性色为非默认值时代码框中的注释着色后对比度过低无法辨认 #2491

Open
heshunme opened this issue May 14, 2024 · 2 comments
Labels
🐛 Bug Something isn't working | 缺陷

Comments

@heshunme
Copy link

💻 系统环境

Windows

📦 部署环境

Docker

🌐 浏览器

Firefox

🐛 问题描述

深色主题下当中性色为非默认值时代码框中的注释着色后对比度过低无法辨认,只有在被选择出现高亮后才看得清
屏幕截图 2024-05-14 161407
屏幕截图 2024-05-14 161457

🚦 期望结果

markdown代码框中的注释着色能够适应菜单中性色(灰度)的设置

📷 复现步骤

  1. 与任意助手对话让其提供一段带注释的代码
  2. 将主题改为深色模式
  3. 将中性色设置为除了第一个以外的其他选项,上面提供的例子分别是第二个和第四个
    以上三步即可复现

📝 补充信息

No response

@heshunme heshunme added the 🐛 Bug Something isn't working | 缺陷 label May 14, 2024
@lobehubbot
Copy link
Member

👀 @heshunme

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@lobehubbot
Copy link
Member

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


💻 System environment

Windows

📦 Deployment environment

Docker

🌐 Browser

Firefox

🐛 Problem description

Under the dark theme, when the neutral color is non-default, the comments in the code box are colored and the contrast is too low to be recognized. They can only be seen clearly after being selected and highlighted.
Screenshot 2024-05-14 161407
Screenshot 2024-05-14 161457

🚦 Expected results

The comment coloring in the markdown code box can adapt to the setting of the neutral color (grayscale) of the menu

📷 Steps to reproduce

  1. Talk to any assistant and ask it to provide a piece of annotated code
  2. Change theme to dark mode
  3. Set the neutral color to an option other than the first, the examples provided above are the second and fourth respectively
    The above three steps can be reproduced

📝 Supplementary information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷
Projects
Status: Roadmap - Chat 1.x
Development

No branches or pull requests

2 participants