mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Transient DND Mode
This commit is contained in:
parent
4f36b69abf
commit
2ce6a3ae96
5 changed files with 83 additions and 16 deletions
|
|
@ -2056,6 +2056,7 @@ struct LiveActivitiesSettings: View {
|
|||
|
||||
@Default(.enableScreenRecordingDetection) var enableScreenRecordingDetection
|
||||
@Default(.enableDoNotDisturbDetection) var enableDoNotDisturbDetection
|
||||
@Default(.focusIndicatorNonPersistent) var focusIndicatorNonPersistent
|
||||
|
||||
private func highlightID(_ title: String) -> String {
|
||||
SettingsTab.liveActivities.highlightID(for: title)
|
||||
|
|
@ -2104,9 +2105,15 @@ struct LiveActivitiesSettings: View {
|
|||
.settingsHighlight(id: highlightID("Show Focus Indicator"))
|
||||
|
||||
Defaults.Toggle("Show Focus Label", key: .showDoNotDisturbLabel)
|
||||
.disabled(!enableDoNotDisturbDetection)
|
||||
.disabled(!enableDoNotDisturbDetection || focusIndicatorNonPersistent)
|
||||
.help(focusIndicatorNonPersistent ? "Labels are forced to compact on/off text while brief toast mode is enabled." : "Show the active Focus name inside the indicator.")
|
||||
.settingsHighlight(id: highlightID("Show Focus Label"))
|
||||
|
||||
Defaults.Toggle("Show Focus as brief toast", key: .focusIndicatorNonPersistent)
|
||||
.disabled(!enableDoNotDisturbDetection)
|
||||
.settingsHighlight(id: highlightID("Show Focus as brief toast"))
|
||||
.help("When enabled, Focus appears briefly (on/off) and then collapses instead of staying visible.")
|
||||
|
||||
if doNotDisturbManager.isMonitoring {
|
||||
HStack {
|
||||
Text("Focus Status")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue