LogViewerTheme class

  • @Author: chuxiong
  • @Created at: 2026/10/27
  • @Email:
  • @Company: 嘉联支付
  • description 日志查看器视觉常量(仅深色主题,级别配色对标 talker / Logcat 同语义配色) 日志查看器主题:集中管理查看器面板与条目卡片的全部视觉常量。

配色取自设计方案 §4 视觉规格表——级别六色对标行业惯例(talker / Android Logcat 同语义配色,抄规格不搬码);面板仅深色主题(日志 工具惯例,浅色适配不在本期范围)。

条目卡片(LogViewerEntryTile)所用颜色一律取本类,禁止散落魔数。

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

colorOf(LogLevel level) → Color
级别 → 颜色映射(徽章底色 / 消息着色 / 左侧色条共用)。
statusColorOf(int? statusCode) → Color
HTTP 状态码 → 颜色映射(网络卡状态码着色): 2xx→绿、4xx→琥珀、5xx→红、null / 其他(含 3xx)→灰。

Constants

backgroundColor → const Color
面板底色(深色)
cardColor → const Color
条目卡片底色(较面板底色略亮一档,形成卡片层次)
chipColor → const Color
tag 芯片底色
debugColor → const Color
debug 级别颜色(蓝)
errorColor → const Color
error 级别颜色(红)
fatalColor → const Color
fatal 级别颜色(深红,配套卡片左侧色条加粗)
infoColor → const Color
info 级别颜色(绿)
subTextColor → const Color
次要文字颜色(时间 / 耗时 / 分区标签)
textColor → const Color
正文文字颜色
verboseColor → const Color
verbose 级别颜色(灰)
warningColor → const Color
warning 级别颜色(琥珀)