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] C++代码显示样式问题 #1404

Closed
kindmesdilabso opened this issue Feb 27, 2024 · 5 comments
Closed

[Bug] C++代码显示样式问题 #1404

kindmesdilabso opened this issue Feb 27, 2024 · 5 comments
Labels
🐛 Bug Something isn't working | 缺陷 Inactive No response in 30 days | 超过 30 天未活跃

Comments

@kindmesdilabso
Copy link

💻 系统环境

Windows

📦 部署环境

Official Preview

🌐 浏览器

Chrome

🐛 问题描述

在深色模式下,C++代码的注释看不清楚
界面配置
image
未选中代码时的代码样式
image
选中后的样式
image

🚦 期望结果

希望这个代码块的风格可以切换,包含一些常见的主题风格样式

📷 复现步骤

  1. 设置
  2. 主题设置
  3. 主题色选倒数第四个
  4. 中性色选第三个
  5. 切换到聊天对话
  6. 复制下面代码并仅添加到对话中
  7. 观察代码块的样式
#include <iostream>
#include <coroutine>

// 定义协程函数
auto coroutine_function() -> std::coroutine_handle<void> {
    co_yield "Hello from coroutine!";
    return nullptr;
}

int main() {
    // 获取协程句柄
    auto handle = coroutine_function();

    // 执行协程
    handle.resume();

    return 0;
}

📝 补充信息

好像上面的代码语言和复制按钮的颜色也变的看不清了
recording

@kindmesdilabso kindmesdilabso added the 🐛 Bug Something isn't working | 缺陷 label Feb 27, 2024
@github-project-automation github-project-automation bot moved this to Roadmap - Chat 1.x in Lobe Chat Routine Feb 27, 2024
@kindmesdilabso kindmesdilabso changed the title [Bug] 代码样式问题 [Bug] C++代码样式问题 Feb 27, 2024
@kindmesdilabso kindmesdilabso changed the title [Bug] C++代码样式问题 [Bug] C++代码显示样式问题 Feb 27, 2024
@lobehubbot lobehubbot added the Inactive No response in 30 days | 超过 30 天未活跃 label Mar 29, 2024
@kindmesdilabso
Copy link
Author

尝试了一下,目前最新版本还是这样,希望代码块的代码样式,字体可以单独调整

@lobehubbot
Copy link
Member

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


I tried it, and the latest version is still like this. I hope that the code style and font of the code block can be adjusted individually.

@arvinxx
Copy link
Contributor

arvinxx commented Sep 23, 2024

#3087 重复,后续一并考虑允许自定义高亮主题

@arvinxx arvinxx closed this as completed Sep 23, 2024
@github-project-automation github-project-automation bot moved this from Roadmap - Chat 1.x to Done in Lobe Chat Routine Sep 23, 2024
@lobehubbot
Copy link
Member

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


Duplicate with #3087, we will consider allowing custom highlight themes in the future.

@lobehubbot
Copy link
Member

@kindmesdilabso

This issue is closed, If you have any questions, you can comment and reply.
此问题已经关闭。如果您有任何问题,可以留言并回复。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working | 缺陷 Inactive No response in 30 days | 超过 30 天未活跃
Projects
Archived in project
Development

No branches or pull requests

3 participants