Skip to content

Commit

Permalink
perf: parseColor without underline
Browse files Browse the repository at this point in the history
  • Loading branch information
nopdan authored and WhiredPlanck committed Jan 25, 2024
1 parent a650fcb commit 1a9d5ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/src/main/java/com/osfans/trime/data/theme/Theme.kt
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,10 @@ class Theme private constructor(isDarkMode: Boolean) {
return fullPath
}
}
return ColorUtils.parseColor(value)
// 不包含下划线才进行颜色解析
if (!value.contains("_")) {
return ColorUtils.parseColor(value)
}
}
return null
}
Expand Down

0 comments on commit 1a9d5ca

Please sign in to comment.