mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Added Private Icons
This commit is contained in:
parent
5b081ec8a7
commit
45df2bce99
4 changed files with 40 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue