mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-28 09:03:46 +08:00
Removed duplicate font opacity handling
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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,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
|
||||
|
||||
Reference in New Issue
Block a user