mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-11 14:54:48 +00:00
ac7deb3af0
Sticker pack details retreived from contract: - pack data decoded from contract response - data contains contentHash which, once decoded, contains an IPFS identifier - futher pack data in EDN format is downloaded from IPFS - the EDN info is decoded in to a StickerPack List of available packs from contract are obtained separately from list of installed contracts (stored as a setting in Status-go). Sticker market contains dynamic list of sticker packs. The sticker button shown for each pack has all states defined (in the design) for all UI states (ie bought, free, installed, pending, etc) Add modal popup showing sticker pack details and list of stickers to be un/installed. Contains a "larger" version of the sticker pack button with many differnt UI states defined. Uninstallation of a sticker pack removes those sticker pack's stickers from the recent sticker list and persists the list Simplify the view model by including stickers, instead of setting an "activeStickerPackId" property. This allowed for display of sticker pack stickers to be displayed in the modal popup separately from the sticker packs shown in the market.
37 lines
1.5 KiB
QML
37 lines
1.5 KiB
QML
pragma Singleton
|
|
|
|
import QtQuick 2.13
|
|
|
|
QtObject {
|
|
property QtObject fontMedium: FontLoader { id: _fontMedium; source: "../fonts/InterStatus/InterStatus-Medium.otf"; }
|
|
property QtObject fontBold: FontLoader { id: _fontBold; source: "../fonts/InterStatus/InterStatus-Bold.otf"; }
|
|
property QtObject fontLight: FontLoader { id: _fontLight; source: "../fonts/InterStatus/InterStatus-Light.otf"; }
|
|
property QtObject fontRegular: FontLoader { id: _fontRegular; source: "../fonts/InterStatus/InterStatus-Regular.otf"; }
|
|
|
|
|
|
readonly property color white: "#FFFFFF"
|
|
readonly property color white2: "#FCFCFC"
|
|
readonly property color black: "#000000"
|
|
readonly property color grey: "#EEF2F5"
|
|
readonly property color lightBlue: "#ECEFFC"
|
|
readonly property color blue: "#4360DF"
|
|
readonly property color transparent: "#00000000"
|
|
readonly property color darkGrey: "#939BA1"
|
|
readonly property color lightBlueText: "#8f9fec"
|
|
readonly property color darkBlue: "#3c55c9"
|
|
readonly property color darkBlueBtn: "#5a70dd"
|
|
readonly property color red: "#FF2D55"
|
|
readonly property color lightRed: "#FFEAEE"
|
|
readonly property color green: "#4EBC60"
|
|
|
|
readonly property int xlPadding: 32
|
|
readonly property int bigPadding: 24
|
|
readonly property int padding: 16
|
|
readonly property int smallPadding: 10
|
|
readonly property int radius: 8
|
|
|
|
readonly property int leftTabPrefferedSize: 340
|
|
readonly property int leftTabMinimumWidth: 300
|
|
readonly property int leftTabMaximumWidth: 500
|
|
}
|