summaryrefslogtreecommitdiff
path: root/main.qml
blob: 7e4d720f0b0083a98b2850334a71117dc90e4e47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// SPDX-License-Identifier: Unlicense

import QtQuick 2.12
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.6

ApplicationWindow {
    visible: true
    width: 1024
    height: 768

    SplitView {
        anchors.fill: parent
        hoverEnabled: true

        handle: Rectangle {
            implicitWidth: sidebar.rightPadding
            implicitHeight: implicitWidth
            color: SplitHandle.pressed ? palette.dark :
                (SplitHandle.hovered ? palette.mid : 'transparent')
        }

        Video {
            id: video
            SplitView.fillWidth: true
            SplitView.minimumWidth: parent.width/2
        }

        Sidebar {
            id: sidebar
            video: video
            padding: 5
            leftPadding: 0
            focus: true
            SplitView.fillHeight: true
            SplitView.preferredWidth: 300
            SplitView.minimumWidth: 200
        }
    }
}