Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
f599c99
Theme: basic types for new theming system
micieslak Nov 19, 2025
eef1a7b
Theme: added ability to access root Theme via attached property
micieslak Nov 19, 2025
37e7ed7
Theme: radius property added
micieslak Nov 24, 2025
81ecb5b
Theme: Assets and Fonts component added
micieslak Nov 19, 2025
05fa413
Theme: font size handling added
micieslak Nov 20, 2025
4973744
Theme: ThemeUtils component added
micieslak Nov 21, 2025
f92bec8
Theme: old components removed
micieslak Nov 25, 2025
a60334e
Theme: convert Theme.fontSizeXX access
micieslak Nov 21, 2025
e73bf8a
Theme: update fonts handling
micieslak Nov 21, 2025
9b92f43
Theme: update png/svg/emoji calls
micieslak Nov 21, 2025
7a02d11
Theme: usage of portraitBreakpoint refactored
micieslak Nov 21, 2025
78819cd
Theme: usage disabledOpacity/pressedOpacity refactored
micieslak Nov 21, 2025
b8d4386
Theme: AnimationDuration refactored
micieslak Nov 21, 2025
4f8ea88
Theme: FontSize and PaddingFactor enums refactored
micieslak Nov 24, 2025
9cf43d5
Theme: default paddings exposed from attached type
micieslak Nov 25, 2025
a64f6bf
Theme: getColor/alphaColor access updated
micieslak Nov 25, 2025
323507e
Theme: theme style/font/padding handling updated
micieslak Nov 25, 2025
121c493
Theme: StatusFlatRoundButton theme fixed
micieslak Dec 1, 2025
b3d8ed3
Theme: ProfileUtils adjusted
micieslak Dec 1, 2025
1841555
Theme: StatusProfileImageSettings adjusted
micieslak Dec 1, 2025
9bdbc81
Theme: Utils adjusted
micieslak Dec 1, 2025
a4dc7fb
Theme: QTBUG-142248 workaround added
micieslak Dec 1, 2025
7bd736c
Theme: theme usage in Shape and other non-Item components fixed
micieslak Dec 1, 2025
9be4225
Theme: removed direct access to theme from Utils singleton
micieslak Dec 2, 2025
d8bd9b8
Theme: card color added to palette
micieslak Dec 3, 2025
469f75e
Theme: Unused entries from Constants removed
micieslak Dec 3, 2025
c1d0423
Theme: Constants adjusted and workaround to propagate theme settings
micieslak Dec 3, 2025
72c95b6
Theme: fixed colors removed from ThemePalette
micieslak Dec 4, 2025
cd2899f
Theme: StatusColors defined directly as separate constants
micieslak Dec 4, 2025
79844c1
Theme: StatusColors usage refactored to use explicit properties inste…
micieslak Dec 4, 2025
b8347ee
Theme: WalletUtils refactored
micieslak Dec 5, 2025
af3312b
Theme: style names defined as constants
micieslak Dec 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion monitoring/MonitorEntryPoint.qml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ Component {
readonly property bool last: headerRepeater.count - 1 === index

text: model.name + (last ? "" : " -> ")
font.pixelSize: Theme.fontSize20
font.pixelSize: Theme.fontSize(20)
font.bold: true

selectByMouse: true
Expand Down
6 changes: 4 additions & 2 deletions storybook/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ import QtQuick.Dialogs
import QtMultimedia

ApplicationWindow {
id: root

width: 1450
height: 840
visible: true
Expand All @@ -26,7 +28,7 @@ ApplicationWindow {

anchors.fill: parent

onDarkModeChanged: Theme.changeTheme(darkMode ? Theme.Style.Dark
: Theme.Style.Light)
onDarkModeChanged: ThemeUtils.setTheme(root, darkMode ? ThemeUtils.Style.Dark
: ThemeUtils.Style.Light)
}
}
4 changes: 2 additions & 2 deletions storybook/pages/AccountViewPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ SplitView {
id: d
readonly property string emptyString: ""

property var dummyOverview: updateDummyView(StatusColors.colors['black'])
property var dummyOverview: updateDummyView(StatusColors.black)

function updateDummyView(color) {
const clr = Utils.getIdForColor(color)
const clr = Utils.getIdForColor(root.Theme.palette, color)
dummyOverview = ({
name: "helloworld",
address: "0xcdc2ea3b6ba8fed3a3402f8db8b2fab53e7b7421",
Expand Down
12 changes: 6 additions & 6 deletions storybook/pages/AirdropTokensSelectorPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/BannerCardPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/BiometricsPopup.qml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Dialog {
Layout.fillWidth: true
horizontalAlignment: Qt.AlignHCenter
text: "Status Desktop"
font.pixelSize: Theme.fontSize20
font.pixelSize: Theme.fontSize(20)
}
Label {
Layout.fillWidth: true
Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/CollectibleDetailViewPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ SplitView {
}
return {
name : "Mock Community",
image : Theme.png("tokens/UNI"),
image : Assets.png("tokens/UNI"),
color : "orchid"
}
}
Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/ColumnHeaderPanelPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
10 changes: 5 additions & 5 deletions storybook/pages/CommunityInfoEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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")
}
}

Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/ConcatModelPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Item {
Label {
height: implicitHeight * 2
text: section + " inset"
font.pixelSize: Theme.fontSize20
font.pixelSize: Theme.fontSize(20)
font.bold: true
font.underline: true

Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/CurrencyAmountToLocaleStringPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ SplitView {
text: {
return LocaleUtils.currencyAmountToLocaleString(d.currencyAmount, d.options)
}
font.pixelSize: Theme.fontSize24
font.pixelSize: Theme.fontSize(24)
}
}

Expand Down
4 changes: 2 additions & 2 deletions storybook/pages/DerivationPathInputPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ SplitView {

Layout.fillWidth: true

font.pixelSize: Theme.fontSize22
font.pixelSize: Theme.fontSize(22)
font.italic: true
color: "red"
}
Expand All @@ -148,7 +148,7 @@ SplitView {

Layout.fillWidth: true

font.pixelSize: Theme.fontSize22
font.pixelSize: Theme.fontSize(22)
font.italic: true
color: "orange"
}
Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/ExportControlNodePopupPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions storybook/pages/FunctionAggregatorPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Storybook
Control {
id: root

font.pixelSize: Theme.fontSize16
font.pixelSize: Theme.fontSize(16)
padding: 10

ListModel {
Expand Down Expand Up @@ -131,7 +131,7 @@ Control {

insetComponent: Button {
height: 20
font.pixelSize: Theme.fontSize11
font.pixelSize: Theme.fontSize(11)
text: "remove"

onClicked: {
Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/ImagesGridViewPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Pane {
Label {
anchors.centerIn: parent
text: "image " + index
font.pixelSize: Theme.fontSize20
font.pixelSize: Theme.fontSize(20)
}

Image {
Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/ImportControlNodePopupPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down
8 changes: 4 additions & 4 deletions storybook/pages/InlineNetworksComboBoxPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/IntroPanelPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions storybook/pages/JoinCommunityViewPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down Expand Up @@ -176,7 +176,7 @@ Nemo enim 😋 ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,
Layout.fillWidth: true
text: "BLUR INFO EDITOR"
font.bold: true
font.pixelSize: Theme.fontSize18
font.pixelSize: Theme.fontSize(18)
}

CommunityInfoEditor {
Expand Down Expand Up @@ -216,7 +216,7 @@ Nemo enim 😋 ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,
Layout.fillWidth: true
text: "JOIN TYPES"
font.bold: true
font.pixelSize: Theme.fontSize18
font.pixelSize: Theme.fontSize(18)
}

ColumnLayout {
Expand Down Expand Up @@ -257,7 +257,7 @@ Nemo enim 😋 ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit,
Layout.fillWidth: true
text: "JOIN HOLDINGS EDITOR"
font.bold: true
font.pixelSize: Theme.fontSize18
font.pixelSize: Theme.fontSize(18)
}

JoinCommunityPermissionsEditor {
Expand Down
6 changes: 3 additions & 3 deletions storybook/pages/LinkPreviewCardPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions storybook/pages/ModelEntryPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Control {
insetComponent: RowLayout {
Button {
height: 20
font.pixelSize: Theme.fontSize11
font.pixelSize: Theme.fontSize(11)
text: "remove"
highlighted: model.index === itemData.row

Expand All @@ -115,7 +115,7 @@ Control {
}
Button {
height: 20
font.pixelSize: Theme.fontSize11
font.pixelSize: Theme.fontSize(11)
text: "edit"
highlighted: model.index === itemData.row

Expand All @@ -135,7 +135,7 @@ Control {
width: parent.width
text: "Item Signals"
font.bold: true
font.pixelSize: Theme.fontSize16
font.pixelSize: Theme.fontSize(16)
bottomPadding: 20
Button {
anchors.right: parent.right
Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/MovableModelWithSfpmPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ Item {
Layout.alignment: Qt.AlignHCenter

text: "SAVE ORDER"
font.pixelSize: Theme.fontSize30
font.pixelSize: Theme.fontSize(30)

onClicked: {
const count = simpleSourceModel.count
Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/NetworkSelectItemDelegatePage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion storybook/pages/NotificationAvatarPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading