Removed duplicate font opacity handling

This commit is contained in:
Prabhaav Pillai
2026-10-21 22:38:59 -04:00
parent f964651e60
commit 51dd8d48ce
3 changed files with 3 additions and 5 deletions
@@ -232,8 +232,8 @@ export const LayoutWidgetPreview = {
<path d="M38 48 H78 M67 37 L78 48 L67 59" />
</g>
</g>
<g v-else-if="widget.kind === 'jetlink_status'" :opacity="(widget.opacity ?? 85) / 100">
<rect :width="widget.width" :height="widget.height" :rx="widget.height / 2" fill="#0f0d17eb" />
<g v-else-if="widget.kind === 'jetlink_status'">
<rect :width="widget.width" :height="widget.height" :rx="widget.height / 2" fill="#0f0d17" :fill-opacity="235 / 255 * (widget.opacity ?? 85) / 100" />
<circle :cx="widget.height / 2" :cy="widget.height / 2" r="9" fill="#46c86e" />
<text :x="widget.height - 6" y="40" font-size="28" font-weight="600" fill="#f5f2fc">Link up</text>
<text :x="widget.height - 6" y="68" font-size="22" fill="#b8b2c8">Jetlink • iPhone</text>
-2
View File
@@ -136,8 +136,6 @@ class OnroadView:
if projection_viewport is not None:
from openpilot.starpilot.ui.onroad_now_playing import NowPlayingWidget
self.now_playing = NowPlayingWidget(fonts)
from openpilot.starpilot.ui.onroad_jetlink import JetlinkStatusWidget
self.jetlink_status = JetlinkStatusWidget(fonts)
self.torque_bar = TorqueBarWidget()
if fonts.profile == Profile.LARGE:
self.unified_speed = UnifiedSpeedWidget(fonts)
+1 -1
View File
@@ -1,4 +1,4 @@
"""Jetlink's Android Auto card; both live rendering and previews use this drawing."""
"""Jetlink status card shared by the native and Android Auto screens."""
import pyray as rl
from openpilot.starpilot.models.jetlink_status import JetlinkStatus