mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
updated setting name and changed default value to true for show tray
This commit is contained in:
parent
6c9c22a5fb
commit
5fdcf0ecaf
2 changed files with 9 additions and 9 deletions
|
@ -136,17 +136,17 @@ Flickable {
|
|||
Layout.preferredHeight: 18
|
||||
Layout.preferredWidth: parent.width
|
||||
labelTextOn: "Show Emote UI"
|
||||
checked: Settings.getValue("simplifiedUI/showEmoteUI", true)
|
||||
checked: Settings.getValue("simplifiedUI/allowEmoteDrawerExpansion", true)
|
||||
onClicked: {
|
||||
var currentSetting = Settings.getValue("simplifiedUI/showEmoteUI", true);
|
||||
Settings.setValue("simplifiedUI/showEmoteUI", !currentSetting);
|
||||
var currentSetting = Settings.getValue("simplifiedUI/allowEmoteDrawerExpansion", true);
|
||||
Settings.setValue("simplifiedUI/allowEmoteDrawerExpansion", !currentSetting);
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: Settings
|
||||
|
||||
onValueChanged: {
|
||||
if (setting === "simplifiedUI/showEmoteUI") {
|
||||
if (setting === "simplifiedUI/allowEmoteDrawerExpansion") {
|
||||
emoteSwitch.checked = value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ Rectangle {
|
|||
property int expandedWidth: mainEmojiContainer.width + drawerContainer.width
|
||||
// For the below to work, the Repeater's Item's second child must be the individual button's `MouseArea`
|
||||
property int requestedWidth: (
|
||||
root.showEmoteUI && (
|
||||
root.allowEmoteDrawerExpansion && (
|
||||
drawerContainer.keepDrawerExpanded ||
|
||||
emoteIndicatorMouseArea.containsMouse ||
|
||||
emoteButtonsRepeater.itemAt(0).hovered ||
|
||||
|
@ -37,7 +37,7 @@ Rectangle {
|
|||
) ? expandedWidth : originalWidth;
|
||||
readonly property int totalEmojiDurationMS: 7000 // Must match `TOTAL_EMOJI_DURATION_MS` in `simplifiedEmoji.js`
|
||||
readonly property string emoteIconSource: "images/emote_Icon.svg"
|
||||
property bool showEmoteUI: Settings.getValue("simplifiedUI/showEmoteUI", false)
|
||||
property bool allowEmoteDrawerExpansion: Settings.getValue("simplifiedUI/allowEmoteDrawerExpansion", true)
|
||||
|
||||
|
||||
onRequestedWidthChanged: {
|
||||
|
@ -53,8 +53,8 @@ Rectangle {
|
|||
target: Settings
|
||||
|
||||
onValueChanged: {
|
||||
if (setting === "simplifiedUI/showEmoteUI") {
|
||||
root.showEmoteUI = value;
|
||||
if (setting === "simplifiedUI/allowEmoteDrawerExpansion") {
|
||||
root.allowEmoteDrawerExpansion = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -172,7 +172,7 @@ Rectangle {
|
|||
anchors.fill: lockIcon
|
||||
source: lockIcon
|
||||
color: "#ffffff"
|
||||
visible: root.showEmoteUI && drawerContainer.keepDrawerExpanded
|
||||
visible: root.allowEmoteDrawerExpansion && drawerContainer.keepDrawerExpanded
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
|
|
Loading…
Reference in a new issue