Skip to content

Commit

Permalink
Make the scale bar theme friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Dec 4, 2024
1 parent 4da65ee commit 1b0a1a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/qml/ScaleBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ Item {
anchors.horizontalCenter: bar.horizontalCenter
anchors.left: undefined
font: Theme.defaultFont
color: Theme.darkGray
color: Theme.toolButtonBackgroundColor
style: Text.Outline
styleColor: "#CCFFFFFF"
styleColor: Qt.hsla(Theme.toolButtonColor.hslHue, Theme.toolButtonColor.hslSaturation, Theme.toolButtonColor.hslLightness, 0.8)

states: State {
name: "narrow"
Expand All @@ -52,7 +52,7 @@ Item {

ShapePath {
strokeWidth: barLine.strokeWidth + 1.5
strokeColor: "#CCFFFFFF"
strokeColor: Qt.hsla(Theme.toolButtonColor.hslHue, Theme.toolButtonColor.hslSaturation, Theme.toolButtonColor.hslLightness, 0.8)
fillColor: "transparent"
startX: 0
startY: 0
Expand All @@ -74,7 +74,7 @@ Item {
ShapePath {
id: barLine
strokeWidth: scaleBar.lineWidth
strokeColor: "#000000"
strokeColor: Theme.toolButtonBackgroundColor
fillColor: "transparent"
startX: 0
startY: 0
Expand Down

0 comments on commit 1b0a1a2

Please sign in to comment.