Add useful font sizes to Style.qml

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-01-15 17:08:11 +08:00
parent a469d44123
commit 472bba8149
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -33,6 +33,10 @@ QtObject {
// We are using pixel size because this is cross platform comparable, point size isn't // We are using pixel size because this is cross platform comparable, point size isn't
readonly property int topLinePixelSize: pixelSize readonly property int topLinePixelSize: pixelSize
readonly property int subLinePixelSize: topLinePixelSize - 2 readonly property int subLinePixelSize: topLinePixelSize - 2
readonly property int defaultFontPtSize: fontMetrics.font.pointSize
readonly property int subheaderFontPtSize: defaultFontPtSize + 2
readonly property int headerFontPtSize: defaultFontPtSize + 4
readonly property int titleFontPtSize: defaultFontPtSize + 8
// Dimensions and sizes // Dimensions and sizes
property int trayWindowWidth: variableSize(400) property int trayWindowWidth: variableSize(400)