2 * Copyright 2025-2026 Volla Systeme GmbH
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18import QtQuick.Window 2.2
19import Lomiri.Components 1.3
30 visible: Powerd.highBrightnessModeEnabled
32 // TODO: read from deviceinfo or biometryd?
33 property real baseX: deviceConfig.sensorLocationX
34 property real baseY: deviceConfig.sensorLocationY
35 property real sensorRadius: deviceConfig.sensorRadius
37 property real sensorLocationX : {
38 switch (Screen.orientation) {
39 case Qt.PortraitOrientation:
41 case Qt.LandscapeOrientation:
43 case Qt.InvertedPortraitOrientation:
44 return parent.width - baseX
45 case Qt.InvertedLandscapeOrientation:
46 return parent.height - baseY
52 property real sensorLocationY: {
53 switch (Screen.orientation) {
54 case Qt.PortraitOrientation:
56 case Qt.LandscapeOrientation:
57 return parent.width - baseX
58 case Qt.InvertedPortraitOrientation:
59 return parent.height - baseY
60 case Qt.InvertedLandscapeOrientation:
75 width: udfps.sensorRadius * 2
79 x: udfps.sensorLocationX - udfps.sensorRadius
80 y: udfps.sensorLocationY - udfps.sensorRadius