Skip to content

Commit

Permalink
Use icon for terrain button instead of "T"
Browse files Browse the repository at this point in the history
Contribution Sponsor: Firestorm (launchfirestorm.com)
  • Loading branch information
gillamkid committed Sep 22, 2024
1 parent b7b7a80 commit 8c69fc1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom-example/qgcresources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
<file alias="SplashScreen">../resources/SplashScreen.png</file>
<file alias="Stop">../resources/Stop.svg</file>
<file alias="takeoff.svg">../resources/takeoff.svg</file>
<file alias="terrain.svg">resources/terrain.svg</file>
<file alias="TrashDelete.svg">../resources/TrashDelete.svg</file>
<file alias="waves.svg">../resources/waves.svg</file>
<file alias="wind-guru.svg">../resources/wind-guru.svg</file>
Expand Down
1 change: 1 addition & 0 deletions qgcresources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
<file alias="SplashScreen">resources/SplashScreen.png</file>
<file alias="Stop">resources/Stop.svg</file>
<file alias="takeoff.svg">resources/takeoff.svg</file>
<file alias="terrain.svg">resources/terrain.svg</file>
<file alias="TrashDelete.svg">resources/TrashDelete.svg</file>
<file alias="waves.svg">resources/waves.svg</file>
<file alias="wind-guru.svg">resources/wind-guru.svg</file>
Expand Down
7 changes: 7 additions & 0 deletions resources/terrain.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/FlightMap/MapScale.qml
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ Item {
anchors.bottom: rightEnd.bottom
anchors.leftMargin: buttonsOnLeft ? 0 : ScreenTools.defaultFontPixelWidth / 2
anchors.left: buttonsOnLeft ? parent.left : rightEnd.right
text: qsTr("T")
leftPadding: topPadding
iconSource: "/res/terrain.svg"
width: height
opacity: 0.75
visible: terrainButtonVisible
Expand Down

0 comments on commit 8c69fc1

Please sign in to comment.