fix(Wallet): unbreak the All Accounts bg color

- seems like on Windows, an unstyled plain `Button` uses the native
control now; use our own StatusFlatButton

Fixes #21202
This commit is contained in:
Lukáš Tinkl
2026-06-16 14:22:16 -04:00
committed by Jonathan Rainville
parent 01fcea6947
commit 571f818dc5
4 changed files with 6 additions and 9 deletions
+2 -2
View File
@@ -1244,7 +1244,7 @@ mainWallet_Saved_Addresses_Button = {"container": statusDesktop_mainWindow, "obj
walletAccounts_StatusListView = {"container": statusDesktop_mainWindow, "objectName": "walletAccountsListView",
"type": "StatusListView", "visible": True}
mainWallet_All_Accounts_Button = {"container": walletAccounts_StatusListView, "objectName": "allAccountsBtn",
"type": "Button", "visible": True}
"type": "StatusFlatButton", "visible": True}
mainWallet_Add_Account_Button = {"container": statusDesktop_mainWindow, "objectName": "addAccountButton",
"type": "StatusRoundButton", "visible": True}
walletAccount_StatusListItem = {"container": walletAccounts_StatusListView,
@@ -1344,4 +1344,4 @@ marketScreen = {"container": statusDesktop_mainWindow, "objectName": "marketLayo
marketScreenTokensList = {"container": marketScreen, "objectName": "tokensList", "type": "StatusListView", "visible": True}
marketScreenSwapButton = {"container": marketScreen, "objectName": "swapButton", "type": "StatusButton", "visible": True}
marketScreenHeading = {"container": marketScreen, "objectName": "heading", "type": "StatusBaseText", "visible": True}
marketScreenToken = {"container": marketScreen, "type": "MarketTokenDelegate", "unnamed": 1, "visible": True}
marketScreenToken = {"container": marketScreen, "type": "MarketTokenDelegate", "unnamed": 1, "visible": True}
+2 -2
View File
@@ -8,7 +8,7 @@ mainWallet_LeftTab = {"container": mainWindow_WalletLayout, "objectName": "walle
mainWallet_Saved_Addresses_Button = { "container": mainWallet_LeftTab, "objectName": "savedAddressesBtn", "type": "StatusFlatButton", "visible": True}
walletAccounts_StatusListView = {"container": mainWallet_LeftTab, "objectName": "walletAccountsListView", "type": "StatusListView", "visible": True}
mainWallet_All_Accounts_Button = {"container": walletAccounts_StatusListView, "objectName": "allAccountsBtn", "type": "Button", "visible": True}
mainWallet_All_Accounts_Button = {"container": walletAccounts_StatusListView, "objectName": "allAccountsBtn", "type": "StatusFlatButton", "visible": True}
mainWallet_Add_Account_Button = {"container": mainWallet_LeftTab, "objectName": "addAccountButton", "type": "StatusRoundButton", "visible": True}
walletAccount_StatusListItem = {"container": walletAccounts_StatusListView, "objectName": "walletAccountListItem", "type": "StatusListItem", "visible": True}
mainWallet_All_Accounts_Balance = {"container": mainWallet_All_Accounts_Button, "objectName": "walletLeftListAmountValue", "type": "StatusTextWithLoadingState", "visible": True}
@@ -79,4 +79,4 @@ qrCodeImage_Image = {"container": statusDesktop_mainWindow_overlay, "objectName"
"""Remove saved address popup"""
removeSavedAddressPopup = {"container": statusDesktop_mainWindow_overlay, "objectName": "RemoveSavedAddressPopup", "type": "PopupItem", "visible": True}
removeSavedAddressButton = {"container": statusDesktop_mainWindow_overlay, "objectName": "RemoveSavedAddressPopup-ConfirmButton", "type": "StatusButton", "visible": True}
cancelRemovalButton = {"container": statusDesktop_mainWindow_overlay, "objectName": "RemoveSavedAddressPopup-CancelButton", "type": "StatusFlatButton", "visible": True}
cancelRemovalButton = {"container": statusDesktop_mainWindow_overlay, "objectName": "RemoveSavedAddressPopup-CancelButton", "type": "StatusFlatButton", "visible": True}
@@ -11,7 +11,7 @@ walletAccounts_StatusListView = {"container": statusDesktop_mainWindow, "objectN
walletAccounts_WalletAccountItem_Placeholder = {"container": walletAccounts_StatusListView, "objectName": "walletAccount-%NAME%", "type": "StatusListItem", "visible": True}
walletAccount_StatusListItem = {"container": walletAccounts_StatusListView, "objectName": RegularExpression("walletAccount*"), "type": "StatusListItem", "visible": True}
mainWallet_Hide_Show_Watch_Only_Button = {"container": statusDesktop_mainWindow, "objectName": "hideShowWatchOnlyButton", "type": "StatusButton", "visible": True}
mainWallet_All_Accounts_Button = {"container": walletAccounts_StatusListView, "objectName": "allAccountsBtn", "type": "Button", "visible": True}
mainWallet_All_Accounts_Button = {"container": walletAccounts_StatusListView, "objectName": "allAccountsBtn", "type": "StatusFlatButton", "visible": True}
# Context Menu
mainWallet_CopyAddress_MenuItem = {"container": contextMenu_PopupItem, "enabled": True, "objectName": RegularExpression("AccountMenu-CopyAddressAction*"), "type": "StatusMenuItem"}
@@ -339,7 +339,7 @@ Rectangle {
]
}
header: Button {
header: StatusFlatButton {
id: header
verticalPadding: Theme.padding
horizontalPadding: Theme.padding
@@ -357,9 +357,6 @@ Rectangle {
implicitWidth: parent.ListView.view.width - Theme.padding * 2
}
HoverHandler {
cursorShape: Qt.PointingHandCursor
}
onClicked: root.selectAllAccounts()
contentItem: ColumnLayout {