blob: 1310da45f63dc62db80814f21e2d13bc945e145c (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0
import QtQuick
import QtQuick.Controls
import StudioControls 1.0 as StudioControls
import StudioTheme 1.0 as StudioTheme
import "../toolbar"
import ToolBar 1.0
Item {
id: toolbarContainer
height: 41
width: 4048
ToolBarBackend {
id: backend
}
Rectangle {
color: StudioTheme.Values.themeStatusbarBackground
anchors.fill: parent
Row {
anchors.fill: parent
anchors.topMargin: 3
anchors.leftMargin: 4
spacing: 29
ToolbarButton {
id: settingButton
style: StudioTheme.Values.statusbarButtonStyle
buttonIcon: StudioTheme.Constants.settings_medium
onClicked: backend.triggerProjectSettings()
enabled: backend.isInDesignMode || (backend.isInEditMode && backend.projectOpened)
}
Text {
height: StudioTheme.Values.statusbarButtonStyle.controlSize.height
color: StudioTheme.Values.themeTextColor
text: qsTr("Kit")
font.pixelSize: StudioTheme.Values.baseFontSize
horizontalAlignment: Text.AlignRight
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
StudioControls.TopLevelComboBox {
id: kits
style: StudioTheme.Values.statusbarControlStyle
width: 160
model: backend.kits
onActivated: backend.setCurrentKit(kits.currentIndex)
openUpwards: true
enabled: (backend.isInDesignMode || (backend.isInEditMode && backend.projectOpened)) && backend.isQt6
property int kitIndex: backend.currentKit
onKitIndexChanged: kits.currentIndex = backend.currentKit
}
Text {
height: StudioTheme.Values.statusbarButtonStyle.controlSize.height
color: StudioTheme.Values.themeTextColor
text: qsTr("Style")
font.pixelSize: StudioTheme.Values.baseFontSize
horizontalAlignment: Text.AlignRight
verticalAlignment: Text.AlignVCenter
elide: Text.ElideRight
}
StudioControls.TopLevelComboBox {
id: styles
style: StudioTheme.Values.statusbarControlStyle
width: 160
model: backend.styles
onActivated: backend.setCurrentStyle(styles.currentIndex)
openUpwards: true
enabled: backend.isInDesignMode
currentIndex: backend.currentStyle
}
}
}
}
|