mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-21 07:43:50 +02:00
Desktop notification multi switch
This commit is contained in:
@@ -5752,7 +5752,7 @@ speechSynthesis.getVoices();
|
||||
$app.data.hideOnPlayerJoined = configRepository.getBool('VRCX_hideOnPlayerJoined');
|
||||
$app.data.hideDevicesFromFeed = configRepository.getBool('VRCX_hideDevicesFromFeed');
|
||||
$app.data.overlayNotifications = configRepository.getBool('VRCX_overlayNotifications');
|
||||
$app.data.desktopToast = configRepository.getBool('VRCX_desktopToast');
|
||||
$app.data.desktopToast = configRepository.getString('VRCX_desktopToast');
|
||||
$app.data.minimalFeed = configRepository.getBool('VRCX_minimalFeed');
|
||||
$app.data.displayVRCPlusIconsAsAvatar = configRepository.getBool('displayVRCPlusIconsAsAvatar');
|
||||
$app.data.notificationTTS = configRepository.getBool('VRCX_notificationTTS');
|
||||
@@ -5766,7 +5766,7 @@ speechSynthesis.getVoices();
|
||||
configRepository.setBool('VRCX_hideOnPlayerJoined', this.hideOnPlayerJoined);
|
||||
configRepository.setBool('VRCX_hideDevicesFromFeed', this.hideDevicesFromFeed);
|
||||
configRepository.setBool('VRCX_overlayNotifications', this.overlayNotifications);
|
||||
configRepository.setBool('VRCX_desktopToast', this.desktopToast);
|
||||
configRepository.setString('VRCX_desktopToast', this.desktopToast);
|
||||
configRepository.setBool('VRCX_minimalFeed', this.minimalFeed);
|
||||
configRepository.setBool('displayVRCPlusIconsAsAvatar', this.displayVRCPlusIconsAsAvatar);
|
||||
this.updateVRConfigVars();
|
||||
@@ -5831,6 +5831,10 @@ speechSynthesis.getVoices();
|
||||
$app.data.notificationTTSVoice = '0';
|
||||
configRepository.setString('VRCX_notificationTTSVoice', $app.data.notificationTTSVoice);
|
||||
}
|
||||
if (!configRepository.getString('VRCX_desktopToast')) {
|
||||
$app.data.desktopToast = 'Never';
|
||||
configRepository.setString('VRCX_desktopToast', $app.data.desktopToast);
|
||||
}
|
||||
if (!configRepository.getString('sharedFeedFilters')) {
|
||||
var sharedFeedFilters = {
|
||||
noty: {},
|
||||
@@ -5941,6 +5945,26 @@ speechSynthesis.getVoices();
|
||||
labels: [{ name: 'Off' }, { name: 'On' }]
|
||||
}
|
||||
};
|
||||
$app.data.desktopToastToggleSwitchOption = {
|
||||
layout: {
|
||||
backgroundColor: 'white',
|
||||
selectedBackgroundColor: '#409eff',
|
||||
selectedColor: 'white',
|
||||
color: '#409eff',
|
||||
borderColor: '#409eff',
|
||||
fontWeight: 'bold',
|
||||
fontFamily: '"Noto Sans JP", "Noto Sans KR", "Meiryo UI", "Malgun Gothic", "Segoe UI", "sans-serif"'
|
||||
},
|
||||
size: {
|
||||
height: 1.5,
|
||||
width: 22,
|
||||
padding: 0.1,
|
||||
fontSize: 0.75
|
||||
},
|
||||
items: {
|
||||
labels: [{ name: 'Never' }, { name: 'Desktop Mode' }, { name: 'Game Closed' }, { name: 'Always' }]
|
||||
}
|
||||
};
|
||||
|
||||
$app.methods.saveSharedFeedFilters = function () {
|
||||
this.notyFeedFiltersDialog.visible = false;
|
||||
|
||||
Reference in New Issue
Block a user