Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -964,8 +964,10 @@ object SystemUIHooker : YukiBaseHooker() {

/** 将图标的背景和着色交给模块的自绘 Drawable */
private fun ImageView.setCustomNotifyIcon(context: Context, customTriple: Triple<Drawable?, Int, Boolean>, drawable: Drawable, iconColor: Int) {
// 标记为本模块接管(兜底判断/防止重复处理用)
moduleStyledIcons[this] = true
if (!isUpperOfColorOS17) {
// 标记为本模块接管(兜底判断/防止重复处理用)
moduleStyledIcons[this] = true
}
// 背景与图标都交由自绘 Drawable 处理:清空视图层裁切/背景/内边距/着色,并用 FIT_XY 让 Drawable 充满视图
clipToOutline = false
scaleType = ImageView.ScaleType.FIT_XY
Expand Down Expand Up @@ -2494,4 +2496,4 @@ object SystemUIHooker : YukiBaseHooker() {
override fun getIntrinsicWidth() = glyph.intrinsicWidth
override fun getIntrinsicHeight() = glyph.intrinsicHeight
}
}
}
Loading