fix: Airdrop section of deployed NFT doesn't seem to apply darkmode

- fix some colors to look correct in dark mode too
- update/unbreak the corresponding storybook pages

Fixes #11289
This commit is contained in:
Lukáš Tinkl 2023-06-29 18:02:27 +02:00 committed by Lukáš Tinkl
parent 7a7394628e
commit b5f2c52b05
15 changed files with 58 additions and 33 deletions

View File

@ -135,7 +135,6 @@ SplitView {
const view = loader.item
view.airdropFees = response
}
}
@ -183,7 +182,6 @@ SplitView {
expression: model.index ? "Optimism" : "Arbitrum"
},
ExpressionRole {
readonly property string icon1: "network/Network=Optimism"
readonly property string icon2: "network/Network=Arbitrum"
@ -220,12 +218,19 @@ SplitView {
name: "infiniteSupply"
expression: !(model.index % 4)
},
ExpressionRole {
name: "accountName"
expression: "StatusAccount"
},
ExpressionRole {
name: "contractUniqueKey"
expression: "contractUniqueKey_" + model.index
},
ExpressionRole {
name: "chainName"
expression: model.index ? "Ethereum Mainnet" : "Goerli"
},
ExpressionRole {
readonly property string icon1: "network/Network=Ethereum"
readonly property string icon2: "network/Network=Testnet"
@ -239,7 +244,6 @@ SplitView {
value: TokenCategories.Category.Community
}
Component.onCompleted: {
Qt.callLater(() => editAirdropView.assetsModel = this)
}

View File

@ -32,10 +32,11 @@ SplitView {
channelsModel: ChannelsModel {}
communityDetails: QtObject {
readonly property string id: "sox"
readonly property string name: "Socks"
readonly property string image: ModelsData.icons.socks
readonly property string color: "red"
readonly property string owner: isOwnerCheckBox.checked
readonly property bool owner: isOwnerCheckBox.checked
}
onCreatePermissionClicked: {

View File

@ -44,7 +44,7 @@ SplitView {
onMintCollectible: logs.logEvent("CommunityMintTokensSettingsPanel::mintCollectible")
onMintAsset: logs.logEvent("CommunityMintTokensSettingsPanel::mintAssets")
onDeleteToken: logs.logEvent("CommunityMintTokensSettingsPanel::deleteToken: " + key)
onDeleteToken: logs.logEvent("CommunityMintTokensSettingsPanel::deleteToken: " + tokenKey)
}
}

View File

@ -47,9 +47,11 @@ SplitView {
}
communityDetails: QtObject {
readonly property string id: "sox"
readonly property string name: "Socks"
readonly property string image: ModelsData.icons.socks
readonly property string color: "red"
readonly property bool owner: true
}
function log(method, index) {

View File

@ -21,6 +21,7 @@ SplitView {
Rectangle {
anchors.fill: holdersPanel
color: "transparent"
border.color: "lightgray"
anchors.margins: -1
}

View File

@ -66,12 +66,8 @@ SplitView {
error: failureCheckBox.checked
isLayer1: mainnetCheckbox.checked
confirmations: confirmationsSlider.value
duration: durationSlider.to
progress: durationSlider.value
chainName: isLayer1 ? "Mainnet" :"Optimism"
confirmationTimeStamp: 1670419848
finalisationTimeStamp: 1670419848
failedTimeStamp: 1670419848
timeStamp: 1670419848
}
}
}

View File

@ -9,49 +9,63 @@ ListModel {
iconSource: ModelsData.assets.socks,
name: "Unisocks",
shortName: "SOCKS",
category: TokenCategories.Category.Community
symbol: "SOCKS",
category: TokenCategories.Category.Community,
communityId: ""
},
{
key: "zrx",
iconSource: ModelsData.assets.zrx,
name: "Ox",
shortName: "ZRX",
category: TokenCategories.Category.Community
symbol: "ZRX",
category: TokenCategories.Category.Community,
communityId: ""
},
{
key: "1inch",
iconSource: ModelsData.assets.inch,
name: "1inch",
shortName: "1INCH",
category: TokenCategories.Category.Own
symbol: "1INCH",
category: TokenCategories.Category.Own,
communityId: ""
},
{
key: "Aave",
iconSource: ModelsData.assets.aave,
name: "Aave",
shortName: "AAVE",
category: TokenCategories.Category.Own
symbol: "AAVE",
category: TokenCategories.Category.Own,
communityId: ""
},
{
key: "Amp",
iconSource: ModelsData.assets.amp,
name: "Amp",
shortName: "AMP",
category: TokenCategories.Category.Own
symbol: "AMP",
category: TokenCategories.Category.Own,
communityId: ""
},
{
key: "Dai",
iconSource: ModelsData.assets.dai,
name: "Dai",
shortName: "DAI",
category: TokenCategories.Category.General
symbol: "DAI",
category: TokenCategories.Category.General,
communityId: ""
},
{
key: "snt",
iconSource: ModelsData.assets.snt,
name: "snt",
shortName: "snt",
category: TokenCategories.Category.General
symbol: "snt",
category: TokenCategories.Category.General,
communityId: ""
}
]

View File

@ -8,22 +8,27 @@ ListModel {
key: "Anniversary",
iconSource: ModelsData.collectibles.anniversary,
name: "Anniversary",
symbol: "Anniversary",
category: TokenCategories.Category.Community,
imageUrl: ModelsData.collectibles.anniversary,
id: 1767698
id: 1767698,
communityId: ""
},
{
key: "Anniversary2",
iconSource: ModelsData.collectibles.anniversary,
name: "Anniversary2",
symbol: "Anniversary2",
category: TokenCategories.Category.Community,
imageUrl: ModelsData.collectibles.anniversary,
id: 1767699
id: 1767699,
communityId: ""
},
{
key: "CryptoKitties",
iconSource: ModelsData.collectibles.cryptoKitties,
name: "CryptoKitties",
symbol: "CryptoKitties",
category: TokenCategories.Category.Own,
subItems: [
{
@ -70,23 +75,28 @@ ListModel {
}
],
imageUrl: ModelsData.collectibles.cryptoKitties,
id: 1767700
id: 1767700,
communityId: ""
},
{
key: "SuperRare",
iconSource: ModelsData.collectibles.superRare,
name: "SuperRare",
symbol: "SuperRare",
category: TokenCategories.Category.Own,
imageUrl: ModelsData.collectibles.superRare,
id: 1767701
id: 1767701,
communityId: ""
},
{
key: "Custom",
iconSource: ModelsData.collectibles.custom,
name: "Custom Collectible",
symbol: "Custom",
category: TokenCategories.Category.General,
imageUrl: ModelsData.collectibles.custom,
id: 1767764
id: 1767764,
communityId: ""
}
]

View File

@ -84,7 +84,7 @@ QtObject {
transferable: false,
remoteSelfDestruct: true,
chainId: 5,
chainName: "Curstom",
chainName: "Custom",
chainIcon: ModelsData.networks.custom,
accountName: "Other Account"
},

View File

@ -78,7 +78,3 @@ QtObject {
readonly property string _long: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum."
}
}

View File

@ -50,7 +50,7 @@ Control {
background: Rectangle {
radius: Style.current.radius
color: Theme.palette.indirectColor1
color: Theme.palette.statusListItem.backgroundColor
}
contentItem: StatusListView {

View File

@ -61,7 +61,7 @@ Control {
d.delegateHeight * root.count)
radius: Style.current.radius
color: Theme.palette.indirectColor1
color: Theme.palette.statusListItem.backgroundColor
StatusListView {
id: listView

View File

@ -17,6 +17,7 @@ Control {
horizontalPadding: 56
background: Rectangle {
color: Theme.palette.statusListItem.backgroundColor
radius: Style.current.radius
border.color: Theme.palette.baseColor2
}

View File

@ -603,7 +603,7 @@ StatusScrollView {
background: Rectangle {
radius: Style.current.radius
color: Theme.palette.indirectColor1
color: Theme.palette.statusListItem.backgroundColor
}
contentItem: Loader {

View File

@ -26,7 +26,7 @@ ColumnLayout {
Layout.leftMargin: parent.lineMargin
Layout.preferredWidth: parent.lineWidth
Layout.preferredHeight: parent.lineHeight
color: Style.current.separator
color: Theme.palette.baseColor4
}
RowLayout {
@ -50,7 +50,7 @@ ColumnLayout {
color: "transparent"
border.width: root.lineWidth
border.color: Style.current.separator
border.color: Theme.palette.baseColor4
}
}