Warning, /rolisteam/rolisteam/src/libraries/qml_views/InstantMessaging/SideMenu.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick
0002 import QtQuick.Controls
0003 import QtQuick.Layouts
0004 import QtQuick.Dialogs
0005 import Customization
0006 
0007 Drawer {
0008     id: control
0009     width: pane.implicitWidth
0010     height: pane.implicitHeight
0011     interactive: control.opened
0012     property alias nightMode: nightSwitch.checked
0013     property alias sound: sound.checked
0014 
0015     FontDialog{
0016         id: fontDial
0017         currentFont: Theme.imFont
0018         onAccepted: {
0019             Theme.imFont = fontDial.selectedFont
0020         }
0021     }
0022 
0023     Pane {
0024         id: pane
0025         GridLayout {
0026             columns: 2
0027                 Label {
0028                     text: qsTr("Night Mode")
0029                 }
0030                 Switch {
0031                     id: nightSwitch
0032                 }
0033 
0034 
0035 
0036                 Label {
0037                     text: qsTr("Sound Notification")
0038                 }
0039                 Switch {
0040                     id: sound
0041                     checked: true
0042                 }
0043 
0044 
0045             Button {
0046                 Layout.columnSpan: 2
0047                 Layout.alignment: Qt.AlignHCenter
0048                 text: qsTr("Select Font…")
0049                 onClicked: {
0050                     fontDial.open()
0051                 }
0052             }
0053 
0054             Label {
0055                 text: qsTr("Font Family:")
0056             }
0057             Label {
0058                 text: Theme.imFont.family
0059             }
0060             Label {
0061                 text: qsTr("Font size:")
0062             }
0063             SpinBox {
0064                 id: sizeId
0065                 from: 0
0066                 value: Theme.imFont.pixelSize
0067                 to: 200.0
0068                 onValueChanged: {
0069                     if(Theme.imFont.pixelSize !== sizeId.value)
0070                         Theme.imFont.pixelSize = sizeId.value
0071                 }
0072             }
0073         }
0074     }
0075 }