Skip to content

Created functional battery component#134

Open
aleksandarknezevic1 wants to merge 5 commits intomasterfrom
VSC688-create-battery-component
Open

Created functional battery component#134
aleksandarknezevic1 wants to merge 5 commits intomasterfrom
VSC688-create-battery-component

Conversation

@aleksandarknezevic1
Copy link

No description provided.

width: 170
height: 60
width: 265
height: 367
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use multiples of 5

width: 35
height: 60
width: 31
height: 25.71
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multiples of 5

Rectangle {
id: batteryGauge
width: 342
height: 23.14
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multiples of 5

radius:15
anchors.bottom: parent.bottom
color: Config.primary
color: Config.valueModerate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

color should correspond with value, ie. very low is red, medium is yellow, nearly full to full is green

Text {
id: batteryLow
width: 37
height: 16.29
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multiples of 5

Text {
id: batteryHigh
width: 74
height: 16.29
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

multiples of 5

property real rawValue: battery.PackStateOfCharge
property real value: rawValue / 2 //Unit Conversion from 0.5% to 1%

Image {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

battery icon and value are not centered in component

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

picture is extremely small and looks grainy on dashboard, replace with larger image

}
}
Item{
width:60
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inconsistent spacing around colon

width:60
height:25
id: batteryImageAndPercentage
anchors{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inconsistent spacing

return Config.valueHigh
}
}
Item{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inconsistent spacing

verticalAlignment: Text.AlignVCenter
font.weight: Font.Medium
font.family: Config.fontStyle
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normalize indentation for this item

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