mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-30 09:47:43 +03:00
Prettify an if-else expression
This commit is contained in:
parent
70684a0254
commit
fbd3ad41db
@ -22,13 +22,10 @@ Rectangle {
|
||||
signal doubleClick(var mouse)
|
||||
signal refresh(bool force)
|
||||
|
||||
color: {
|
||||
if (isSelected) {
|
||||
return palette.highlight
|
||||
} else {
|
||||
return unselectedColor
|
||||
}
|
||||
}
|
||||
color: (isSelected
|
||||
? palette.highlight
|
||||
: unselectedColor
|
||||
)
|
||||
|
||||
Layout.minimumHeight: (
|
||||
10 + issuerLbl.height + codeLbl.height + nameLbl.height
|
||||
|
Loading…
Reference in New Issue
Block a user