mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-01 07:53:25 +00:00
QML UI: log the font in use
This shows that we are, indeed, using Roboto on Android. Which means I can close the first of Davide's design issues: Fixes #427 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
157e14e11d
commit
4a2e21cf7b
1 changed files with 4 additions and 0 deletions
|
@ -37,6 +37,10 @@ Kirigami.ApplicationWindow {
|
||||||
}
|
}
|
||||||
FontMetrics {
|
FontMetrics {
|
||||||
id: fontMetrics
|
id: fontMetrics
|
||||||
|
Component.onCompleted: {
|
||||||
|
console.log("Using the following font: " + fontMetrics.font.family)
|
||||||
|
}
|
||||||
|
|
||||||
/* this shouldn't be needed anymore
|
/* this shouldn't be needed anymore
|
||||||
Component.onCompleted: {
|
Component.onCompleted: {
|
||||||
if (Math.round(rootItem.width / Kirigami.Units.gridUnit) < 20) {
|
if (Math.round(rootItem.width / Kirigami.Units.gridUnit) < 20) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue