Skip to content
Closed
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 @@ -980,11 +980,9 @@ object SystemUIHooker : YukiBaseHooker() {
private fun ImageView.setCustomNotifyIcon(context: Context, customTriple: Triple<Drawable?, Int, Boolean>, drawable: Drawable, iconColor: Int) {
// 标记为本模块接管(兜底判断/防止重复处理用)
moduleStyledIcons[this] = true
// 背景与图标都交由自绘 Drawable 处理:清空视图层裁切/背景/内边距/着色,并用 FIT_XY 让 Drawable 充满视图
// 背景与图标都交由自绘 Drawable 处理:清空视图层裁切/背景/着色
clipToOutline = false
scaleType = ImageView.ScaleType.FIT_XY
background = null
setPadding(0)
clearColorFilter()
// 图标视图尺寸
val viewSizePx = layoutParams?.width?.takeIf { it > 0 } ?: width.takeIf { it > 0 } ?: 0
Expand Down Expand Up @@ -2541,4 +2539,4 @@ object SystemUIHooker : YukiBaseHooker() {
override fun getIntrinsicWidth() = glyph.intrinsicWidth
override fun getIntrinsicHeight() = glyph.intrinsicHeight
}
}
}
Loading