summaryrefslogtreecommitdiffstats
path: root/components/accounts
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-05 13:00:21 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-04-05 13:00:21 +0200
commit5755ad47145d2985ba74354961b4127d82c516f6 (patch)
treeaa6af562b7e587be895ff5a4355270f82f3ea180 /components/accounts
parente78224a7d9ccf70aadde8c0bff1cab72e8cb7438 (diff)
downloadkube-5755ad47145d2985ba74354961b4127d82c516f6.tar.gz
kube-5755ad47145d2985ba74354961b4127d82c516f6.zip
A single framework plugin
Diffstat (limited to 'components/accounts')
-rw-r--r--components/accounts/contents/ui/AccountWizard.qml4
-rw-r--r--components/accounts/contents/ui/AccountWizardPage.qml21
-rw-r--r--components/accounts/contents/ui/CreateGmail.qml18
3 files changed, 20 insertions, 23 deletions
diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml
index 802f44a3..877a9d33 100644
--- a/components/accounts/contents/ui/AccountWizard.qml
+++ b/components/accounts/contents/ui/AccountWizard.qml
@@ -20,7 +20,7 @@ import QtQuick 2.7
20import QtQuick.Layouts 1.1 20import QtQuick.Layouts 1.1
21import QtQuick.Controls 2.0 as Controls2 21import QtQuick.Controls 2.0 as Controls2
22import org.kde.kirigami 1.0 as Kirigami 22import org.kde.kirigami 1.0 as Kirigami
23import org.kube.components.theme 1.0 as KubeTheme 23import org.kube.framework 1.0 as Kube
24 24
25Controls2.Popup { 25Controls2.Popup {
26 id: popup 26 id: popup
@@ -50,7 +50,7 @@ Controls2.Popup {
50 Kirigami.Heading { 50 Kirigami.Heading {
51 id: heading 51 id: heading
52 text: "Select your new account type" 52 text: "Select your new account type"
53 color: KubeTheme.Colors.highlightColor 53 color: Kube.Colors.highlightColor
54 } 54 }
55 55
56 ColumnLayout { 56 ColumnLayout {
diff --git a/components/accounts/contents/ui/AccountWizardPage.qml b/components/accounts/contents/ui/AccountWizardPage.qml
index 034c8fd5..a4dc7e25 100644
--- a/components/accounts/contents/ui/AccountWizardPage.qml
+++ b/components/accounts/contents/ui/AccountWizardPage.qml
@@ -22,21 +22,20 @@ import QtQuick.Layouts 1.1
22import QtQuick.Controls 1.4 as Controls 22import QtQuick.Controls 1.4 as Controls
23import QtQuick.Controls 2.0 as Controls2 23import QtQuick.Controls 2.0 as Controls2
24import org.kde.kirigami 1.0 as Kirigami 24import org.kde.kirigami 1.0 as Kirigami
25import org.kube.framework 1.0 as Kube
25 26
26import org.kube.framework.accounts 1.0 as KubeAccounts
27import org.kube.components.theme 1.0 as KubeTheme
28 27
29Item { 28Item {
30 id: root 29 id: root
31 property string accountType 30 property string accountType
32 31
33 KubeAccounts.AccountFactory { 32 Kube.AccountFactory {
34 id: accountFactory 33 id: accountFactory
35 accountType: root.accountType 34 accountType: root.accountType
36 } 35 }
37 36
38 Controls.ToolButton { 37 Controls.ToolButton {
39 iconName: KubeTheme.Icons.goBack 38 iconName: Kube.Icons.goBack
40 tooltip: "go back" 39 tooltip: "go back"
41 onClicked: { 40 onClicked: {
42 stack.pop() 41 stack.pop()
@@ -48,13 +47,13 @@ Item {
48 47
49 anchors { 48 anchors {
50 fill: parent 49 fill: parent
51 margins: KubeTheme.Units.largeSpacing * 2 50 margins: Kube.Units.largeSpacing * 2
52 } 51 }
53 52
54 Kirigami.Heading { 53 Kirigami.Heading {
55 id: heading 54 id: heading
56 text: loader.item.heading 55 text: loader.item.heading
57 color: KubeTheme.Colors.highlightColor 56 color: Kube.Colors.highlightColor
58 } 57 }
59 58
60 Kirigami.Label { 59 Kirigami.Label {
@@ -67,7 +66,7 @@ Item {
67 66
68 width: parent.width 67 width: parent.width
69 text: loader.item.subheadline 68 text: loader.item.subheadline
70 color: KubeTheme.Colors.disabledTextColor 69 color: Kube.Colors.disabledTextColor
71 wrapMode: Text.Wrap 70 wrapMode: Text.Wrap
72 } 71 }
73 72
@@ -77,7 +76,7 @@ Item {
77 top:subHeadline.bottom 76 top:subHeadline.bottom
78 left: parent.left 77 left: parent.left
79 right: parent.right 78 right: parent.right
80 topMargin: KubeTheme.Units.largeSpacing * 2 79 topMargin: Kube.Units.largeSpacing * 2
81 } 80 }
82 81
83 Loader { 82 Loader {
@@ -105,12 +104,12 @@ Item {
105 bottom: parent.bottom 104 bottom: parent.bottom
106 left: parent.left 105 left: parent.left
107 right: parent.right 106 right: parent.right
108 topMargin: KubeTheme.Units.largeSpacing * 2 107 topMargin: Kube.Units.largeSpacing * 2
109 } 108 }
110 109
111 columns: 2 110 columns: 2
112 columnSpacing: KubeTheme.Units.largeSpacing 111 columnSpacing: Kube.Units.largeSpacing
113 rowSpacing: KubeTheme.Units.largeSpacing 112 rowSpacing: Kube.Units.largeSpacing
114 113
115 Item { 114 Item {
116 Layout.fillHeight: true 115 Layout.fillHeight: true
diff --git a/components/accounts/contents/ui/CreateGmail.qml b/components/accounts/contents/ui/CreateGmail.qml
index 2b29f9ee..f16cd027 100644
--- a/components/accounts/contents/ui/CreateGmail.qml
+++ b/components/accounts/contents/ui/CreateGmail.qml
@@ -22,17 +22,15 @@ import QtQuick.Controls 1.4 as Controls
22import QtQuick.Controls 2.0 as Controls2 22import QtQuick.Controls 2.0 as Controls2
23import org.kde.kirigami 1.0 as Kirigami 23import org.kde.kirigami 1.0 as Kirigami
24 24
25import org.kube.framework.accounts 1.0 as KubeAccounts
26import org.kube.components.theme 1.0 as KubeTheme
27 25
28Item { 26Item {
29 27
30 KubeAccounts.GmailController { 28 Kube.GmailController {
31 id: account 29 id: account
32 } 30 }
33 31
34 Controls.ToolButton { 32 Controls.ToolButton {
35 iconName: KubeTheme.Icons.goBack 33 iconName: Kube.Icons.goBack
36 34
37 tooltip: "go back" 35 tooltip: "go back"
38 36
@@ -46,14 +44,14 @@ Item {
46 44
47 anchors { 45 anchors {
48 fill: parent 46 fill: parent
49 margins: KubeTheme.Units.largeSpacing * 2 47 margins: Kube.Units.largeSpacing * 2
50 } 48 }
51 49
52 Kirigami.Heading { 50 Kirigami.Heading {
53 id: heading 51 id: heading
54 text: "Connect your Gmail account" 52 text: "Connect your Gmail account"
55 53
56 color: KubeTheme.Colors.highlightColor 54 color: Kube.Colors.highlightColor
57 } 55 }
58 56
59 Kirigami.Label { 57 Kirigami.Label {
@@ -68,7 +66,7 @@ Item {
68 66
69 text: "To let Kube access your account, fill in email address, username, password and give the account a title that will be displayed inside Kube." 67 text: "To let Kube access your account, fill in email address, username, password and give the account a title that will be displayed inside Kube."
70 68
71 color: KubeTheme.Colors.disabledTextColor 69 color: Kube.Colors.disabledTextColor
72 70
73 wrapMode: Text.Wrap 71 wrapMode: Text.Wrap
74 } 72 }
@@ -79,12 +77,12 @@ Item {
79 bottom: parent.bottom 77 bottom: parent.bottom
80 left: parent.left 78 left: parent.left
81 right: parent.right 79 right: parent.right
82 topMargin: KubeTheme.Units.largeSpacing * 2 80 topMargin: Kube.Units.largeSpacing * 2
83 } 81 }
84 82
85 columns: 2 83 columns: 2
86 columnSpacing: KubeTheme.Units.largeSpacing 84 columnSpacing: Kube.Units.largeSpacing
87 rowSpacing: KubeTheme.Units.largeSpacing 85 rowSpacing: Kube.Units.largeSpacing
88 86
89 Controls.Label { 87 Controls.Label {
90 text: "Title of Account" 88 text: "Title of Account"