Skip to content

Commit ceac6d4

Browse files
authored
Customize notification colors in OverlayManager
Updated OverlayManager to customize notification colors and disable Monet.
1 parent efc9e74 commit ceac6d4

1 file changed

Lines changed: 20 additions & 16 deletions

File tree

app/src/main/java/com/drdisagree/colorblendr/utils/manager/OverlayManager.kt

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ object OverlayManager {
226226
setColor("shade_panel_fg_color", Color.BLACK) // with blur
227227
}
228228
// Notification scrim color A14+
229-
setColor("system_surface_dim_dark", Color.BLACK)
230229
setColor(systemPaletteNames[3][11], Color.BLACK)
231230
setColor(systemPaletteNames[4][11], Color.BLACK)
232231
}
@@ -261,21 +260,26 @@ object OverlayManager {
261260

262261
add(
263262
FabricatedOverlayResource(
264-
FABRICATED_OVERLAY_NAME_SYSTEMUI,
265-
SYSTEMUI_PACKAGE
266-
).also { systemuiOverlay ->
267-
systemuiOverlay.apply {
268-
setBoolean("flag_monet", false)
269-
270-
if (isDarkMode && pitchBlackTheme) {
271-
// QS top part color A16+
272-
setColor("shade_panel_base", Color.BLACK) // with blur
273-
setColor("shade_panel_fallback", Color.BLACK) // no blur
274-
// Notification scrim color A16+
275-
setColor("notification_scrim_base", Color.BLACK) // with blur
276-
setColor("notification_scrim_fallback", Color.BLACK) // no blur
277-
}
278-
}
263+
FABRICATED_OVERLAY_NAME_SYSTEMUI,
264+
SYSTEMUI_PACKAGE
265+
).also { systemuiOverlay ->
266+
systemuiOverlay.apply {
267+
268+
// 🔴 Disable Monet completely
269+
setBoolean("flag_monet", false)
270+
271+
// 🎨 Your custom notification background color
272+
val customNotificationColor = Color.parseColor("#303030")
273+
// ↑ CHANGE THIS to any color you want
274+
275+
// Android 16 Notification Area
276+
setColor("notification_scrim_base", customNotificationColor)
277+
setColor("notification_scrim_fallback", customNotificationColor)
278+
279+
// Extra safety (some A16 builds use this)
280+
setColor("notification_scrim_color", customNotificationColor)
281+
}
282+
}
279283
}
280284
)
281285

0 commit comments

Comments
 (0)