Skip to content

Commit

Permalink
Make traffic label smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Kebekus committed Mar 10, 2021
1 parent ad99b2d commit 31ee30a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ option(BUILD_DOC "Build developer documentation" OFF)
# Project data
#

project(enroute VERSION 2.4.5)
project(enroute VERSION 2.4.6)
set(APP_ID de.akaflieg_freiburg.enroute)
math(EXPR PROJECT_VERSION_CODE 10000*${PROJECT_VERSION_MAJOR}+100*${PROJECT_VERSION_MINOR}+${PROJECT_VERSION_PATCH})
add_compile_definitions(PROJECT_VERSION="${PROJECT_VERSION}")
Expand Down
3 changes: 3 additions & 0 deletions src/qml/items/TrafficLabel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ MapQuickItem {

text: trafficInfo.description

font.pixelSize: 0.8*Qt.application.font.pixelSize

leftInset: -4
rightInset: -4
bottomInset: -1
Expand All @@ -56,6 +58,7 @@ MapQuickItem {
border.color: "black"
border.width: 1
color: Qt.lighter(trafficInfo.color, 1.9)

Behavior on color {
ColorAnimation { duration: 400 }
enabled: trafficInfo.animate
Expand Down

0 comments on commit 31ee30a

Please sign in to comment.