Skip to content

Commit 22ff071

Browse files
committed
parameters ui
1 parent 53907d6 commit 22ff071

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

xbot2_gui/Font/MaterialSymbolNames.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Item {
3636
property string weight: '\ue13d'
3737
property string dashboard: '\ue9b0'
3838
property string netSettings: '\ueb2f'
39+
property string tune: '\ue429'
3940

4041
property FontLoader filledFont: FontLoader {
4142
source: `/Font/materialsymbols/MaterialSymbolsOutlined[opsz,wght,FILL,GRAD@20,200,1,200].otf`

xbot2_gui/Monitoring/Parameters.qml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,15 +111,16 @@ Item {
111111

112112
RowLayout{
113113
width: parent.width
114-
Button {
114+
Label {
115+
text: 'Parameter Tuning'
116+
font.pixelSize: CommonProperties.font.h1
115117
Layout.fillWidth: true
116-
text: 'Refresh'
117-
onClicked: Logic.refresh1()
118118
}
119+
119120
Button {
120-
Layout.fillWidth: true
121-
text: 'Set'
122-
onClicked: Logic.setParams()
121+
Layout.fillWidth: false
122+
text: 'Refresh'
123+
onClicked: Logic.refresh1()
123124
}
124125
}
125126

@@ -136,5 +137,6 @@ Item {
136137

137138
}
138139

140+
Component.onCompleted: Logic.refresh1()
139141

140142
}

xbot2_gui/main.qml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ ApplicationWindow {
162162
}
163163

164164
PageItem {
165-
name: "Playground"
165+
name: "Tuning"
166166
page: "/qt/qml/Monitoring/Parameters.qml"
167-
iconText: MaterialSymbolNames.playground
167+
iconText: MaterialSymbolNames.tune
168168
iconFont: syms.font.family
169169
active: true
170-
visible: false
170+
visible: true
171171
}
172172

173173
PageItem {

0 commit comments

Comments
 (0)