diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-12 21:06:29 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-09-12 21:53:51 +0200 |
commit | 2d1c5d332d9876d8c90ad716d20ada97a5bb3778 (patch) | |
tree | c5e8c9de18fde2c6473b20e493f16fdf54ae2335 /components | |
parent | 8ef95ba3d7164dab195a1135dfe8b00f6e881f09 (diff) | |
download | kube-2d1c5d332d9876d8c90ad716d20ada97a5bb3778.tar.gz kube-2d1c5d332d9876d8c90ad716d20ada97a5bb3778.zip |
Made the account wizard look more integrated
Diffstat (limited to 'components')
-rw-r--r-- | components/accounts/contents/ui/AccountWizard.qml | 1 | ||||
-rw-r--r-- | components/kube/contents/ui/AccountsView.qml | 14 | ||||
-rw-r--r-- | components/kube/contents/ui/Kube.qml | 4 |
3 files changed, 10 insertions, 9 deletions
diff --git a/components/accounts/contents/ui/AccountWizard.qml b/components/accounts/contents/ui/AccountWizard.qml index b4720174..56c975e5 100644 --- a/components/accounts/contents/ui/AccountWizard.qml +++ b/components/accounts/contents/ui/AccountWizard.qml | |||
@@ -24,7 +24,6 @@ import org.kube.framework 1.0 as Kube | |||
24 | Kube.Popup { | 24 | Kube.Popup { |
25 | id: root | 25 | id: root |
26 | 26 | ||
27 | |||
28 | property bool requireSetup: false | 27 | property bool requireSetup: false |
29 | property var availableAccountPlugins: [] | 28 | property var availableAccountPlugins: [] |
30 | 29 | ||
diff --git a/components/kube/contents/ui/AccountsView.qml b/components/kube/contents/ui/AccountsView.qml index 5b19d3fd..0547ccac 100644 --- a/components/kube/contents/ui/AccountsView.qml +++ b/components/kube/contents/ui/AccountsView.qml | |||
@@ -19,7 +19,7 @@ | |||
19 | import QtQuick 2.4 | 19 | import QtQuick 2.4 |
20 | import QtQuick.Layouts 1.1 | 20 | import QtQuick.Layouts 1.1 |
21 | import QtQuick.Controls 1.3 as Controls | 21 | import QtQuick.Controls 1.3 as Controls |
22 | import QtQuick.Controls 2.0 as Controls2 | 22 | import QtQuick.Controls 2.0 |
23 | import org.kube.framework 1.0 as Kube | 23 | import org.kube.framework 1.0 as Kube |
24 | import org.kube.components.accounts 1.0 as KubeAccounts | 24 | import org.kube.components.accounts 1.0 as KubeAccounts |
25 | 25 | ||
@@ -125,13 +125,13 @@ Rectangle { | |||
125 | KubeAccounts.AccountWizard { | 125 | KubeAccounts.AccountWizard { |
126 | id: accountWizard | 126 | id: accountWizard |
127 | 127 | ||
128 | availableAccountPlugins: root.availableAccountPlugins | 128 | parent: ApplicationWindow.overlay |
129 | 129 | height: app.height | |
130 | height: app.height * 0.85 | 130 | width: app.width - app.sidebarWidth |
131 | width: app.width * 0.85 | 131 | x: app.sidebarWidth |
132 | y: 0 | ||
132 | 133 | ||
133 | x: app.width * 0.075 | 134 | availableAccountPlugins: root.availableAccountPlugins |
134 | y: app.height * 0.075 | ||
135 | } | 135 | } |
136 | //END AccountWizard | 136 | //END AccountWizard |
137 | } | 137 | } |
diff --git a/components/kube/contents/ui/Kube.qml b/components/kube/contents/ui/Kube.qml index 224b317e..d94449ba 100644 --- a/components/kube/contents/ui/Kube.qml +++ b/components/kube/contents/ui/Kube.qml | |||
@@ -27,6 +27,8 @@ import org.kube.framework 1.0 as Kube | |||
27 | Controls2.ApplicationWindow { | 27 | Controls2.ApplicationWindow { |
28 | id: app | 28 | id: app |
29 | 29 | ||
30 | property int sidebarWidth: Kube.Units.gridUnit + Kube.Units.largeSpacing | ||
31 | |||
30 | height: Screen.desktopAvailableHeight * 0.8 | 32 | height: Screen.desktopAvailableHeight * 0.8 |
31 | width: Screen.desktopAvailableWidth * 0.8 | 33 | width: Screen.desktopAvailableWidth * 0.8 |
32 | visible: true | 34 | visible: true |
@@ -140,7 +142,7 @@ Controls2.ApplicationWindow { | |||
140 | top: mainContent.top | 142 | top: mainContent.top |
141 | bottom: mainContent.bottom | 143 | bottom: mainContent.bottom |
142 | } | 144 | } |
143 | width: Kube.Units.gridUnit + Kube.Units.largeSpacing | 145 | width: app.sidebarWidth |
144 | color: Kube.Colors.textColor | 146 | color: Kube.Colors.textColor |
145 | 147 | ||
146 | Rectangle { | 148 | Rectangle { |