Skip to content

Commit

Permalink
chore: small cleanups
Browse files Browse the repository at this point in the history
- update imports
- fix wrong filename in qmldir
- don't use hardcoded metrics
  • Loading branch information
caybro committed Feb 5, 2025
1 parent 09bdb95 commit 32315aa
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions ui/StatusQ/src/StatusQ/Controls/StatusBaseInput.qml
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ Item {
selectionColor: Theme.palette.primaryColor2
selectedTextColor: color
focus: true
font.pixelSize: 15
font.pixelSize: Theme.primaryTextFontSize
font.family: Theme.baseFont.name
color: root.enabled ? Theme.palette.directColor1 : Theme.palette.baseColor1
wrapMode: root.multiline ? Text.WrapAtWordBoundaryOrAnywhere : TextEdit.NoWrap
Expand Down Expand Up @@ -442,7 +442,6 @@ Item {
visible: (edit.length === 0)
anchors.fill: parent
verticalAlignment: parent.verticalAlignment
font.pixelSize: 15
wrapMode: root.multiline ? Text.WrapAnywhere : Text.NoWrap
elide: root.multiline? Text.ElideNone : Text.ElideRight
color: root.enabled ? Theme.palette.baseColor1 : Theme.palette.directColor6
Expand Down
4 changes: 2 additions & 2 deletions ui/StatusQ/src/StatusQ/Controls/StatusInput.qml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import QtQuick 2.14
import QtQuick.Layouts 1.14
import QtQuick 2.15
import QtQuick.Layouts 1.15

import StatusQ.Core 0.1
import StatusQ.Core.Theme 0.1
Expand Down
2 changes: 1 addition & 1 deletion ui/app/AppLayouts/Onboarding2/qmldir
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CreateNewProfileFlow 1.0 CreateNewProfileFlow.qml
KeycardCreateProfileFlow 1.0 KeycardCreateProfileFlow.qml
KeycardCreateReplacementFlow 1.0 KeycardCreateReplacementFlow.qml
KeycardFactoryResetFlow 1.0 KeycardFactoryResetFlow.qml
LoginByKeycardFlow 1.0 LoginByKeycardFlow.qml
LoginWithKeycardFlow 1.0 LoginWithKeycardFlow.qml
LoginBySyncingFlow 1.0 LoginBySyncingFlow.qml
OnboardingFlow 1.0 OnboardingFlow.qml
OnboardingLayout 1.0 OnboardingLayout.qml
Expand Down
2 changes: 1 addition & 1 deletion ui/imports/shared/controls/Timer.qml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import QtQuick 2.13
import QtQuick 2.15

Timer {
id: timer
Expand Down

0 comments on commit 32315aa

Please sign in to comment.