@@ -91,6 +91,11 @@ Item {
92 clip: true
92 clip: true
94+ // This is so that we can draw our own dots, for we want
95+ // complete control over the pixel sizes. (The ubuntu font
96+ // has oddly sized password characters that don't scale right)
94 // simulate being disabled, but without removing OSK focus
99 // simulate being disabled, but without removing OSK focus
95 maximumLength: root.entryEnabled ? 32767 : length
100 maximumLength: root.entryEnabled ? 32767 : length
@@ -103,6 +108,24 @@ Item {
113+ anchors.centerIn: entryContainer
115+ property real dotSize: Math.min(units.gu(2), entryContainer.width / pinentryField.length)
116+ spacing: Math.min(units.gu(2), Math.max(0, (entryContainer.width / pinentryField.length) - dotSize))
119+ model: pinentryField.length
120+ delegate: Rectangle {
122+ width: dotRow.dotSize
107 id: wrongNoticeLabel
130 id: wrongNoticeLabel
108 objectName: "wrongNoticeLabel"
131 objectName: "wrongNoticeLabel"