-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.qml
More file actions
67 lines (57 loc) · 1.92 KB
/
Copy pathmain.qml
File metadata and controls
67 lines (57 loc) · 1.92 KB
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
import QtQuick 2.15
import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
import "qml"
ApplicationWindow {
width: 1200
height: 820
visible: true
title: qsTr("unixSockApp")
color: themeManager.windowBackground
palette.window: themeManager.windowBackground
palette.base: themeManager.panelBackground
palette.button: themeManager.panelBackground
palette.windowText: themeManager.textPrimary
palette.text: themeManager.textPrimary
palette.buttonText: themeManager.textPrimary
palette.highlight: themeManager.accentColor
palette.highlightedText: "#FFFFFF"
ColumnLayout {
anchors.fill: parent
RowLayout {
Layout.fillWidth: true
spacing: 8
TabBar {
id: rootTabs
Layout.fillWidth: true
TabButton { text: "Client" }
TabButton { text: "Server" }
}
ToolButton {
text: themeManager.darkMode ? "\u2600" : "\u263E"
font.pixelSize: 18
hoverEnabled: true
ToolTip.visible: hovered
ToolTip.text: themeManager.darkMode ? "Переключить на светлую тему" : "Переключить на тёмную тему"
onClicked: themeManager.toggleTheme()
}
}
StackLayout {
Layout.fillWidth: true
Layout.fillHeight: true
currentIndex: rootTabs.currentIndex
ClientTab {
Layout.fillWidth: true
Layout.fillHeight: true
tabsModel: clientTabsModel
historyModel: requestHistoryModel
historyProxyModel: requestHistoryProxyModel
}
ServerTab {
Layout.fillWidth: true
Layout.fillHeight: true
socketServer: unixSocketServer
}
}
}
}