Added Private Icons

This commit is contained in:
Hariharan Mudaliar 2025-11-14 11:22:16 +05:30
commit 45df2bce99
4 changed files with 40 additions and 8 deletions

View file

@ -110,13 +110,13 @@ struct DoNotDisturbLiveActivity: View {
}
}
private var currentIconName: String {
private var currentIcon: Image {
if manager.isDoNotDisturbActive {
return focusMode.sfSymbol
return focusMode.activeIcon
} else if showInactiveIcon {
return focusMode.inactiveSymbol
return Image(systemName: focusMode.inactiveSymbol)
} else {
return focusMode.sfSymbol
return focusMode.activeIcon
}
}
@ -136,7 +136,7 @@ struct DoNotDisturbLiveActivity: View {
Color.clear
.overlay(alignment: .center) {
if iconWingWidth > 0 {
Image(systemName: currentIconName)
currentIcon
.font(.system(size: 13, weight: .semibold))
.foregroundColor(currentIconColor)
.contentTransition(.opacity)

View file

@ -14,7 +14,7 @@ struct FocusIndicator: View {
Capsule()
.fill(Color.black)
.overlay {
Image(systemName: focusSymbol)
focusIcon
.font(.system(size: 12, weight: .semibold))
.foregroundStyle(accentColor)
.frame(width: 24, height: 24)
@ -30,8 +30,8 @@ struct FocusIndicator: View {
)
}
private var focusSymbol: String {
focusMode.sfSymbol
private var focusIcon: Image {
focusMode.activeIcon
}
private var accentColor: Color {