Krolyxon
Commit ed4e5ea

Branches

Refs →

aurora.configquickshellauroraNum.qml

16 lines · 647 B · QML

1import QtQuick
2
3// Numbers and short words in Doto (dot matrix, round dots, black weight). Never smaller than 26px.
4// Doto's line box is 1.2em; the negative padding trims it to ~.85em (lineHeight does nothing on a one-line Text).
5// Extra space goes on top of it: `topPadding: lead + 8`.
6// Ported from glyph-rice (github.com/Nebelung-cloud/glyph-rice, GPL-3.0), components/Num.qml.
7Text {
8 readonly property real lead: -0.175 * font.pixelSize
9 font.family: Theme.dot
10 font.pixelSize: 44
11 font.weight: Font.Black
12 font.variableAxes: ({ "ROND": 100, "wght": 900 })
13 topPadding: lead
14 bottomPadding: lead
15 color: Theme.fg
16}