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

QMUIConsole logWithLevel没有背景颜色看不到log #1248

Closed
QionglinFu1024 opened this issue May 25, 2021 · 2 comments
Closed

QMUIConsole logWithLevel没有背景颜色看不到log #1248

QionglinFu1024 opened this issue May 25, 2021 · 2 comments

Comments

@QionglinFu1024
Copy link

QionglinFu1024 commented May 25, 2021

Bug 表现
问题的具体描述
直接调用[QMUIConsole logWithLevel....展示的页面没有背景颜色了

截图
Bug 现场的界面截图,或者 Xcode 控制台的错误信息截图,有问题的代码截图
image

如何重现

  1. 直接调用[QMUIConsole logWithLevel....看不到log。没有默认配置的黑色了

预期的表现
希望跟之前的版本一样,有默认配置的黑色,不然还需要单独去维护一套log的配置太麻烦了
现在还需要这样去配置一套颜色才可以看到
[QMUIConsole appearance].backgroundColor = [UIColor redColor];
[QMUIConsole appearance].textAttributes = @{
NSForegroundColorAttributeName: [UIColor darkGrayColor]
};

其他信息

  • 设备: iPhone11
  • iOS 版本: 14.2
  • Xcode 版本: 12.5
  • QMUI 版本: 4.2.3
@MoLice
Copy link
Collaborator

MoLice commented May 25, 2021

QMUIConsole 里默认就有赋值,QMUI Demo 也没有自己修改 appearance,但 QMUI Demo 也是可以正常显示的,是不是你的业务代码在哪里改掉了默认样式了?
image

@MoLice
Copy link
Collaborator

MoLice commented Aug 10, 2022

已发布 4.5.0 修复该问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants