Commit 7021a1bc authored by Oleksandr Popel's avatar Oleksandr Popel
Browse files

Add a setting to keep normal notifications always on top

parent b2101b77
......@@ -81,6 +81,11 @@ each event.</para>
<listitem><para>Keep critical notifications, such as your battery is almost empty, always on top. This ensures they will also be visible while watching a fullscreen video or giving a presentation.</para></listitem>
</varlistentry>
<varlistentry>
<term>Normal notifications: <guiicon>Always keep on top</guiicon></term>
<listitem><para>Keep normal notifications, such as messages, always on top. This ensures they will also be visible while watching a fullscreen video or giving a presentation.</para></listitem>
</varlistentry>
<varlistentry>
<term>Low priority notifications: <guiicon>Show popup</guiicon> and <guiicon>Show in history</guiicon></term>
<listitem><para>Whether low priority notifications, such as track changes in your media player, will be shown as popups or in the history, respectively.</para></listitem>
......
......@@ -148,6 +148,23 @@ KCM.SimpleKCM {
Kirigami.FormData.isSection: true
}
QtControls.CheckBox {
Kirigami.FormData.label: i18n("Normal notifications:")
text: i18n("Always keep on top")
checked: kcm.notificationSettings.normalAlwaysOnTop
onClicked: kcm.notificationSettings.normalAlwaysOnTop = checked
KCM.SettingStateBinding {
configObject: kcm.notificationSettings
settingName: "NormalAlwaysOnTop"
extraEnabledConditions: root.notificationsAvailable
}
}
Item {
Kirigami.FormData.isSection: true
}
QtControls.CheckBox {
Kirigami.FormData.label: i18n("Low priority notifications:")
text: i18n("Show popup")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment