mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Reduce size of output muted overlay; restore scroll to 0 on settings tab switch
This commit is contained in:
parent
f43c376a6a
commit
f9b51df296
5 changed files with 13 additions and 1 deletions
|
@ -32,6 +32,8 @@ Flickable {
|
|||
onVisibleChanged: {
|
||||
AudioScriptingInterface.devices.input.peakValuesEnabled = visible;
|
||||
if (visible) {
|
||||
root.contentX = 0;
|
||||
root.contentY = -root.topMargin;
|
||||
AudioScriptingInterface.devices.input.peakValuesEnabledChanged.connect(changePeakValuesEnabled);
|
||||
} else {
|
||||
AudioScriptingInterface.devices.input.peakValuesEnabledChanged.disconnect(changePeakValuesEnabled);
|
||||
|
|
|
@ -27,6 +27,13 @@ Flickable {
|
|||
sendNameTagInfo({method: 'handleAvatarNametagMode', avatarNametagMode: root.avatarNametagMode, source: "SettingsApp.qml"});
|
||||
}
|
||||
|
||||
onVisibleChanged: {
|
||||
if (visible) {
|
||||
root.contentX = 0;
|
||||
root.contentY = -root.topMargin;
|
||||
}
|
||||
}
|
||||
|
||||
SimplifiedConstants.SimplifiedConstants {
|
||||
id: simplifiedUI
|
||||
}
|
||||
|
|
|
@ -32,6 +32,8 @@ Flickable {
|
|||
onVisibleChanged: {
|
||||
AudioScriptingInterface.devices.input.peakValuesEnabled = visible;
|
||||
if (visible) {
|
||||
root.contentX = 0;
|
||||
root.contentY = -root.topMargin;
|
||||
AudioScriptingInterface.devices.input.peakValuesEnabledChanged.connect(changePeakValuesEnabled);
|
||||
} else {
|
||||
AudioScriptingInterface.devices.input.peakValuesEnabledChanged.disconnect(changePeakValuesEnabled);
|
||||
|
|
|
@ -170,6 +170,7 @@ QtObject {
|
|||
readonly property string vol_x_2: "\ue015"
|
||||
readonly property string vol_x_3: "\ue016"
|
||||
readonly property string vol_x_4: "\ue017"
|
||||
readonly property string muted: "H"
|
||||
readonly property string pencil: "\ue00d"
|
||||
}
|
||||
|
||||
|
|
|
@ -195,7 +195,7 @@ function maybeDeleteOutputDeviceMutedOverlay() {
|
|||
|
||||
|
||||
var outputDeviceMutedOverlay = false;
|
||||
var OUTPUT_DEVICE_MUTED_OVERLAY_DEFAULT_DIMS_PX = 600;
|
||||
var OUTPUT_DEVICE_MUTED_OVERLAY_DEFAULT_DIMS_PX = 300;
|
||||
var OUTPUT_DEVICE_MUTED_MARGIN_BOTTOM_PX = 20;
|
||||
var OUTPUT_DEVICE_MUTED_MARGIN_LEFT_RIGHT_PX = 20;
|
||||
function updateOutputDeviceMutedOverlay(isMuted) {
|
||||
|
|
Loading…
Reference in a new issue