summaryrefslogtreecommitdiffstats
path: root/examples/demos/mediaplayer/ThemeInfo.qml
blob: f47cadbaea5f1ea3f6bb505e13a898f63a5a5cc8 (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
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

pragma ComponentBehavior: Bound

import QtQuick
import QtQuick.Controls.Fusion
import MediaControls
import Config

Item {
    id: root

    Item {
        anchors.fill: parent

        Column {
            padding: 15
            spacing: 20

            ButtonGroup { id: group }

            CustomRadioButton {
                checked: Config.Theme.Light === Config.activeTheme
                text: qsTr("Light theme")
                ButtonGroup.group: group
                onClicked: Config.activeTheme = Config.Theme.Light
            }

            CustomRadioButton {
                checked: Config.Theme.Dark === Config.activeTheme
                text: qsTr("Dark theme")
                ButtonGroup.group: group
                onClicked: Config.activeTheme = Config.Theme.Dark
            }
        }
    }
}