// // Dev.qml // // Created by Zach Fox on 2019-06-11 // Copyright 2019 High Fidelity, Inc. // Copyright 2024 Overte e.V. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // import QtQuick 2.10 import QtQuick.Controls 2.3 import "../../simplifiedConstants" as SimplifiedConstants import "../../simplifiedControls" as SimplifiedControls import stylesUit 1.0 as HifiStylesUit import QtQuick.Layouts 1.3 Flickable { id: root contentWidth: parent.width contentHeight: devColumnLayout.height clip: true onVisibleChanged: { if (visible) { root.contentX = 0; root.contentY = 0; } } SimplifiedConstants.SimplifiedConstants { id: simplifiedUI } Image { id: accent source: "../images/accent3.svg" anchors.left: parent.left anchors.top: parent.top width: 83 height: 156 transform: Scale { xScale: -1 origin.x: accent.width / 2 origin.y: accent.height / 2 } } ColumnLayout { id: devColumnLayout anchors.left: parent.left anchors.leftMargin: 26 anchors.right: parent.right anchors.rightMargin: 26 anchors.top: parent.top spacing: simplifiedUI.margins.settings.spacingBetweenSettings ColumnLayout { id: uiControlsContainer Layout.preferredWidth: parent.width Layout.topMargin: 24 Layout.bottomMargin: 24 spacing: 0 HifiStylesUit.FiraSansSemiBold { id: uiControlsTitle text: "User Interface" Layout.preferredWidth: parent.width height: paintedHeight size: 22 color: simplifiedUI.colors.text.white } HifiStylesUit.FiraSansRegular { id: uiControlsSubtitle text: "You'll have to restart Interface after changing either of these settings. If you don't get any Toolbar apps back after restarting, run defaultScripts.js manually." Layout.preferredWidth: parent.width height: paintedHeight size: 16 color: simplifiedUI.colors.text.white wrapMode: Text.Wrap } ColumnLayout { id: uiControlsSwitchGroup Layout.topMargin: simplifiedUI.margins.settings.settingsGroupTopMargin SimplifiedControls.Switch { id: keepMenusSwitch width: parent.width height: 18 labelTextOn: "Keep Old Menus (File, Edit, etc)" checked: Settings.getValue("simplifiedUI/keepMenus", true); onClicked: { Settings.setValue("simplifiedUI/keepMenus", !Settings.getValue("simplifiedUI/keepMenus", true)); } } SimplifiedControls.Switch { id: keepOldUIAndScriptsSwitch width: parent.width height: 18 labelTextOn: "Keep Old UI and Scripts" checked: Settings.getValue("simplifiedUI/keepExistingUIAndScripts", false); onClicked: { Settings.setValue("simplifiedUI/keepExistingUIAndScripts", !Settings.getValue("simplifiedUI/keepExistingUIAndScripts", false)); } } } } } }