Skip to content

Commit

Permalink
[foilpics] Tweaking password entry UI
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Jun 18, 2022
1 parent 6f5da89 commit c6e7ad0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion foil-ui
11 changes: 5 additions & 6 deletions qml/EncryptedPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Page {
(nextPage && parent && nextPage.parent !== parent.attachedContainer)
readonly property real screenHeight: isPortrait ? Screen.height : Screen.width

// Otherwise width is changing with a delay, which may cause weird layout
// adjustments when on-screen keyboard is visible
onIsLandscapeChanged: width = isLandscape ? Screen.height : Screen.width

function getFoilUi() {
if (!foilUi) {
foilUi = foilUiComponent.createObject(thisPage)
Expand All @@ -32,11 +36,6 @@ Page {
id: foilUiComponent

QtObject {
readonly property real opacityFaint: 0.2
readonly property real opacityLow: 0.4
readonly property real opacityHigh: 0.6
readonly property real opacityOverlay: 0.8

readonly property var settings: FoilPicsSettings
readonly property bool otherFoilAppsInstalled: FoilPics.otherFoilAppsInstalled
function isLockedState(foilState) {
Expand Down Expand Up @@ -247,7 +246,7 @@ Page {
Rectangle {
id: circle

width: Theme.itemSizeHuge
width: isPortrait ? Theme.itemSizeHuge : Theme.itemSizeExtraLarge
height: width
color: Theme.rgba(Theme.primaryColor, 0.08)
radius: width/2
Expand Down

0 comments on commit c6e7ad0

Please sign in to comment.