Skip to content

Instantly share code, notes, and snippets.

@nemishkor
Created February 11, 2024 12:09
Show Gist options
  • Save nemishkor/966879b56cbb5a6bd20ad7a1c7b602f1 to your computer and use it in GitHub Desktop.
Save nemishkor/966879b56cbb5a6bd20ad7a1c7b602f1 to your computer and use it in GitHub Desktop.
Sailfish colors
Repeater {
enabled: false
model: ListModel {
ListElement { text: "primaryColor" }
ListElement { text: "darkPrimaryColor" }
ListElement { text: "lightPrimaryColor" }
ListElement { text: "secondaryColor" }
ListElement { text: "secondaryHighlightColor" }
ListElement { text: "darkSecondaryColor" }
ListElement { text: "lightSecondaryColor" }
ListElement { text: "errorColor" }
ListElement { text: "highlightColor" }
ListElement { text: "highlightDimmerColor" }
ListElement { text: "highlightBackgroundColor" }
ListElement { text: "backgroundGlowColor" }
ListElement { text: "overlayBackgroundColor" }
ListElement { text: "backgroundGlowColor" }
}
delegate: Item {
width: parent.width
height: Theme.itemSizeSmall + label.height + Theme.paddingMedium
Rectangle {
anchors {
top: parent.top
left: parent.left
right: parent.right
}
height: Theme.itemSizeSmall
color: Theme[model.text]
}
Label {
id: label
anchors.bottom: parent.bottom
anchors.bottomMargin: Theme.paddingMedium
anchors.horizontalCenter: parent.horizontalCenter
text: model.text
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment