mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 21:42:51 -05:00
sounds: option to override system sound themes
This commit is contained in:
@@ -168,6 +168,7 @@ Singleton {
|
||||
onNotepadLastCustomTransparencyChanged: saveSettings()
|
||||
|
||||
property bool soundsEnabled: true
|
||||
property bool useSystemSoundTheme: false
|
||||
property bool soundNewNotification: true
|
||||
property bool soundVolumeChanged: true
|
||||
property bool soundPluggedIn: true
|
||||
@@ -416,6 +417,7 @@ Singleton {
|
||||
notepadTransparencyOverride = settings.notepadTransparencyOverride !== undefined ? settings.notepadTransparencyOverride : -1
|
||||
notepadLastCustomTransparency = settings.notepadLastCustomTransparency !== undefined ? settings.notepadLastCustomTransparency : 0.95
|
||||
soundsEnabled = settings.soundsEnabled !== undefined ? settings.soundsEnabled : true
|
||||
useSystemSoundTheme = settings.useSystemSoundTheme !== undefined ? settings.useSystemSoundTheme : false
|
||||
soundNewNotification = settings.soundNewNotification !== undefined ? settings.soundNewNotification : true
|
||||
soundVolumeChanged = settings.soundVolumeChanged !== undefined ? settings.soundVolumeChanged : true
|
||||
soundPluggedIn = settings.soundPluggedIn !== undefined ? settings.soundPluggedIn : true
|
||||
@@ -582,6 +584,7 @@ Singleton {
|
||||
"notepadTransparencyOverride": notepadTransparencyOverride,
|
||||
"notepadLastCustomTransparency": notepadLastCustomTransparency,
|
||||
"soundsEnabled": soundsEnabled,
|
||||
"useSystemSoundTheme": useSystemSoundTheme,
|
||||
"soundNewNotification": soundNewNotification,
|
||||
"soundVolumeChanged": soundVolumeChanged,
|
||||
"soundPluggedIn": soundPluggedIn,
|
||||
@@ -677,7 +680,7 @@ Singleton {
|
||||
"fontWeight", "fontScale", "dankBarFontScale", "notepadUseMonospace",
|
||||
"notepadFontFamily", "notepadFontSize", "notepadShowLineNumbers",
|
||||
"notepadTransparencyOverride", "notepadLastCustomTransparency", "soundsEnabled",
|
||||
"soundNewNotification", "soundVolumeChanged", "soundPluggedIn", "gtkThemingEnabled",
|
||||
"useSystemSoundTheme", "soundNewNotification", "soundVolumeChanged", "soundPluggedIn", "gtkThemingEnabled",
|
||||
"qtThemingEnabled", "showDock", "dockAutoHide", "dockGroupByApp",
|
||||
"dockOpenOnOverview", "dockPosition", "dockSpacing", "dockBottomGap",
|
||||
"cornerRadius", "notificationOverlayEnabled", "dankBarAutoHide",
|
||||
@@ -1363,6 +1366,11 @@ Singleton {
|
||||
saveSettings()
|
||||
}
|
||||
|
||||
function setUseSystemSoundTheme(enabled) {
|
||||
useSystemSoundTheme = enabled
|
||||
saveSettings()
|
||||
}
|
||||
|
||||
function setSoundNewNotification(enabled) {
|
||||
soundNewNotification = enabled
|
||||
saveSettings()
|
||||
|
||||
Reference in New Issue
Block a user