standardize services import alias to S in applets and lock
This commit is contained in:
parent
0160e4a1fb
commit
9a079fe2f1
10 changed files with 202 additions and 202 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import QtQuick
|
||||
import "../services" as M
|
||||
import "../services" as S
|
||||
|
||||
Item {
|
||||
id: root
|
||||
|
|
@ -15,18 +15,18 @@ Item {
|
|||
anchors.fill: parent
|
||||
color: {
|
||||
if (root.state === "fail" || root.state === "error")
|
||||
return Qt.rgba(M.Theme.base08.r, M.Theme.base08.g, M.Theme.base08.b, 0.15);
|
||||
return Qt.rgba(S.Theme.base08.r, S.Theme.base08.g, S.Theme.base08.b, 0.15);
|
||||
if (root.state === "busy")
|
||||
return Qt.rgba(M.Theme.base0D.r, M.Theme.base0D.g, M.Theme.base0D.b, 0.1);
|
||||
return M.Theme.base02;
|
||||
return Qt.rgba(S.Theme.base0D.r, S.Theme.base0D.g, S.Theme.base0D.b, 0.1);
|
||||
return S.Theme.base02;
|
||||
}
|
||||
radius: height / 2
|
||||
border.color: {
|
||||
if (root.state === "fail" || root.state === "error")
|
||||
return M.Theme.base08;
|
||||
return S.Theme.base08;
|
||||
if (root.state === "busy")
|
||||
return M.Theme.base0D;
|
||||
return M.Theme.base03;
|
||||
return S.Theme.base0D;
|
||||
return S.Theme.base03;
|
||||
}
|
||||
border.width: 1
|
||||
|
||||
|
|
@ -52,9 +52,9 @@ Item {
|
|||
return "Too many attempts";
|
||||
return "Enter password";
|
||||
}
|
||||
color: M.Theme.base04
|
||||
font.pixelSize: M.Theme.fontSize
|
||||
font.family: M.Theme.fontFamily
|
||||
color: S.Theme.base04
|
||||
font.pixelSize: S.Theme.fontSize
|
||||
font.family: S.Theme.fontFamily
|
||||
opacity: root.buffer.length === 0 ? 1 : 0
|
||||
|
||||
Behavior on opacity {
|
||||
|
|
@ -78,7 +78,7 @@ Item {
|
|||
width: 10
|
||||
height: 10
|
||||
radius: 5
|
||||
color: M.Theme.base05
|
||||
color: S.Theme.base05
|
||||
|
||||
scale: 0
|
||||
opacity: 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue