linphone-desktop/Linphone/view/Style/Typography.qml
2025-06-20 15:50:31 +02:00

138 lines
4.2 KiB
QML

pragma Singleton
import QtQuick
QtObject {
// Title/H4 - Bloc title
property font h4: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(16 * DefaultStyle.dp),
weight: Math.min(Math.round(800 * DefaultStyle.dp), 1000)
})
// Title/H3M - Bloc title
property font h3m: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(16 * DefaultStyle.dp),
weight: Math.min(Math.round(800 * DefaultStyle.dp), 1000)
})
// Title/H3 - Bloc title
property font h3: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(22 * DefaultStyle.dp),
weight: Math.min(Math.round(800 * DefaultStyle.dp), 1000)
})
// Title/H2M - Large bloc title
property font h2m: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(20 * DefaultStyle.dp),
weight: Math.min(Math.round(800 * DefaultStyle.dp), 1000)
})
// Title/H2 - Large bloc title
property font h2: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(29 * DefaultStyle.dp),
weight: Math.min(Math.round(800 * DefaultStyle.dp), 1000)
})
// Title/H1 - Large bloc title
property font h1: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(36 * DefaultStyle.dp),
weight: Math.min(Math.round(800 * DefaultStyle.dp), 1000)
})
// Text/P4 - Xsmall paragraph text
property font p4: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(10 * DefaultStyle.dp),
weight: Math.min(Math.round(300 * DefaultStyle.dp), 1000)
})
// Text/P3 - Reduced paragraph text
property font p3: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(12 * DefaultStyle.dp),
weight: Math.min(Math.round(300 * DefaultStyle.dp), 1000)
})
// Text/P2 - Bold, reduced paragraph text
property font p2: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(13 * DefaultStyle.dp),
weight: Math.min(Math.round(700 * DefaultStyle.dp), 1000)
})
// Text/P2l - Large Bold, reduced paragraph text
property font p2l: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(14 * DefaultStyle.dp),
weight: Math.min(Math.round(700 * DefaultStyle.dp), 1000)
})
// Text/P1 - Paragraph text
property font p1: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(14 * DefaultStyle.dp),
weight: Math.min(Math.round(400 * DefaultStyle.dp), 1000)
})
// Text/P1s - Paragraph text
property font p1s: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(13 * DefaultStyle.dp),
weight: Math.min(Math.round(400 * DefaultStyle.dp), 1000)
})
// Text/P1 - Paragraph text
property font p1b: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(15 * DefaultStyle.dp),
weight: Math.min(Math.round(400 * DefaultStyle.dp), 1000)
})
// Button/B1 - Big Button
property font b1: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(18 * DefaultStyle.dp),
weight: Math.min(Math.round(600 * DefaultStyle.dp), 1000)
})
// Button/B2 - Medium Button
property font b2: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(15 * DefaultStyle.dp),
weight: Math.min(Math.round(600 * DefaultStyle.dp), 1000)
})
// Button/B3 - Small Button
property font b3: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(13 * DefaultStyle.dp),
weight: Math.min(Math.round(600 * DefaultStyle.dp), 1000)
})
// FileView/F1 - File View name text
property font f1: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(11 * DefaultStyle.dp),
weight: Math.min(Math.round(700 * DefaultStyle.dp), 1000)
})
// FileView/F1light - File View size text
property font f1l: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(10 * DefaultStyle.dp),
weight: Math.min(Math.round(500 * DefaultStyle.dp), 1000)
})
// FileView/F1light - Duration text
property font d1: Qt.font( {
family: DefaultStyle.defaultFont,
pixelSize: Math.round(8 * DefaultStyle.dp),
weight: Math.min(Math.round(600 * DefaultStyle.dp), 1000)
})
}