Skip to content

Commit

Permalink
GimbalIndicator.qml: fix buttons after 45b0c09
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidsastresas authored and julianoes committed Nov 6, 2024
1 parent 6ccfe41 commit a022c9c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/UI/toolbar/GimbalIndicator.qml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Item {
property var margins: ScreenTools.defaultFontPixelWidth
property var panelRadius: ScreenTools.defaultFontPixelWidth * 0.5
property var buttonHeight: height * 1.6
property var squareButtonPadding: ScreenTools.defaultFontPixelWidth
property var separatorHeight: buttonHeight * 0.9
property var settingsPanelVisible: false

Expand Down Expand Up @@ -100,6 +101,8 @@ Item {
visible: modelData.visible
pointSize: ScreenTools.smallFontPointSize
backRadius: panelRadius * 0.5
leftPadding: squareButtonPadding
rightPadding: squareButtonPadding
onClicked: {
var callback = callbackList.find(function(item) {
return item.hasOwnProperty(modelData.id);
Expand Down Expand Up @@ -226,6 +229,8 @@ Item {
backRadius: panelRadius * 0.5
checkable: true
checked: _root.settingsPanelVisible
leftPadding: squareButtonPadding
rightPadding: squareButtonPadding
onCheckedChanged: {
if (checked !== _root.settingsPanelVisible) {
_root.settingsPanelVisible = checked
Expand Down

0 comments on commit a022c9c

Please sign in to comment.