forked from Shinonome/dots-hyprland
cheatsheet: added element weight to periodic table
This commit is contained in:
@@ -26,13 +26,35 @@ RippleButton {
|
|||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: elementNumber
|
id: elementNumber
|
||||||
anchors.centerIn: parent
|
anchors.left: parent.left
|
||||||
color: Appearance.colors.colOnLayer2
|
color: Appearance.colors.colOnLayer2
|
||||||
text: root.element.number
|
text: root.element.number
|
||||||
font.pixelSize: Appearance.font.pixelSize.smallest
|
font.pixelSize: Appearance.font.pixelSize.smallest
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
anchors {
|
||||||
|
top: parent.top
|
||||||
|
right: parent.right
|
||||||
|
topMargin: 4
|
||||||
|
rightMargin: 4
|
||||||
|
}
|
||||||
|
color: Appearance.colors.colLayer2
|
||||||
|
radius: Appearance.rounding.full
|
||||||
|
implicitWidth: Math.max(20, elementWeight.implicitWidth)
|
||||||
|
implicitHeight: Math.max(20, elementWeight.implicitHeight)
|
||||||
|
width: height
|
||||||
|
|
||||||
|
StyledText {
|
||||||
|
id: elementWeight
|
||||||
|
anchors.right: parent.right
|
||||||
|
color: Appearance.colors.colOnLayer2
|
||||||
|
text: root.element.weight
|
||||||
|
font.pixelSize: Appearance.font.pixelSize.smallest
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: elementSymbol
|
id: elementSymbol
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|||||||
Reference in New Issue
Block a user