blob: 850cc73b589246171a145f3622871ef99b8f23de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
// Copyright (C) 2026 Danilo M. <danix@danix.xyz>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Free Software Foundation.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
import QtQuick
import "../.."
// One row per mode. Adding a mode is one file in the singleton and one row
// here, which is the point of a registry rather than two toggles.
Column {
id: page
spacing: 4
StatusRow {
width: page.width
mode: "dnd"
label: "Do not disturb"
description: "Silences notification popups. Critical ones still appear."
value: Status.dnd
}
Rectangle {
width: page.width
height: 1
color: Qt.alpha(Theme.text, 0.08)
}
StatusRow {
width: page.width
mode: "presentation"
label: "Presentation"
description: "Do not disturb, no screen lock, breaktimer paused."
value: Status.presentation
}
}
|