mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-10-23 03:26:59 +09:00
* refactor: focus controller refactoring * feat: update to new design system * feat: update to new desing system * chore: bump version
27 lines
525 B
QML
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()
|
|
}
|
|
}
|