Files
amnezia-client/client/ui/qml/Components/CountryListItem.qml
T
vkamn 11355e1de0 feat: new design system (#3280)
* refactor: focus controller refactoring

* feat: update to new design system

* feat: update to new desing system

* chore: bump version
2026-10-14 11:13:36 +08:00

27 lines
525 B
QML

import QtQuick
import Style 1.0
import "../Controls2"
ListItemType {
id: root
property bool favorite: false
property string countryFlagCode
signal favoriteToggled()
leadingSlotWidth: 24
icon.source: root.countryFlagCode !== "" ? "qrc:/countriesFlags/images/flagKit/" + root.countryFlagCode + ".svg" : ""
icon.width: 21
icon.height: 15
icon.color: AmneziaStyle.color.transparent
FavoriteButton {
favorite: root.favorite
onClicked: root.favoriteToggled()
}
}