Skip to content

Commit 7762d4b

Browse files
committed
#187 Tweak new track appearance (mainly darken the colour)
1 parent 46ac461 commit 7762d4b

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/prototype_ui/main.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ def __init__(self):
6969
self._current_track = self._tracks["arctic_pro_cw"]
7070
self._current_track.configure_track_canvas(self.canvas)
7171

72-
self._current_track.draw_track_edges(self.canvas, QColor("dimGray"))
73-
self._current_track.draw_waypoints(self.canvas, QColor("dimGray"), 2, 8)
74-
self._current_track.draw_section_highlight(self.canvas, QColor("dimGray"), 0, 20)
75-
self._current_track.draw_starting_line(self.canvas, QColor("dimGray"))
76-
self._current_track.draw_sector_dividers(self.canvas, QColor("dimGray"))
77-
self._current_track.draw_waypoint_labels(self.canvas, QColor("dimGray"), 9)
72+
track_grey = QColor(75, 75, 75)
73+
self._current_track.draw_track_edges(self.canvas, track_grey)
74+
self._current_track.draw_waypoints(self.canvas, track_grey, 2, 8)
75+
self._current_track.draw_section_highlight(self.canvas, track_grey, 0, 20)
76+
self._current_track.draw_starting_line(self.canvas, track_grey)
77+
self._current_track.draw_sector_dividers(self.canvas, track_grey)
78+
self._current_track.draw_waypoint_labels(self.canvas, track_grey, 9)
7879

7980
def set_busy_cursor(self):
8081
self.setCursor(Qt.CursorShape.WaitCursor)

src/tracks/track.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ def draw_track_edges(self, track_canvas: TrackAnalysisCanvas, colour: QColor):
122122
previous_right = self._drawing_points[-1].right
123123

124124
for p in self._drawing_points:
125-
track_canvas.add_fixed_shape(Line(previous_left, p.left, 2, colour))
125+
track_canvas.add_fixed_shape(Line(previous_left, p.left, 3, colour))
126126
previous_left = p.left
127-
track_canvas.add_fixed_shape(Line(previous_right, p.right, 2, colour))
127+
track_canvas.add_fixed_shape(Line(previous_right, p.right, 3, colour))
128128
previous_right = p.right
129129

130130
def draw_section_highlight(self, track_canvas: TrackAnalysisCanvas, colour: QColor, start: int, finish: int):

0 commit comments

Comments
 (0)