mirror of
https://github.com/status-im/status-app.git
synced 2026-08-27 15:11:20 +00:00
Theme: update png/svg/emoji calls
This commit is contained in:
@@ -13,22 +13,22 @@ ColumnLayout {
|
||||
{
|
||||
tokenText: "2 MCT",
|
||||
networkText: "Ethereum",
|
||||
tokenImage: Theme.png("tokens/SNT"),
|
||||
networkImage: Theme.svg("network/Network=Ethereum"),
|
||||
tokenImage: Assets.png("tokens/SNT"),
|
||||
networkImage: Assets.svg("network/Network=Ethereum"),
|
||||
valid: true
|
||||
},
|
||||
{
|
||||
tokenText: "64 DAI",
|
||||
networkText: "Optimism",
|
||||
tokenImage: Theme.png("tokens/DAI"),
|
||||
networkImage: Theme.svg("network/Network=Optimism"),
|
||||
tokenImage: Assets.png("tokens/DAI"),
|
||||
networkImage: Assets.svg("network/Network=Optimism"),
|
||||
valid: false
|
||||
},
|
||||
{
|
||||
tokenText: "0.125 ETH",
|
||||
networkText: "Arbitrum",
|
||||
tokenImage: Theme.png("tokens/ETH"),
|
||||
networkImage: Theme.svg("network/Network=Arbitrum"),
|
||||
tokenImage: Assets.png("tokens/ETH"),
|
||||
networkImage: Assets.svg("network/Network=Arbitrum"),
|
||||
valid: true
|
||||
}
|
||||
]
|
||||
|
||||
@@ -16,7 +16,7 @@ SplitView {
|
||||
anchors.centerIn: parent
|
||||
title: titleField.text
|
||||
subTitle: subTitleField.text
|
||||
image: Theme.png("wallet/wallet-green")
|
||||
image: Assets.png("wallet/wallet-green")
|
||||
closeEnabled: closeEnabled.checked
|
||||
onClicked: {
|
||||
print("BannerCard clicked")
|
||||
|
||||
@@ -108,7 +108,7 @@ SplitView {
|
||||
}
|
||||
return {
|
||||
name : "Mock Community",
|
||||
image : Theme.png("tokens/UNI"),
|
||||
image : Assets.png("tokens/UNI"),
|
||||
color : "orchid"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ SplitView {
|
||||
property int membersCount: 184
|
||||
property bool amISectionAdmin: false
|
||||
property color color: "orchid"
|
||||
property url image: Theme.png("tokens/UNI")
|
||||
property url image: Assets.png("tokens/UNI")
|
||||
property bool openCreateChat: false
|
||||
}
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@ ColumnLayout {
|
||||
property bool amISectionAdmin: true
|
||||
property bool isCommunityEditable: true
|
||||
property color color: "orchid"
|
||||
property url image: Theme.png("tokens/UNI")
|
||||
property url image: Assets.png("tokens/UNI")
|
||||
property bool colorVisible: false
|
||||
property url banner: ctrlCommunityBanner.checked ? Theme.png("settings/communities@2x") : ""
|
||||
property url banner: ctrlCommunityBanner.checked ? Assets.png("settings/communities@2x") : ""
|
||||
property bool adminControlsEnabled: true
|
||||
|
||||
ColumnLayout {
|
||||
@@ -94,15 +94,15 @@ ColumnLayout {
|
||||
RadioButton {
|
||||
checked: true
|
||||
text: qsTr("UNI")
|
||||
onCheckedChanged: if(checked) root.image = Theme.png("tokens/UNI")
|
||||
onCheckedChanged: if(checked) root.image = Assets.png("tokens/UNI")
|
||||
}
|
||||
RadioButton {
|
||||
text: qsTr("SOCKS")
|
||||
onCheckedChanged: if(checked) root.image = Theme.png("tokens/SOCKS")
|
||||
onCheckedChanged: if(checked) root.image = Assets.png("tokens/SOCKS")
|
||||
}
|
||||
RadioButton {
|
||||
text: qsTr("Status")
|
||||
onCheckedChanged: if(checked) root.image = Theme.png("tokens/SNT")
|
||||
onCheckedChanged: if(checked) root.image = Assets.png("tokens/SNT")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ SplitView {
|
||||
property string id: "1"
|
||||
property string name: "Socks"
|
||||
property var members: { "count": 5 }
|
||||
property string image: Theme.png("tokens/UNI")
|
||||
property string image: Assets.png("tokens/UNI")
|
||||
property string color: "orchid"
|
||||
}
|
||||
devicesStore: ProfileStores.DevicesStore {
|
||||
|
||||
@@ -51,7 +51,7 @@ SplitView {
|
||||
property string id: "1"
|
||||
property string name: "Socks"
|
||||
property var members: { "count": 5 }
|
||||
property string image: Theme.png("tokens/UNI")
|
||||
property string image: Assets.png("tokens/UNI")
|
||||
property string color: "orchid"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,28 +15,28 @@ Item {
|
||||
readonly property var modelData: [
|
||||
{
|
||||
name: "Optimism",
|
||||
icon: Theme.svg(ModelsData.networks.optimism),
|
||||
icon: Assets.svg(ModelsData.networks.optimism),
|
||||
amount: "300",
|
||||
multiplierIndex: 0,
|
||||
infiniteAmount: false
|
||||
},
|
||||
{
|
||||
name: "Arbitrum",
|
||||
icon: Theme.svg(ModelsData.networks.arbitrum),
|
||||
icon: Assets.svg(ModelsData.networks.arbitrum),
|
||||
amount: "400000",
|
||||
multiplierIndex: 3,
|
||||
infiniteAmount: false
|
||||
},
|
||||
{
|
||||
name: "Hermez",
|
||||
icon: Theme.svg(ModelsData.networks.hermez),
|
||||
icon: Assets.svg(ModelsData.networks.hermez),
|
||||
amount: "0",
|
||||
multiplierIndex: 0,
|
||||
infiniteAmount: true
|
||||
},
|
||||
{
|
||||
name: "Ethereum",
|
||||
icon: Theme.svg(ModelsData.networks.ethereum),
|
||||
icon: Assets.svg(ModelsData.networks.ethereum),
|
||||
amount: "12" + "0".repeat(18),
|
||||
multiplierIndex: 18,
|
||||
infiniteAmount: false
|
||||
|
||||
@@ -34,7 +34,7 @@ SplitView {
|
||||
anchors.margins: 50
|
||||
anchors.fill: parent
|
||||
|
||||
image: Theme.png("community/airdrops8_1")
|
||||
image: Assets.png("community/airdrops8_1")
|
||||
|
||||
title: radioButtonsGroup.text
|
||||
subtitle: radioButtonsGroup.text
|
||||
|
||||
@@ -54,7 +54,7 @@ Nemo enim 😋 ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,
|
||||
// Blur background:
|
||||
property int membersCount: 184
|
||||
property bool amISectionAdmin: false
|
||||
property url image: Theme.png("tokens/UNI")
|
||||
property url image: Assets.png("tokens/UNI")
|
||||
property var communityItemsModel: model1
|
||||
property string chatDateTimeText: "Dec 31, 2020"
|
||||
property string listUsersText: "simon, Mark Cuban "
|
||||
|
||||
@@ -15,7 +15,7 @@ SplitView {
|
||||
id: root
|
||||
|
||||
property string ytBannerQuality: "hqdefault"
|
||||
property string image: Theme.png("tokens/SOCKS")
|
||||
property string image: Assets.png("tokens/SOCKS")
|
||||
property string banner: rawImageCheck.checked ? rawImageCheck.rawImageData : "https://img.youtube.com/vi/yHN1M7vcPKU/%1.jpg".arg(root.ytBannerQuality)
|
||||
property bool globalUtilsReady: false
|
||||
|
||||
@@ -275,8 +275,8 @@ SplitView {
|
||||
|
||||
RadioButton {
|
||||
text: qsTr("QRC asset: SOCKS")
|
||||
checked: root.image === Theme.png("tokens/SOCKS")
|
||||
onToggled: root.image = Theme.png("tokens/SOCKS")
|
||||
checked: root.image === Assets.png("tokens/SOCKS")
|
||||
onToggled: root.image = Assets.png("tokens/SOCKS")
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
|
||||
@@ -26,7 +26,7 @@ SplitView {
|
||||
NetworkSelectItemDelegate {
|
||||
id: delegate
|
||||
title: "Ethereum"
|
||||
iconUrl: Theme.svg("network/Network=Ethereum")
|
||||
iconUrl: Assets.svg("network/Network=Ethereum")
|
||||
showIndicator: true
|
||||
multiSelection: true
|
||||
checkState: checkStateSelector.checkState
|
||||
|
||||
@@ -30,7 +30,7 @@ SplitView {
|
||||
Tracer {
|
||||
visible: avatarEditor.showImplicitSizeArea
|
||||
}
|
||||
avatarSource: avatarEditor.changeAvatarImage ? "https://i.pravatar.cc/128?img=5" : Theme.png("status-logo-icon")
|
||||
avatarSource: avatarEditor.changeAvatarImage ? "https://i.pravatar.cc/128?img=5" : Assets.png("status-logo-icon")
|
||||
badgeIconName: root.badgeIconName
|
||||
density: avatarEditor.density
|
||||
circular: avatarEditor.isRoundedAvatar
|
||||
|
||||
@@ -56,7 +56,7 @@ SplitView {
|
||||
selected: selectedCheck.checked
|
||||
|
||||
// Avatar related
|
||||
avatarSource: avatarEditor.changeAvatarImage ? "https://i.pravatar.cc/128?img=5" : Theme.png("status-logo-icon")
|
||||
avatarSource: avatarEditor.changeAvatarImage ? "https://i.pravatar.cc/128?img=5" : Assets.png("status-logo-icon")
|
||||
badgeIconName: avatarEditor.changeBadgeIcon ? "action-mention" : "action-reply"
|
||||
isCircularAvatar: avatarEditor.isRoundedAvatar
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ SplitView {
|
||||
isContact: ctrlIsContact.checked
|
||||
contactRequestState: ctrlContactRequestState.currentValue
|
||||
|
||||
largeImage: userImageCheckBox.checked ? Theme.png("status-logo") : ""
|
||||
largeImage: userImageCheckBox.checked ? Assets.png("status-logo") : ""
|
||||
|
||||
onlineStatus: onlineStatusComboBox.currentValue
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ SplitView {
|
||||
|
||||
networkShortName: priv.selectedNetwork.shortName
|
||||
networkName: priv.selectedNetwork.chainName
|
||||
networkIconPath: Theme.svg(priv.selectedNetwork.iconUrl)
|
||||
networkIconPath: Assets.svg(priv.selectedNetwork.iconUrl)
|
||||
networkBlockExplorerUrl: priv.selectedNetwork.blockExplorerURL
|
||||
networkChainId: priv.selectedNetwork.chainId
|
||||
|
||||
|
||||
@@ -674,7 +674,7 @@ SplitView {
|
||||
icon: {
|
||||
const iconUrl = ModelUtils.getByKey(NetworksModel.flatNetworks, "chainId", model.chainId, "iconUrl")
|
||||
if(!!iconUrl)
|
||||
return Theme.svg(iconUrl)
|
||||
return Assets.svg(iconUrl)
|
||||
else return ""
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.margins: 100
|
||||
|
||||
icon: Theme.png("tokens/SNT")
|
||||
icon: Assets.png("tokens/SNT")
|
||||
title: "Item Selector Title"
|
||||
|
||||
placeholderText: "Example: Empty items"
|
||||
|
||||
@@ -43,7 +43,7 @@ SplitView {
|
||||
anchors.centerIn: parent
|
||||
|
||||
title: titleTextEdit.text
|
||||
icon: Theme.png("tokens/SNT")
|
||||
icon: Assets.png("tokens/SNT")
|
||||
iconSize: iconSizeSlider.value
|
||||
|
||||
label.enabled: labelEnabledCheckBox.checked
|
||||
|
||||
@@ -17,7 +17,7 @@ ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
Layout.margins: 50
|
||||
|
||||
icon: Theme.png("tokens/SNT")
|
||||
icon: Assets.png("tokens/SNT")
|
||||
title: "Item Selector Title"
|
||||
|
||||
placeholderText: "Example: Empty items"
|
||||
@@ -47,7 +47,7 @@ ColumnLayout {
|
||||
onClicked: {
|
||||
model.append({
|
||||
text: input.text,
|
||||
imageSource: Theme.png("tokens/SNT"),
|
||||
imageSource: Assets.png("tokens/SNT"),
|
||||
isIcon: false,
|
||||
operator: model.count > 0 ? OperatorsUtils.Operators.Or
|
||||
: OperatorsUtils.Operators.None
|
||||
|
||||
@@ -92,7 +92,7 @@ SplitView {
|
||||
|
||||
networkShortName: priv.selectedNetwork.shortName
|
||||
networkName: priv.selectedNetwork.chainName
|
||||
networkIconPath: Theme.svg(priv.selectedNetwork.iconUrl)
|
||||
networkIconPath: Assets.svg(priv.selectedNetwork.iconUrl)
|
||||
networkBlockExplorerUrl: priv.selectedNetwork.blockExplorerURL
|
||||
networkChainId: priv.selectedNetwork.chainId
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ SplitView {
|
||||
|
||||
networkShortName: priv.selectedNetwork.shortName
|
||||
networkName: priv.selectedNetwork.chainName
|
||||
networkIconPath: Theme.svg(priv.selectedNetwork.iconUrl)
|
||||
networkIconPath: Assets.svg(priv.selectedNetwork.iconUrl)
|
||||
networkBlockExplorerUrl: priv.selectedNetwork.blockExplorerURL
|
||||
networkChainId: priv.selectedNetwork.chainId
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ SplitView {
|
||||
readonly property var modelData: [
|
||||
{
|
||||
name: "Optimism",
|
||||
icon: Theme.svg(ModelsData.networks.optimism),
|
||||
icon: Assets.svg(ModelsData.networks.optimism),
|
||||
amount: "300",
|
||||
multiplierIndex: 0,
|
||||
infiniteAmount: false,
|
||||
@@ -31,7 +31,7 @@ SplitView {
|
||||
},
|
||||
{
|
||||
name: "Arbitrum",
|
||||
icon: Theme.svg(ModelsData.networks.arbitrum),
|
||||
icon: Assets.svg(ModelsData.networks.arbitrum),
|
||||
amount: "400000",
|
||||
multiplierIndex: 3,
|
||||
infiniteAmount: false,
|
||||
@@ -39,7 +39,7 @@ SplitView {
|
||||
},
|
||||
{
|
||||
name: "Hermez",
|
||||
icon: Theme.svg(ModelsData.networks.hermez),
|
||||
icon: Assets.svg(ModelsData.networks.hermez),
|
||||
amount: "0",
|
||||
multiplierIndex: 0,
|
||||
infiniteAmount: true,
|
||||
@@ -47,7 +47,7 @@ SplitView {
|
||||
},
|
||||
{
|
||||
name: "Ethereum",
|
||||
icon: Theme.svg(ModelsData.networks.ethereum),
|
||||
icon: Assets.svg(ModelsData.networks.ethereum),
|
||||
amount: "12" + "0".repeat(18),
|
||||
multiplierIndex: 18,
|
||||
infiniteAmount: false,
|
||||
|
||||
@@ -36,13 +36,13 @@ SplitView {
|
||||
readonly property bool isNFT: ctrlIsNft.checked
|
||||
readonly property bool isCommunityAssetViaAirdrop: isCommunityAssetViaAirdrop.checked
|
||||
readonly property string communityName: "Doodles"
|
||||
readonly property string communityImageUrl: Theme.png("collectibles/HappyMeow")
|
||||
readonly property string communityImageUrl: Assets.png("collectibles/HappyMeow")
|
||||
readonly property string tokenID: "4981676894159712808201908443964193325271219637660871887967796332739046670337"
|
||||
readonly property string tokenAddress: "0xdeadbeef"
|
||||
readonly property string tokenInAddress: "0xdeadbeef-in"
|
||||
readonly property string tokenOutAddress: "0xdeadbeef-out"
|
||||
readonly property string nftName: "Happy Meow NFT"
|
||||
readonly property string nftImageUrl: Theme.png("collectibles/HappyMeow")
|
||||
readonly property string nftImageUrl: Assets.png("collectibles/HappyMeow")
|
||||
readonly property int chainId: 1
|
||||
readonly property int chainIdIn: 1
|
||||
readonly property int chainIdOut: 2
|
||||
|
||||
@@ -18,7 +18,7 @@ Item {
|
||||
NetworkSelectItemDelegate {
|
||||
anchors.centerIn: parent
|
||||
title: "Ethereum"
|
||||
iconUrl: Theme.svg("network/Network=Ethereum")
|
||||
iconUrl: Assets.svg("network/Network=Ethereum")
|
||||
onToggled: root.onToggledHandler()
|
||||
}
|
||||
}
|
||||
@@ -68,11 +68,11 @@ Item {
|
||||
|
||||
function test_icon() {
|
||||
verify(!!controlUnderTest)
|
||||
compare(controlUnderTest.iconUrl, Theme.svg("network/Network=Ethereum"))
|
||||
compare(findChild(controlUnderTest, "statusRoundImage").image.source, Theme.svg("network/Network=Ethereum"))
|
||||
controlUnderTest.iconUrl = Theme.svg("network/Network=Polygon")
|
||||
compare(controlUnderTest.iconUrl, Theme.svg("network/Network=Polygon"))
|
||||
compare(findChild(controlUnderTest, "statusRoundImage").image.source, Theme.svg("network/Network=Polygon"))
|
||||
compare(controlUnderTest.iconUrl, Assets.svg("network/Network=Ethereum"))
|
||||
compare(findChild(controlUnderTest, "statusRoundImage").image.source, Assets.svg("network/Network=Ethereum"))
|
||||
controlUnderTest.iconUrl = Assets.svg("network/Network=Polygon")
|
||||
compare(controlUnderTest.iconUrl, Assets.svg("network/Network=Polygon"))
|
||||
compare(findChild(controlUnderTest, "statusRoundImage").image.source, Assets.svg("network/Network=Polygon"))
|
||||
}
|
||||
|
||||
function test_indicatorConfig() {
|
||||
|
||||
@@ -86,7 +86,7 @@ Item {
|
||||
|
||||
verify(!!delegate)
|
||||
compare(delegate.title, model.chainName)
|
||||
compare(delegate.iconUrl, Theme.svg(model.iconUrl))
|
||||
compare(delegate.iconUrl, Assets.svg(model.iconUrl))
|
||||
compare(delegate.showIndicator, controlUnderTest.showIndicator)
|
||||
compare(delegate.multiSelection, controlUnderTest.multiSelection)
|
||||
compare(delegate.checkState, controlUnderTest.selection.includes(model.chainId) ? Qt.Checked : Qt.Unchecked)
|
||||
|
||||
@@ -43,7 +43,7 @@ Item {
|
||||
|
||||
networkShortName: Constants.networkShortChainNames.mainnet
|
||||
networkName: "Mainnet"
|
||||
networkIconPath: Theme.svg("network/Network=Ethereum")
|
||||
networkIconPath: Assets.svg("network/Network=Ethereum")
|
||||
networkBlockExplorerUrl: "https://etherscan.io/"
|
||||
networkChainId: 1
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ Item {
|
||||
|
||||
networkShortName: Constants.networkShortChainNames.mainnet
|
||||
networkName: "Mainnet"
|
||||
networkIconPath: Theme.svg("network/Network=Ethereum")
|
||||
networkIconPath: Assets.svg("network/Network=Ethereum")
|
||||
networkBlockExplorerUrl: "https://etherscan.io/"
|
||||
networkChainId: 1
|
||||
|
||||
@@ -161,7 +161,7 @@ Item {
|
||||
compare(smartContractBox.caption, qsTr("Via smart contract"))
|
||||
compare(smartContractBox.primaryText, controlUnderTest.serviceProviderName)
|
||||
compare(smartContractBox.secondaryText, SQUtils.Utils.elideAndFormatWalletAddress(controlUnderTest.serviceProviderContractAddress))
|
||||
compare(smartContractBox.icon, Theme.png("swap/paraswap"))
|
||||
compare(smartContractBox.icon, Assets.png("swap/paraswap"))
|
||||
}
|
||||
|
||||
function test_networkInfo() {
|
||||
|
||||
@@ -306,7 +306,7 @@ Item {
|
||||
|
||||
const balance = delegateUnderTest.model.accountBalance.balance
|
||||
|
||||
compare(inlineTagDelegate_0.asset.name, Theme.svg(delegateUnderTest.model.accountBalance.iconUrl))
|
||||
compare(inlineTagDelegate_0.asset.name, Assets.svg(delegateUnderTest.model.accountBalance.iconUrl))
|
||||
compare(inlineTagDelegate_0.asset.color.toString().toUpperCase(), delegateUnderTest.model.accountBalance.chainColor.toString().toUpperCase())
|
||||
compare(inlineTagDelegate_0.titleText.color, balance === "0" ? Theme.palette.baseColor1 : Theme.palette.directColor1)
|
||||
|
||||
@@ -462,7 +462,7 @@ Item {
|
||||
const inlineTagDelegate_0 = findChild(accountDelegateUnderTest, "inlineTagDelegate_0")
|
||||
verify(!!inlineTagDelegate_0)
|
||||
|
||||
compare(inlineTagDelegate_0.asset.name, Theme.svg(networkModelItem.iconUrl))
|
||||
compare(inlineTagDelegate_0.asset.name, Assets.svg(networkModelItem.iconUrl))
|
||||
compare(inlineTagDelegate_0.asset.color.toString().toUpperCase(), networkModelItem.chainColor.toString().toUpperCase())
|
||||
|
||||
let balancesModel = SQUtils.ModelUtils.getByKey(root.swapAdaptor.walletAssetsStore.baseGroupedAccountAssetModel, "tokensKey", root.swapFormData.fromTokensKey).balances
|
||||
|
||||
@@ -39,7 +39,7 @@ Item {
|
||||
|
||||
networkShortName: Constants.networkShortChainNames.mainnet
|
||||
networkName: "Mainnet"
|
||||
networkIconPath: Theme.svg("network/Network=Ethereum")
|
||||
networkIconPath: Assets.svg("network/Network=Ethereum")
|
||||
networkBlockExplorerUrl: "https://etherscan.io/"
|
||||
networkChainId: 1
|
||||
|
||||
|
||||
@@ -39,31 +39,31 @@ QtObject {
|
||||
|
||||
|
||||
readonly property QtObject assets: QtObject {
|
||||
readonly property string socks: Theme.png("tokens/SOCKS")
|
||||
readonly property string zrx: Theme.png("tokens/ZRX")
|
||||
readonly property string inch: Theme.png("tokens/CUSTOM-TOKEN")
|
||||
readonly property string aave: Theme.png("tokens/CUSTOM-TOKEN")
|
||||
readonly property string amp: Theme.png("tokens/CUSTOM-TOKEN")
|
||||
readonly property string uni: Theme.png("tokens/UNI")
|
||||
readonly property string eth: Theme.png("tokens/ETH")
|
||||
readonly property string dai: Theme.png("tokens/DAI")
|
||||
readonly property string snt: Theme.png("tokens/SNT")
|
||||
readonly property string mana: Theme.png("tokens/aMANA")
|
||||
readonly property string socks: Assets.png("tokens/SOCKS")
|
||||
readonly property string zrx: Assets.png("tokens/ZRX")
|
||||
readonly property string inch: Assets.png("tokens/CUSTOM-TOKEN")
|
||||
readonly property string aave: Assets.png("tokens/CUSTOM-TOKEN")
|
||||
readonly property string amp: Assets.png("tokens/CUSTOM-TOKEN")
|
||||
readonly property string uni: Assets.png("tokens/UNI")
|
||||
readonly property string eth: Assets.png("tokens/ETH")
|
||||
readonly property string dai: Assets.png("tokens/DAI")
|
||||
readonly property string snt: Assets.png("tokens/SNT")
|
||||
readonly property string mana: Assets.png("tokens/aMANA")
|
||||
}
|
||||
|
||||
readonly property QtObject collectibles: QtObject {
|
||||
readonly property string anniversary: "https://i2.seadn.io/ethereum/0x5150b29a431ece5eb0e62085535b8aac8df193be/ba8dedcf93676a6be4c0a5da9ba600c7.png?w=1000"
|
||||
readonly property string cryptoKitties: Theme.png("collectibles/CryptoKitties")
|
||||
readonly property string kitty1: Theme.png("collectibles/Furbeard")
|
||||
readonly property string kitty1Big: Theme.png("collectibles/FurbeardBig")
|
||||
readonly property string kitty2: Theme.png("collectibles/Magicat")
|
||||
readonly property string kitty2Big: Theme.png("collectibles/MagicatBig")
|
||||
readonly property string kitty3: Theme.png("collectibles/HappyMeow")
|
||||
readonly property string kitty3Big: Theme.png("collectibles/HappyMeowBig")
|
||||
readonly property string kitty4: Theme.png("collectibles/Furbeard")
|
||||
readonly property string kitty4Big: Theme.png("collectibles/FurbeardBig")
|
||||
readonly property string kitty5: Theme.png("collectibles/Magicat")
|
||||
readonly property string kitty5Big: Theme.png("collectibles/MagicatBig")
|
||||
readonly property string cryptoKitties: Assets.png("collectibles/CryptoKitties")
|
||||
readonly property string kitty1: Assets.png("collectibles/Furbeard")
|
||||
readonly property string kitty1Big: Assets.png("collectibles/FurbeardBig")
|
||||
readonly property string kitty2: Assets.png("collectibles/Magicat")
|
||||
readonly property string kitty2Big: Assets.png("collectibles/MagicatBig")
|
||||
readonly property string kitty3: Assets.png("collectibles/HappyMeow")
|
||||
readonly property string kitty3Big: Assets.png("collectibles/HappyMeowBig")
|
||||
readonly property string kitty4: Assets.png("collectibles/Furbeard")
|
||||
readonly property string kitty4Big: Assets.png("collectibles/FurbeardBig")
|
||||
readonly property string kitty5: Assets.png("collectibles/Magicat")
|
||||
readonly property string kitty5Big: Assets.png("collectibles/MagicatBig")
|
||||
readonly property string superRare: root.icons.superRare
|
||||
readonly property string custom: root.icons.status
|
||||
readonly property string doodles: root.icons.dribble
|
||||
@@ -89,10 +89,10 @@ QtObject {
|
||||
}
|
||||
|
||||
readonly property QtObject onRampProviderImages: QtObject {
|
||||
readonly property string latamex: Theme.png("onRampProviders/latamex")
|
||||
readonly property string moonPay: Theme.png("onRampProviders/moonPay")
|
||||
readonly property string ramp: Theme.png("onRampProviders/ramp")
|
||||
readonly property string mercuryo: Theme.png("onRampProviders/mercuryo")
|
||||
readonly property string latamex: Assets.png("onRampProviders/latamex")
|
||||
readonly property string moonPay: Assets.png("onRampProviders/moonPay")
|
||||
readonly property string ramp: Assets.png("onRampProviders/ramp")
|
||||
readonly property string mercuryo: Assets.png("onRampProviders/mercuryo")
|
||||
}
|
||||
|
||||
readonly property ListModel languagePickerModel: ListModel {
|
||||
|
||||
@@ -25,13 +25,13 @@ ListModel {
|
||||
isNFT: false,
|
||||
isCommunityAssetViaAirdrop: false,
|
||||
communityName: "Doodles",
|
||||
communityImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
communityImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
tokenID: "4981676894159712808201908443964193325271219637660871887967796332739046670337",
|
||||
tokenAddress: "0xdeadbeef",
|
||||
tokenInAddress: "0xdeadbeef-00",
|
||||
tokenOutAddress: "0xdeadbeef-00",
|
||||
nftName: "Happy Meow NFT",
|
||||
nftImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
nftImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
chainId: "NETWORKID",
|
||||
chainIdIn: "NETWORKID-IN",
|
||||
chainIdOut: "NETWORKID-OUT"
|
||||
@@ -54,13 +54,13 @@ ListModel {
|
||||
isNFT: false,
|
||||
isCommunityAssetViaAirdrop: false,
|
||||
communityName: "Doodles",
|
||||
communityImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
communityImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
tokenID: "4981676894159712808201908443964193325271219637660871887967796332739046670337",
|
||||
tokenAddress: "0xdeadbeef",
|
||||
tokenInAddress: "0xdeadbeef-00",
|
||||
tokenOutAddress: "0xdeadbeef-00",
|
||||
nftName: "Happy Meow NFT",
|
||||
nftImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
nftImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
chainId: "NETWORKID",
|
||||
chainIdIn: "NETWORKID-IN",
|
||||
chainIdOut: "NETWORKID-OUT"
|
||||
@@ -83,13 +83,13 @@ ListModel {
|
||||
isNFT: false,
|
||||
isCommunityAssetViaAirdrop: false,
|
||||
communityName: "Doodles",
|
||||
communityImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
communityImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
tokenID: "4981676894159712808201908443964193325271219637660871887967796332739046670337",
|
||||
tokenAddress: "0xdeadbeef",
|
||||
tokenInAddress: "0xdeadbeef-00",
|
||||
tokenOutAddress: "0xdeadbeef-00",
|
||||
nftName: "Happy Meow NFT",
|
||||
nftImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
nftImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
chainId: "NETWORKID",
|
||||
chainIdIn: "NETWORKID-IN",
|
||||
chainIdOut: "NETWORKID-OUT"
|
||||
@@ -112,13 +112,13 @@ ListModel {
|
||||
isNFT: false,
|
||||
isCommunityAssetViaAirdrop: false,
|
||||
communityName: "Doodles",
|
||||
communityImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
communityImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
tokenID: "4981676894159712808201908443964193325271219637660871887967796332739046670337",
|
||||
tokenAddress: "0xdeadbeef",
|
||||
tokenInAddress: "0xdeadbeef-00",
|
||||
tokenOutAddress: "0xdeadbeef-00",
|
||||
nftName: "Happy Meow NFT",
|
||||
nftImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
nftImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
chainId: "NETWORKID",
|
||||
chainIdIn: "NETWORKID-IN",
|
||||
chainIdOut: "NETWORKID-OUT"
|
||||
@@ -141,13 +141,13 @@ ListModel {
|
||||
isNFT: false,
|
||||
isCommunityAssetViaAirdrop: false,
|
||||
communityName: "Doodles",
|
||||
communityImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
communityImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
tokenID: "4981676894159712808201908443964193325271219637660871887967796332739046670337",
|
||||
tokenAddress: "0xdeadbeef",
|
||||
tokenInAddress: "0xdeadbeef-00",
|
||||
tokenOutAddress: "0xdeadbeef-00",
|
||||
nftName: "Happy Meow NFT",
|
||||
nftImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
nftImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
chainId: "NETWORKID",
|
||||
chainIdIn: "NETWORKID-IN",
|
||||
chainIdOut: "NETWORKID-OUT"
|
||||
@@ -170,13 +170,13 @@ ListModel {
|
||||
isNFT: false,
|
||||
isCommunityAssetViaAirdrop: false,
|
||||
communityName: "Doodles",
|
||||
communityImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
communityImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
tokenID: "4981676894159712808201908443964193325271219637660871887967796332739046670337",
|
||||
tokenAddress: "0xdeadbeef",
|
||||
tokenInAddress: "0xdeadbeef-00",
|
||||
tokenOutAddress: "0xdeadbeef-00",
|
||||
nftName: "Happy Meow NFT",
|
||||
nftImageUrl: Theme.png("collectibles/HappyMeow"),
|
||||
nftImageUrl: Assets.png("collectibles/HappyMeow"),
|
||||
chainId: "NETWORKID",
|
||||
chainIdIn: "NETWORKID-IN",
|
||||
chainIdOut: "NETWORKID-OUT"
|
||||
|
||||
@@ -19,7 +19,7 @@ import StatusQ.Controls
|
||||
Example of how to use it:
|
||||
\qml
|
||||
StatusFlowSelector {
|
||||
icon: Theme.svg("contact_verified")
|
||||
icon: Assets.svg("contact_verified")
|
||||
title: qsTr("Who holds")
|
||||
placeholderItem.visible: listModel.count === 0
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ import StatusQ.Core.Utils
|
||||
Example of how to use it:
|
||||
\qml
|
||||
StatusItemSelector {
|
||||
icon: Theme.svg("contact_verified")
|
||||
icon: Assets.svg("contact_verified")
|
||||
title: qsTr("Who holds")
|
||||
defaultItemText: qsTr("Example: 10 SNT")
|
||||
andOperatorText: qsTr("and")
|
||||
|
||||
@@ -62,7 +62,7 @@ Loader {
|
||||
badge.anchors.bottomMargin: badge.border.width/2
|
||||
|
||||
bridgeBadge.visible: root.isBridgedAccount
|
||||
bridgeBadge.image.source: Theme.svg("discord-bridge")
|
||||
bridgeBadge.image.source: Assets.svg("discord-bridge")
|
||||
|
||||
Loader {
|
||||
anchors.fill: parent
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ Flow {
|
||||
Layout.preferredWidth: d.iconSize
|
||||
Layout.preferredHeight: d.iconSize
|
||||
|
||||
icon: Theme.emoji(model.emoji)
|
||||
icon: Assets.emoji(model.emoji)
|
||||
}
|
||||
|
||||
StatusBaseText {
|
||||
|
||||
@@ -34,7 +34,7 @@ Badge {
|
||||
spacing: 4
|
||||
|
||||
StatusIcon {
|
||||
source: Theme.svg("reply-small-arrow")
|
||||
source: Assets.svg("reply-small-arrow")
|
||||
Layout.preferredWidth: Theme.padding
|
||||
Layout.preferredHeight: Theme.padding
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ ActivityNotificationBase {
|
||||
signal readMoreClicked
|
||||
|
||||
avatarComponent: SVGImage {
|
||||
source: Theme.png("status-logo-icon")
|
||||
source: Assets.png("status-logo-icon")
|
||||
Layout.preferredWidth: 40
|
||||
Layout.preferredHeight: 40
|
||||
Layout.alignment: Qt.AlignTop
|
||||
|
||||
@@ -26,7 +26,7 @@ Item {
|
||||
width: 48
|
||||
height: 48
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
source: !!root.source && !!root.source.toString() ? root.source : Theme.svg("compassActive")
|
||||
source: !!root.source && !!root.source.toString() ? root.source : Assets.svg("compassActive")
|
||||
visible: root.source && root.source.toString()
|
||||
}
|
||||
|
||||
|
||||
@@ -13,5 +13,5 @@ Image {
|
||||
height: 24
|
||||
sourceSize: Qt.size(width, height)
|
||||
// TODO find a better default favicon
|
||||
source: faviconImage.currentTab && !!faviconImage.currentTab.icon.toString() ? faviconImage.currentTab.icon : Theme.svg("compassActive")
|
||||
source: faviconImage.currentTab && !!faviconImage.currentTab.icon.toString() ? faviconImage.currentTab.icon : Assets.svg("compassActive")
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ StatusModal {
|
||||
}
|
||||
|
||||
RoundedIcon {
|
||||
source: Theme.svg("check")
|
||||
source: Assets.svg("check")
|
||||
iconColor: Theme.palette.primaryColor1
|
||||
color: Theme.palette.secondaryBackground
|
||||
}
|
||||
@@ -82,7 +82,7 @@ StatusModal {
|
||||
}
|
||||
|
||||
RoundedIcon {
|
||||
source: Theme.svg("walletIcon")
|
||||
source: Assets.svg("walletIcon")
|
||||
iconHeight: 18
|
||||
iconWidth: 18
|
||||
iconColor: accountSelector.currentAccount.iconColor || Theme.palette.primaryColor1
|
||||
|
||||
@@ -156,7 +156,7 @@ WebEngineView {
|
||||
|
||||
Image {
|
||||
id: emptyPageImage
|
||||
source: Theme.png("browser/pepehand")
|
||||
source: Assets.png("browser/pepehand")
|
||||
width: 294
|
||||
height: 294
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
@@ -17,7 +17,7 @@ Item {
|
||||
|
||||
Image {
|
||||
id: waveImg
|
||||
source: Theme.png("chat/wave")
|
||||
source: Assets.png("chat/wave")
|
||||
width: 80
|
||||
height: 80
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
@@ -34,7 +34,7 @@ ColumnLayout {
|
||||
remainingHeight / 2)) / 2
|
||||
}
|
||||
|
||||
source: Theme.png("chat/chat@2x")
|
||||
source: Assets.png("chat/chat@2x")
|
||||
}
|
||||
|
||||
StatusBaseText {
|
||||
|
||||
@@ -237,7 +237,7 @@ StatusDialog {
|
||||
asset.height: 36
|
||||
asset.width: 36
|
||||
asset.isImage: true
|
||||
asset.name: Theme.svg(network.iconUrl)
|
||||
asset.name: Assets.svg(network.iconUrl)
|
||||
subTitle: qsTr("Only")
|
||||
leftPadding: 0
|
||||
rightPadding: 0
|
||||
@@ -254,7 +254,7 @@ StatusDialog {
|
||||
asset.height: 36
|
||||
asset.width: 36
|
||||
asset.isImage: true
|
||||
asset.name: Theme.svg(model.iconUrl)
|
||||
asset.name: Assets.svg(model.iconUrl)
|
||||
subTitle: qsTr("Only")
|
||||
|
||||
onClicked: {
|
||||
|
||||
@@ -88,7 +88,7 @@ QtObject {
|
||||
proxyRoles: [
|
||||
FastExpressionRole {
|
||||
function collectibleIcon(icon) {
|
||||
return !!icon ? icon : Theme.png("tokens/DEFAULT-TOKEN")
|
||||
return !!icon ? icon : Assets.png("tokens/DEFAULT-TOKEN")
|
||||
}
|
||||
name: "iconSource"
|
||||
expression: collectibleIcon(model.icon)
|
||||
@@ -101,7 +101,7 @@ QtObject {
|
||||
},
|
||||
FastExpressionRole {
|
||||
function collectibleIcon(icon) {
|
||||
return !!icon ? icon : Theme.png("tokens/DEFAULT-TOKEN")
|
||||
return !!icon ? icon : Assets.png("tokens/DEFAULT-TOKEN")
|
||||
}
|
||||
name: "collectionImageUrl"
|
||||
expression: collectibleIcon(model.icon)
|
||||
|
||||
@@ -35,7 +35,7 @@ StatusFlowSelector {
|
||||
!membersSelectorPanel.visible
|
||||
|
||||
title: qsTr("To")
|
||||
icon: Theme.svg("member")
|
||||
icon: Assets.svg("member")
|
||||
flowSpacing: addressesSelectorPanel.visible || membersSelectorPanel.visible
|
||||
? 12 : 6
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ StatusFlowSelector {
|
||||
placeholderItem.visible: repeater.count === 0
|
||||
|
||||
title: qsTr("What")
|
||||
icon: Theme.svg("token")
|
||||
icon: Assets.svg("token")
|
||||
|
||||
QtObject {
|
||||
id: d
|
||||
|
||||
@@ -95,7 +95,7 @@ StatusListView {
|
||||
|
||||
name: model.name
|
||||
shortName: model.shortName ?? ""
|
||||
iconSource: model.iconSource ? model.iconSource : Theme.png("tokens/DEFAULT-TOKEN")
|
||||
iconSource: model.iconSource ? model.iconSource : Assets.png("tokens/DEFAULT-TOKEN")
|
||||
showSubItemsIcon: !!model.subItems && model.subItems.count > 0
|
||||
selected: root.checkedKeys.includes(model.key)
|
||||
amount: {
|
||||
|
||||
@@ -101,7 +101,7 @@ ColumnLayout {
|
||||
Layout.bottomMargin: Theme.padding
|
||||
borderColor: Theme.palette.baseColor2
|
||||
textColor: Theme.palette.directColor1
|
||||
icon: Theme.svg("token")
|
||||
icon: Assets.svg("token")
|
||||
iconColor: Theme.palette.directColor1
|
||||
iconAlignment: Qt.AlignVCenter
|
||||
isRowLayout: false
|
||||
|
||||
@@ -45,7 +45,7 @@ QtObject {
|
||||
|
||||
function getTokenIconByKey(model, key) {
|
||||
const item = getTokenByKey(model, key)
|
||||
const defaultIcon = Theme.png("tokens/DEFAULT-TOKEN")
|
||||
const defaultIcon = Assets.png("tokens/DEFAULT-TOKEN")
|
||||
if (item)
|
||||
return item.iconSource ? item.iconSource : defaultIcon
|
||||
return defaultIcon
|
||||
|
||||
@@ -96,7 +96,7 @@ StackView {
|
||||
preferredContentWidth: root.preferredContentWidth
|
||||
internalRightPadding: root.internalRightPadding
|
||||
|
||||
image: Theme.png("community/airdrops8_1")
|
||||
image: Assets.png("community/airdrops8_1")
|
||||
title: qsTr("Airdrop community tokens")
|
||||
subtitle: qsTr("You can mint custom tokens and collectibles for your community")
|
||||
checkersModel: [
|
||||
|
||||
@@ -10,7 +10,7 @@ StatusGroupBox {
|
||||
id: root
|
||||
|
||||
title: qsTr("Fees")
|
||||
icon: Theme.svg("gas")
|
||||
icon: Assets.svg("gas")
|
||||
|
||||
// expected roles:
|
||||
//
|
||||
|
||||
@@ -277,7 +277,7 @@ Control {
|
||||
|
||||
height: 24
|
||||
width: height
|
||||
source: token.chainIcon ? Theme.svg(token.chainIcon) : undefined
|
||||
source: token.chainIcon ? Assets.svg(token.chainIcon) : undefined
|
||||
}
|
||||
|
||||
StatusBaseText {
|
||||
|
||||
@@ -40,7 +40,7 @@ Rectangle {
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: -6
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
source: Theme.svg("chatEmptyHeader")
|
||||
source: Assets.svg("chatEmptyHeader")
|
||||
width: 66
|
||||
height: 50
|
||||
}
|
||||
|
||||
@@ -424,7 +424,7 @@ StatusDropdown {
|
||||
|
||||
const chainName = asset.chainName ?? ""
|
||||
const chainIcon = asset.chainIcon
|
||||
? Theme.svg(asset.chainIcon) : ""
|
||||
? Assets.svg(asset.chainIcon) : ""
|
||||
|
||||
if (!chainName)
|
||||
return
|
||||
@@ -500,7 +500,7 @@ StatusDropdown {
|
||||
|
||||
const chainName = collectible.chainName ?? ""
|
||||
const chainIcon = collectible.chainIcon
|
||||
? Theme.svg(collectible.chainIcon) : ""
|
||||
? Assets.svg(collectible.chainIcon) : ""
|
||||
|
||||
if (!chainName)
|
||||
return
|
||||
|
||||
@@ -178,7 +178,7 @@ StatusScrollView {
|
||||
tokenImage: modelItem.iconSource,
|
||||
networkId: modelItem.chainId,
|
||||
networkText: modelItem.chainName,
|
||||
networkImage: Theme.svg(modelItem.chainIcon),
|
||||
networkImage: Assets.svg(modelItem.chainIcon),
|
||||
remainingSupply: modelItem.remainingSupply,
|
||||
multiplierIndex: modelItem.multiplierIndex,
|
||||
infiniteSupply: modelItem.infiniteSupply,
|
||||
@@ -269,7 +269,7 @@ StatusScrollView {
|
||||
property int editedIndex: -1
|
||||
|
||||
Layout.fillWidth: true
|
||||
icon: Theme.svg("token")
|
||||
icon: Assets.svg("token")
|
||||
title: qsTr("What")
|
||||
placeholderText: qsTr("Example: 1 SOCK")
|
||||
addButton.visible: model.count < d.maxAirdropTokens
|
||||
|
||||
@@ -272,7 +272,7 @@ StatusScrollView {
|
||||
asset.height: 24
|
||||
asset.width: asset.height
|
||||
asset.isImage: true
|
||||
asset.name: Theme.svg(token.chainIcon)
|
||||
asset.name: Assets.svg(token.chainIcon)
|
||||
active: true
|
||||
visible: active
|
||||
}
|
||||
|
||||
@@ -198,7 +198,7 @@ StatusScrollView {
|
||||
Layout.maximumWidth: root.preferredContentWidth
|
||||
Layout.rightMargin: root.internalRightPadding
|
||||
|
||||
icon: Theme.svg("contact_verified")
|
||||
icon: Assets.svg("contact_verified")
|
||||
title: qsTr("Who holds")
|
||||
placeholderText: qsTr("Example: 10 SNT")
|
||||
tagLeftPadding: 2
|
||||
@@ -398,7 +398,7 @@ StatusScrollView {
|
||||
|
||||
title: qsTr("Is allowed to")
|
||||
placeholderText: qsTr("Example: View and post")
|
||||
icon: Theme.svg("profile/security")
|
||||
icon: Assets.svg("profile/security")
|
||||
|
||||
readonly property bool empty:
|
||||
d.dirtyValues.permissionType === PermissionTypes.Type.None
|
||||
@@ -490,7 +490,7 @@ StatusScrollView {
|
||||
addButton.visible: editable
|
||||
itemsClickable: editable
|
||||
visible: root.showChannelSelector
|
||||
icon: d.isCommunityPermission ? Theme.svg("communities") : Theme.svg("create-category")
|
||||
icon: d.isCommunityPermission ? Assets.svg("communities") : Assets.svg("create-category")
|
||||
title: qsTr("In")
|
||||
placeholderText: qsTr("Example: `#general` channel")
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ SortFilterProxyModel {
|
||||
|
||||
function getIcon(type, key) {
|
||||
if (type === Constants.TokenType.ENS)
|
||||
return Theme.png("tokens/ENS")
|
||||
return Assets.png("tokens/ENS")
|
||||
|
||||
const model = type === Constants.TokenType.ERC20
|
||||
? assetsModel : collectiblesModel
|
||||
|
||||
@@ -122,7 +122,7 @@ StatusScrollView {
|
||||
|
||||
objectName: "introPanel"
|
||||
|
||||
image: Theme.png("community/mint2_1")
|
||||
image: Assets.png("community/mint2_1")
|
||||
title: qsTr("Community tokens")
|
||||
subtitle: qsTr("You can mint custom tokens and import tokens for your community")
|
||||
checkersModel: [
|
||||
|
||||
@@ -84,7 +84,7 @@ ColumnLayout {
|
||||
|
||||
visible: (root.count === 0 && root.allowIntroPanel)
|
||||
|
||||
image: Theme.png("community/permissions2_3")
|
||||
image: Assets.png("community/permissions2_3")
|
||||
title: qsTr("Permissions")
|
||||
subtitle: qsTr("You can manage your community by creating and issuing membership and access permissions")
|
||||
checkersModel: [
|
||||
|
||||
@@ -25,7 +25,7 @@ OnboardingStackView {
|
||||
id: keycardResetAcks
|
||||
|
||||
KeycardBasePage {
|
||||
image.source: Theme.png("onboarding/keycard/reading")
|
||||
image.source: Assets.png("onboarding/keycard/reading")
|
||||
title: qsTr("Factory reset Keycard")
|
||||
subtitle: "<font color='%1'>".arg(Theme.palette.dangerColor1) +
|
||||
qsTr("All data including the stored key pair and derived accounts will be removed from the Keycard") +
|
||||
@@ -63,8 +63,8 @@ OnboardingStackView {
|
||||
readonly property bool backAvailableHint: false
|
||||
readonly property bool resetting: root.keycardState === Onboarding.KeycardState.FactoryResetting
|
||||
|
||||
image.source: resetting ? Theme.png("onboarding/keycard/empty")
|
||||
: Theme.png("onboarding/keycard/success")
|
||||
image.source: resetting ? Assets.png("onboarding/keycard/empty")
|
||||
: Assets.png("onboarding/keycard/success")
|
||||
title: resetting ? qsTr("Reseting Keycard") : qsTr("Keycard successfully factory reset")
|
||||
subtitle: resetting ? "" : qsTr("You can now use this Keycard like it's a brand-new, empty Keycard")
|
||||
infoText.text: resetting ? qsTr("Do not remove your Keycard or reader") : ""
|
||||
|
||||
@@ -88,7 +88,7 @@ OnboardingStackView {
|
||||
id: keycardUnblockedPage
|
||||
|
||||
KeycardBasePage {
|
||||
image.source: Theme.png("onboarding/keycard/success")
|
||||
image.source: Assets.png("onboarding/keycard/success")
|
||||
title: qsTr("Your Keycard is already unblocked!")
|
||||
buttons: [
|
||||
StatusButton {
|
||||
|
||||
@@ -36,7 +36,7 @@ Control {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
fillMode: Image.PreserveAspectFit
|
||||
asynchronous: true
|
||||
source: Theme.png(root.newsModel.get(pageIndicator.currentIndex).image)
|
||||
source: Assets.png(root.newsModel.get(pageIndicator.currentIndex).image)
|
||||
}
|
||||
|
||||
StatusBaseText {
|
||||
|
||||
@@ -23,7 +23,7 @@ OnboardingPage {
|
||||
Layout.preferredHeight: 260
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
mipmap: true
|
||||
source: Theme.png("onboarding/status_seedphrase")
|
||||
source: Assets.png("onboarding/status_seedphrase")
|
||||
}
|
||||
|
||||
StatusBaseText {
|
||||
|
||||
@@ -34,7 +34,7 @@ OnboardingPage {
|
||||
Layout.preferredHeight: 260
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
mipmap: true
|
||||
source: Theme.png("onboarding/status_seedphrase")
|
||||
source: Assets.png("onboarding/status_seedphrase")
|
||||
}
|
||||
|
||||
StatusCheckBox {
|
||||
|
||||
@@ -54,7 +54,7 @@ OnboardingPage {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.preferredWidth: Math.min(252, parent.width)
|
||||
Layout.preferredHeight: Math.min(164, height)
|
||||
source: Theme.png("onboarding/status_generate_keycard")
|
||||
source: Assets.png("onboarding/status_generate_keycard")
|
||||
mipmap: true
|
||||
}
|
||||
StatusBaseText {
|
||||
@@ -93,7 +93,7 @@ OnboardingPage {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Use an existing recovery phrase")
|
||||
subTitle: qsTr("To create your Keycard-stored profile ")
|
||||
icon.source: Theme.png("onboarding/create_profile_seed")
|
||||
icon.source: Assets.png("onboarding/create_profile_seed")
|
||||
onClicked: root.createKeycardProfileWithExistingSeedphrase()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ OnboardingPage {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.preferredWidth: Math.min(164, parent.width)
|
||||
Layout.preferredHeight: Math.min(164, height)
|
||||
source: Theme.png("onboarding/status_key")
|
||||
source: Assets.png("onboarding/status_key")
|
||||
mipmap: true
|
||||
}
|
||||
StatusBaseText {
|
||||
@@ -94,7 +94,7 @@ OnboardingPage {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Use a recovery phrase")
|
||||
subTitle: qsTr("If you already have an Ethereum wallet")
|
||||
icon.source: Theme.png("onboarding/create_profile_seed")
|
||||
icon.source: Assets.png("onboarding/create_profile_seed")
|
||||
onClicked: root.createProfileWithSeedphraseRequested()
|
||||
}
|
||||
Rectangle {
|
||||
@@ -110,7 +110,7 @@ OnboardingPage {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Use an empty Keycard")
|
||||
subTitle: qsTr("Store your new profile keys on Keycard")
|
||||
icon.source: Theme.png("onboarding/create_profile_keycard")
|
||||
icon.source: Assets.png("onboarding/create_profile_keycard")
|
||||
onClicked: root.createProfileWithEmptyKeycardRequested()
|
||||
visible: root.isKeycardEnabled
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ OnboardingPage {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
mipmap: true
|
||||
smooth: false
|
||||
source: Theme.png("onboarding/enable_biometrics")
|
||||
source: Assets.png("onboarding/enable_biometrics")
|
||||
}
|
||||
|
||||
StatusBaseText {
|
||||
|
||||
@@ -47,7 +47,7 @@ OnboardingPage {
|
||||
Layout.topMargin: Theme.bigPadding
|
||||
Layout.bottomMargin: Theme.bigPadding
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
source: Theme.png("onboarding/status_totebag_artwork_1")
|
||||
source: Assets.png("onboarding/status_totebag_artwork_1")
|
||||
}
|
||||
|
||||
StatusButton {
|
||||
|
||||
@@ -30,7 +30,7 @@ OnboardingPage {
|
||||
Layout.preferredWidth: 325
|
||||
Layout.preferredHeight: 325
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
source: Theme.png("onboarding/status_chat")
|
||||
source: Assets.png("onboarding/status_chat")
|
||||
}
|
||||
|
||||
StatusBaseText {
|
||||
|
||||
@@ -26,7 +26,7 @@ OnboardingPage {
|
||||
}
|
||||
PropertyChanges {
|
||||
target: image
|
||||
source: Theme.png("onboarding/status_keycard_adding_keypair_success")
|
||||
source: Assets.png("onboarding/status_keycard_adding_keypair_success")
|
||||
}
|
||||
PropertyChanges {
|
||||
target: subImageText
|
||||
@@ -81,7 +81,7 @@ OnboardingPage {
|
||||
Layout.preferredHeight: Math.min(211, height)
|
||||
Layout.topMargin: Theme.bigPadding
|
||||
Layout.bottomMargin: Theme.bigPadding
|
||||
source: Theme.png("onboarding/status_keycard_adding_keypair")
|
||||
source: Assets.png("onboarding/status_keycard_adding_keypair")
|
||||
mipmap: true
|
||||
}
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ KeycardBasePage {
|
||||
|
||||
signal setPinRequested(string pin)
|
||||
|
||||
image.source: Theme.png("onboarding/keycard/reading")
|
||||
image.source: Assets.png("onboarding/keycard/reading")
|
||||
|
||||
buttons: [
|
||||
StatusPinInput {
|
||||
@@ -112,7 +112,7 @@ KeycardBasePage {
|
||||
}
|
||||
PropertyChanges {
|
||||
target: root
|
||||
image.source: Theme.png("onboarding/keycard/error")
|
||||
image.source: Assets.png("onboarding/keycard/error")
|
||||
}
|
||||
},
|
||||
State {
|
||||
@@ -153,7 +153,7 @@ KeycardBasePage {
|
||||
}
|
||||
PropertyChanges {
|
||||
target: root
|
||||
image.source: Theme.png("onboarding/keycard/success")
|
||||
image.source: Assets.png("onboarding/keycard/success")
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@@ -11,7 +11,7 @@ KeycardBasePage {
|
||||
|
||||
title: qsTr("Keycard is empty")
|
||||
subtitle: qsTr("There is no profile key pair on this Keycard")
|
||||
image.source: Theme.png("onboarding/keycard/error")
|
||||
image.source: Assets.png("onboarding/keycard/error")
|
||||
|
||||
buttons: [
|
||||
MaybeOutlineButton {
|
||||
|
||||
@@ -51,7 +51,7 @@ KeycardBasePage {
|
||||
|
||||
PropertyChanges {
|
||||
target: image
|
||||
source: Theme.png("onboarding/keycard/reading")
|
||||
source: Assets.png("onboarding/keycard/reading")
|
||||
}
|
||||
},
|
||||
State { // entering, wrong pin
|
||||
@@ -75,7 +75,7 @@ KeycardBasePage {
|
||||
}
|
||||
PropertyChanges {
|
||||
target: image
|
||||
source: Theme.png("onboarding/keycard/error")
|
||||
source: Assets.png("onboarding/keycard/error")
|
||||
}
|
||||
},
|
||||
State { // in progress
|
||||
@@ -97,7 +97,7 @@ KeycardBasePage {
|
||||
|
||||
PropertyChanges {
|
||||
target: image
|
||||
source: Theme.png("onboarding/keycard/reading")
|
||||
source: Assets.png("onboarding/keycard/reading")
|
||||
}
|
||||
},
|
||||
State { // success
|
||||
@@ -115,7 +115,7 @@ KeycardBasePage {
|
||||
|
||||
PropertyChanges {
|
||||
target: image
|
||||
source: Theme.png("onboarding/keycard/success")
|
||||
source: Assets.png("onboarding/keycard/success")
|
||||
}
|
||||
},
|
||||
State { // blocked
|
||||
@@ -133,7 +133,7 @@ KeycardBasePage {
|
||||
}
|
||||
PropertyChanges {
|
||||
target: image
|
||||
source: Theme.png("onboarding/keycard/error")
|
||||
source: Assets.png("onboarding/keycard/error")
|
||||
}
|
||||
PropertyChanges {
|
||||
target: btnUnblockWithSeedphrase
|
||||
|
||||
@@ -20,7 +20,7 @@ KeycardBasePage {
|
||||
signal keycardPukEntered(string puk)
|
||||
signal keycardFactoryResetRequested()
|
||||
|
||||
image.source: Theme.png("onboarding/keycard/reading")
|
||||
image.source: Assets.png("onboarding/keycard/reading")
|
||||
|
||||
QtObject {
|
||||
id: d
|
||||
@@ -82,7 +82,7 @@ KeycardBasePage {
|
||||
}
|
||||
PropertyChanges {
|
||||
target: image
|
||||
source: Theme.png("onboarding/keycard/error")
|
||||
source: Assets.png("onboarding/keycard/error")
|
||||
}
|
||||
PropertyChanges {
|
||||
target: btnFactoryReset
|
||||
|
||||
@@ -12,7 +12,7 @@ KeycardBasePage {
|
||||
|
||||
title: qsTr("Communication with Keycard lost")
|
||||
subtitle: qsTr("There seems to be an issue communicating with your Keycard. Reinsert the card or reader and try again.")
|
||||
image.source: Theme.png("onboarding/keycard/error")
|
||||
image.source: Assets.png("onboarding/keycard/error")
|
||||
|
||||
buttons: [
|
||||
MaybeOutlineButton {
|
||||
|
||||
@@ -48,7 +48,7 @@ KeycardBasePage {
|
||||
Layout.bottomMargin: -2
|
||||
Layout.preferredWidth: 154
|
||||
Layout.preferredHeight: 82
|
||||
source: Theme.png("onboarding/status_keycard_multiple")
|
||||
source: Assets.png("onboarding/status_keycard_multiple")
|
||||
}
|
||||
ColumnLayout {
|
||||
Layout.fillWidth: true
|
||||
@@ -115,7 +115,7 @@ KeycardBasePage {
|
||||
PropertyChanges {
|
||||
target: root
|
||||
title: qsTr("Plug in your Keycard reader")
|
||||
image.source: Theme.png("onboarding/keycard/empty")
|
||||
image.source: Assets.png("onboarding/keycard/empty")
|
||||
}
|
||||
PropertyChanges {
|
||||
target: promoBanner
|
||||
@@ -132,7 +132,7 @@ KeycardBasePage {
|
||||
infoText.hoveredLink,
|
||||
Theme.palette.baseColor1,
|
||||
Theme.palette.primaryColor1))
|
||||
image.source: Theme.png("onboarding/keycard/insert")
|
||||
image.source: Assets.png("onboarding/keycard/insert")
|
||||
}
|
||||
},
|
||||
State {
|
||||
@@ -141,7 +141,7 @@ KeycardBasePage {
|
||||
PropertyChanges {
|
||||
target: root
|
||||
title: qsTr("Reading Keycard...")
|
||||
image.source: Theme.png("onboarding/keycard/reading")
|
||||
image.source: Assets.png("onboarding/keycard/reading")
|
||||
}
|
||||
},
|
||||
// error states
|
||||
@@ -152,7 +152,7 @@ KeycardBasePage {
|
||||
target: root
|
||||
title: qsTr("Oops this isn’t a Keycard")
|
||||
subtitle: qsTr("Remove card and insert a Keycard")
|
||||
image.source: Theme.png("onboarding/keycard/invalid")
|
||||
image.source: Assets.png("onboarding/keycard/invalid")
|
||||
}
|
||||
},
|
||||
State {
|
||||
@@ -162,7 +162,7 @@ KeycardBasePage {
|
||||
target: root
|
||||
title: qsTr("Smartcard reader service unavailable")
|
||||
subtitle: qsTr("The Smartcard reader service (PCSC service), required for using Keycard, is not currently working. Ensure PCSC is installed and running and try again.")
|
||||
image.source: Theme.png("onboarding/keycard/error")
|
||||
image.source: Assets.png("onboarding/keycard/error")
|
||||
}
|
||||
},
|
||||
State {
|
||||
@@ -172,7 +172,7 @@ KeycardBasePage {
|
||||
target: root
|
||||
title: qsTr("All pairing slots occupied")
|
||||
subtitle: qsTr("Factory reset this Keycard or insert a different one")
|
||||
image.source: Theme.png("onboarding/keycard/error")
|
||||
image.source: Assets.png("onboarding/keycard/error")
|
||||
}
|
||||
PropertyChanges {
|
||||
target: btnFactoryReset
|
||||
@@ -186,7 +186,7 @@ KeycardBasePage {
|
||||
target: root
|
||||
title: "<font color='%1'>".arg(Theme.palette.dangerColor1) + qsTr("Keycard blocked") + "</font>"
|
||||
subtitle: qsTr("The Keycard you have inserted is blocked, you will need to unblock it or insert a different one")
|
||||
image.source: Theme.png("onboarding/keycard/error")
|
||||
image.source: Assets.png("onboarding/keycard/error")
|
||||
}
|
||||
PropertyChanges {
|
||||
target: btnUnblockWithPuk
|
||||
@@ -208,7 +208,7 @@ KeycardBasePage {
|
||||
target: root
|
||||
title: "<font color='%1'>".arg(Theme.palette.dangerColor1) + qsTr("Keycard blocked") + "</font>"
|
||||
subtitle: qsTr("The Keycard you have inserted is blocked, you will need to unblock it, factory reset or insert a different one")
|
||||
image.source: Theme.png("onboarding/keycard/error")
|
||||
image.source: Assets.png("onboarding/keycard/error")
|
||||
}
|
||||
PropertyChanges {
|
||||
target: btnUnblockWithSeedphrase
|
||||
|
||||
@@ -13,7 +13,7 @@ KeycardBasePage {
|
||||
|
||||
title: qsTr("Lost Keycard")
|
||||
subtitle: qsTr("Sorry you've lost your Keycard")
|
||||
image.source: Theme.png("onboarding/keycard/empty")
|
||||
image.source: Assets.png("onboarding/keycard/empty")
|
||||
|
||||
buttons: [
|
||||
StatusButton {
|
||||
|
||||
@@ -12,7 +12,7 @@ KeycardBasePage {
|
||||
|
||||
title: qsTr("Keycard is not empty")
|
||||
subtitle: qsTr("You can’t use it to store new keys right now")
|
||||
image.source: Theme.png("onboarding/keycard/error")
|
||||
image.source: Assets.png("onboarding/keycard/error")
|
||||
|
||||
buttons: [
|
||||
MaybeOutlineButton {
|
||||
|
||||
@@ -194,7 +194,7 @@ OnboardingPage {
|
||||
Layout.preferredWidth: 90
|
||||
Layout.preferredHeight: 90
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
source: Theme.png("status")
|
||||
source: Assets.png("status")
|
||||
mipmap: true
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ OnboardingPage {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
Layout.preferredWidth: Math.min(250, parent.width)
|
||||
Layout.preferredHeight: Math.min(250, height)
|
||||
source: Theme.png("onboarding/status_login_seedphrase")
|
||||
source: Assets.png("onboarding/status_login_seedphrase")
|
||||
mipmap: true
|
||||
}
|
||||
StatusBaseText {
|
||||
@@ -100,7 +100,7 @@ OnboardingPage {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Log in by syncing") // FIXME wording, "Log in by pairing"?
|
||||
subTitle: qsTr("If you have Status on another device")
|
||||
icon.source: Theme.png("onboarding/login_syncing")
|
||||
icon.source: Assets.png("onboarding/login_syncing")
|
||||
onClicked: loginWithSyncAck.createObject(root).open()
|
||||
}
|
||||
Rectangle {
|
||||
@@ -116,7 +116,7 @@ OnboardingPage {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("Log in with Keycard")
|
||||
subTitle: qsTr("If your profile keys are stored on a Keycard")
|
||||
icon.source: Theme.png("onboarding/create_profile_keycard")
|
||||
icon.source: Assets.png("onboarding/create_profile_keycard")
|
||||
onClicked: root.loginWithKeycardRequested()
|
||||
visible: root.isKeycardEnabled
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ OnboardingPage {
|
||||
}
|
||||
PropertyChanges {
|
||||
target: image
|
||||
source: Theme.png("onboarding/status_sync_progress")
|
||||
source: Assets.png("onboarding/status_sync_progress")
|
||||
}
|
||||
PropertyChanges {
|
||||
target: subImageText
|
||||
@@ -61,7 +61,7 @@ OnboardingPage {
|
||||
}
|
||||
PropertyChanges {
|
||||
target: image
|
||||
source: Theme.png("onboarding/status_sync_success")
|
||||
source: Assets.png("onboarding/status_sync_success")
|
||||
}
|
||||
PropertyChanges {
|
||||
target: loginButton
|
||||
@@ -85,7 +85,7 @@ OnboardingPage {
|
||||
}
|
||||
PropertyChanges {
|
||||
target: image
|
||||
source: Theme.png("onboarding/status_sync_failed")
|
||||
source: Assets.png("onboarding/status_sync_failed")
|
||||
}
|
||||
PropertyChanges {
|
||||
target: tryAgainButton
|
||||
@@ -134,7 +134,7 @@ OnboardingPage {
|
||||
Layout.preferredHeight: Math.min(214, height)
|
||||
Layout.topMargin: Theme.bigPadding
|
||||
Layout.bottomMargin: Theme.bigPadding
|
||||
source: Theme.png("onboarding/status_generate_keys")
|
||||
source: Assets.png("onboarding/status_generate_keys")
|
||||
mipmap: true
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ OnboardingPage {
|
||||
Layout.preferredWidth: 90
|
||||
Layout.preferredHeight: 90
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
source: Theme.png("status")
|
||||
source: Assets.png("status")
|
||||
mipmap: true
|
||||
layer.enabled: true
|
||||
layer.effect: DropShadow {
|
||||
|
||||
@@ -33,7 +33,7 @@ StatusListItem {
|
||||
onClicked: d.toggleActive()
|
||||
|
||||
title: chainName
|
||||
asset.name: Theme.svg(iconUrl)
|
||||
asset.name: Assets.svg(iconUrl)
|
||||
asset.isImage: true
|
||||
width: parent.width
|
||||
leftPadding: Theme.padding
|
||||
|
||||
@@ -35,7 +35,7 @@ StatusDialog {
|
||||
IntroPanel {
|
||||
Layout.fillWidth: true
|
||||
|
||||
image: Theme.png("onboarding/welcome")
|
||||
image: Assets.png("onboarding/welcome")
|
||||
imageWidth: 200
|
||||
imageBottomMargin: Theme.padding
|
||||
bottomPadding: 0
|
||||
|
||||
@@ -49,7 +49,7 @@ StatusDialog {
|
||||
implicitHeight: model.description ? 80 : 52
|
||||
title: model.name
|
||||
subTitle: model.description
|
||||
asset.name: Theme.svg(model.iconUrl)
|
||||
asset.name: Assets.svg(model.iconUrl)
|
||||
asset.isImage: true
|
||||
buttonGroup: searchEnginGroup
|
||||
checked: accountSettings.selectedBrowserSearchEngineId === model.engineId
|
||||
|
||||
@@ -15,7 +15,7 @@ StatusDialog {
|
||||
header: StatusDialogHeader {
|
||||
headline.title: qsTr("Disable %1 network").arg(chainName)
|
||||
leftComponent: StatusRoundedImage {
|
||||
image.source: Theme.svg(root.iconUrl)
|
||||
image.source: Assets.svg(root.iconUrl)
|
||||
width: 40
|
||||
height: 40
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ SettingsContentBase {
|
||||
id: statusIcon
|
||||
width: 80
|
||||
height: 80
|
||||
source: root.isProduction ? Theme.png("status-logo-circle") : Theme.png("status-logo-dev-circle")
|
||||
source: root.isProduction ? Assets.png("status-logo-circle") : Assets.png("status-logo-dev-circle")
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
mipmap: true
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ SettingsContentBase {
|
||||
|
||||
StatusImageRadioButton {
|
||||
Layout.fillWidth: true
|
||||
image.source: Theme.png("appearance-light")
|
||||
image.source: Assets.png("appearance-light")
|
||||
control.text: qsTr("Light")
|
||||
control.checked: root.theme === Theme.Style.Light
|
||||
onRadioCheckedChanged: function(checked) {
|
||||
@@ -149,7 +149,7 @@ SettingsContentBase {
|
||||
|
||||
StatusImageRadioButton {
|
||||
Layout.fillWidth: true
|
||||
image.source: Theme.png("appearance-dark")
|
||||
image.source: Assets.png("appearance-dark")
|
||||
control.text: qsTr("Dark")
|
||||
control.checked: root.theme === Theme.Style.Dark
|
||||
onRadioCheckedChanged: function(checked) {
|
||||
@@ -161,7 +161,7 @@ SettingsContentBase {
|
||||
|
||||
StatusImageRadioButton {
|
||||
Layout.fillWidth: true
|
||||
image.source: Theme.png("appearance-system")
|
||||
image.source: Assets.png("appearance-system")
|
||||
control.text: qsTr("System")
|
||||
control.checked: root.theme === Theme.Style.System
|
||||
onRadioCheckedChanged: function(checked) {
|
||||
|
||||
@@ -60,7 +60,7 @@ SettingsContentBase {
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||
|
||||
Image {
|
||||
source: Theme.png("settings/communities")
|
||||
source: Assets.png("settings/communities")
|
||||
mipmap: true
|
||||
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
||||
Layout.preferredWidth: 434
|
||||
|
||||
@@ -77,7 +77,7 @@ Item {
|
||||
SVGImage {
|
||||
visible: ensStatus === Constants.ens_taken
|
||||
fillMode: Image.PreserveAspectFit
|
||||
source: Theme.svg("block-icon-white")
|
||||
source: Assets.svg("block-icon-white")
|
||||
width: 20
|
||||
height: 20
|
||||
anchors.centerIn: parent
|
||||
|
||||
@@ -312,7 +312,7 @@ Item {
|
||||
id: image1
|
||||
height: 50
|
||||
width: height
|
||||
source: Theme.png("tokens/SNT")
|
||||
source: Assets.png("tokens/SNT")
|
||||
sourceSize: Qt.size(width, height)
|
||||
cache: false
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ Item {
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
fillMode: Image.PreserveAspectFit
|
||||
source: Theme.png("ens/ens-header-" + Theme.palette.name + "@2x")
|
||||
source: Assets.png("ens/ens-header-" + Theme.palette.name + "@2x")
|
||||
cache: false
|
||||
}
|
||||
|
||||
|
||||
@@ -455,7 +455,7 @@ SettingsContentBase {
|
||||
StatusRoundedImage {
|
||||
width: 28
|
||||
height: 28
|
||||
image.source: Theme.svg(!!editNetwork.network && !!editNetwork.network.iconUrl ? editNetwork.network.iconUrl: "")
|
||||
image.source: Assets.svg(!!editNetwork.network && !!editNetwork.network.iconUrl ? editNetwork.network.iconUrl: "")
|
||||
image.fillMode: Image.PreserveAspectCrop
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ ColumnLayout {
|
||||
Layout.preferredWidth: 350
|
||||
fillMode: Image.PreserveAspectFit
|
||||
antialiasing: true
|
||||
source: Theme.png("keycard/keycard-security")
|
||||
source: Assets.png("keycard/keycard-security")
|
||||
mipmap: true
|
||||
cache: false
|
||||
}
|
||||
|
||||
@@ -345,14 +345,14 @@ QtObject {
|
||||
function getIconForFeeMode(feeMode) {
|
||||
switch(feeMode) {
|
||||
case Constants.FeePriorityModeType.Fast:
|
||||
return Theme.png("wallet/car")
|
||||
return Assets.png("wallet/car")
|
||||
case Constants.FeePriorityModeType.Urgent:
|
||||
return Theme.png("wallet/rocket")
|
||||
return Assets.png("wallet/rocket")
|
||||
case Constants.FeePriorityModeType.Custom:
|
||||
return Theme.png("wallet/handwrite")
|
||||
return Assets.png("wallet/handwrite")
|
||||
case Constants.FeePriorityModeType.Normal:
|
||||
default:
|
||||
return Theme.png("wallet/clock")
|
||||
return Assets.png("wallet/clock")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ QObject {
|
||||
readonly property string key: model.symbol
|
||||
|
||||
readonly property url icon:
|
||||
model.imageUrl || model.mediaUrl || Theme.png("tokens/DEFAULT-TOKEN")
|
||||
model.imageUrl || model.mediaUrl || Assets.png("tokens/DEFAULT-TOKEN")
|
||||
|
||||
SortFilterProxyModel { /* 1 */
|
||||
id: ownershipFiltered
|
||||
|
||||
@@ -227,7 +227,7 @@ Control {
|
||||
InformationTag {
|
||||
id: networkTag
|
||||
readonly property bool isNetworkValid: networkShortName !== ""
|
||||
asset.name: isNetworkValid && networkIconURL !== "" ? Theme.svg(networkIconURL) : ""
|
||||
asset.name: isNetworkValid && networkIconURL !== "" ? Assets.svg(networkIconURL) : ""
|
||||
asset.isImage: true
|
||||
tagPrimaryLabel.text: isNetworkValid ? networkShortName : "---"
|
||||
tagPrimaryLabel.color: isNetworkValid ? networkColor : "black"
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user