mirror of
https://github.com/monero-project/monero-gui
synced 2024-11-16 14:55:33 +01:00
account/receive: highlight background and text of selected item
This commit is contained in:
parent
cb1f3ad0ce
commit
1373e709d6
@ -190,7 +190,7 @@ Rectangle {
|
|||||||
height: subaddressAccountListRow.subaddressAccountListItemHeight
|
height: subaddressAccountListRow.subaddressAccountListItemHeight
|
||||||
width: parent ? parent.width : undefined
|
width: parent ? parent.width : undefined
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
color: "transparent"
|
color: itemMouseArea.containsMouse || index === currentAccountIndex ? MoneroComponents.Style.titleBarButtonHoverColor : "transparent"
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
color: MoneroComponents.Style.appWindowBorderColor
|
color: MoneroComponents.Style.appWindowBorderColor
|
||||||
@ -226,7 +226,7 @@ Rectangle {
|
|||||||
|
|
||||||
MoneroComponents.Label {
|
MoneroComponents.Label {
|
||||||
id: nameLabel
|
id: nameLabel
|
||||||
color: MoneroComponents.Style.dimmedFontColor
|
color: index === currentAccountIndex ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: idLabel.right
|
anchors.left: idLabel.right
|
||||||
anchors.leftMargin: 6
|
anchors.leftMargin: 6
|
||||||
@ -276,11 +276,10 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
id: itemMouseArea
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onEntered: tableItem2.color = MoneroComponents.Style.titleBarButtonHoverColor
|
|
||||||
onExited: tableItem2.color = "transparent"
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
appWindow.currentWallet.switchSubaddressAccount(index);
|
appWindow.currentWallet.switchSubaddressAccount(index);
|
||||||
if (selectAndSend)
|
if (selectAndSend)
|
||||||
|
@ -107,7 +107,7 @@ Rectangle {
|
|||||||
height: subaddressListRow.subaddressListItemHeight
|
height: subaddressListRow.subaddressListItemHeight
|
||||||
width: parent ? parent.width : undefined
|
width: parent ? parent.width : undefined
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
color: "transparent"
|
color: itemMouseArea.containsMouse || index === appWindow.current_subaddress_table_index ? MoneroComponents.Style.titleBarButtonHoverColor : "transparent"
|
||||||
|
|
||||||
Rectangle{
|
Rectangle{
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
@ -143,7 +143,7 @@ Rectangle {
|
|||||||
|
|
||||||
MoneroComponents.Label {
|
MoneroComponents.Label {
|
||||||
id: nameLabel
|
id: nameLabel
|
||||||
color: MoneroComponents.Style.dimmedFontColor
|
color: index === appWindow.current_subaddress_table_index ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: idLabel.right
|
anchors.left: idLabel.right
|
||||||
anchors.leftMargin: 6
|
anchors.leftMargin: 6
|
||||||
@ -167,11 +167,10 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
id: itemMouseArea
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onEntered: tableItem2.color = MoneroComponents.Style.titleBarButtonHoverColor
|
|
||||||
onExited: tableItem2.color = "transparent"
|
|
||||||
onClicked: subaddressListView.currentIndex = index;
|
onClicked: subaddressListView.currentIndex = index;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user