Skip to content

Conversation

@blammit
Copy link
Contributor

@blammit blammit commented Nov 27, 2025

No description provided.

This avoids a custom implementation for showing Amps vs Watts, as
ElectricalQuantityLabel automatically shows the quantity in Amps/Watts
depending on the user preferences.

Contributes to #2200
This avoids a custom implementation for showing Amps vs Watts, as
ElectricalQuantityLabel automatically shows the quantity in Amps/Watts
depending on the user preferences.

Also remove unused preferredUnit/Quantity from System.qml.

Contributes to #2200
Add a "Mixed" Electrical Power Display option, below "Power (Watts)" and
"Current (Amps)". Instead of preferring solely Watts or Amps, this
option will show the AC-side in Power and the DC-side in Current. Note
this only affects Watts/Amps displays in the Boat, Brief and Overview
pages.

Replace Global.systemSettings.electricalQuantity with
Global.systemSettings.electricalPowerDisplay, which indicates the user-
selected mode.

ElectricalQuantityLabel now has a 'sourceType' property, which should be
set ElectricalQuantity_Source_<Ac|Dc> depending on the data source. It
can also be ElectricalQuantity_Source_Any (the default), which is useful
for cases like the SolarWidget, which may show combined AC/DC sources.

Contributes to #2200
Clean up the ElectricalQuantityLabel API by replacing the acInputMode
property with a sourceType of ElectricalQuantity_Source_AcInputOnly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants