Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
bitmask-vpn
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
leap
bitmask-vpn
Commits
664b3ba3
Commit
664b3ba3
authored
4 years ago
by
Kali Kaneko
Browse files
Options
Downloads
Patches
Plain Diff
center stuff
parent
d2b276be
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gui/qml/main.qml
+47
-19
47 additions, 19 deletions
gui/qml/main.qml
with
47 additions
and
19 deletions
gui/qml/main.qml
+
47
−
19
View file @
664b3ba3
import
QtQuick
2.9
import
QtQuick
.
Window
2.2
import
QtQuick
.
Dialogs
1.2
import
QtQuick
.
Layouts
1.
0
import
QtQuick
.
Layouts
1.
12
import
QtQuick
.
Controls
2.12
import
Qt
.
labs
.
platform
1.0
...
...
@@ -9,12 +9,12 @@ import Qt.labs.platform 1.0
Window
{
id
:
app
visible
:
true
width
:
3
00
width
:
5
00
height
:
600
maximumWidth
:
3
00
maximumWidth
:
6
00
minimumWidth
:
300
maximumHeight
:
6
00
minimumHeight
:
6
00
maximumHeight
:
5
00
minimumHeight
:
3
00
flags
:
Qt
.
WindowsStaysOnTopHint
...
...
@@ -23,32 +23,44 @@ Window {
property
var
loginDone
property
var
allowEmptyPass
GridLayout
{
TabBar
{
id
:
bar
width
:
parent
.
width
TabButton
{
text
:
qsTr
(
"
Info
"
)
}
TabButton
{
text
:
qsTr
(
"
Gateways
"
)
}
}
visible
:
true
columns
:
3
StackLayout
{
anchors.fill
:
parent
currentIndex
:
bar
.
currentIndex
Item
{
Layout.column
:
2
Layout.topMargin
:
app
.
height
*
0.15
Layout.leftMargin
:
app
.
width
*
0.10
ColumnLayout
{
id
:
infoTab
anchors.centerIn
:
parent
Column
{
Layout.alignment
:
Qt
.
AlignHCenter
anchors.centerIn
:
parent
spacing
:
5
Text
{
id
:
mainStatus
text
:
"
off
"
font.pixelSize
:
26
Layout.alignment
:
Text
.
AlignH
Center
anchors.horizontalCenter
:
parent
.
horizontal
Center
}
Text
{
id
:
mainCurrentGateway
text
:
""
font.pixelSize
:
20
Layout.alignment
:
Text
.
AlignH
Center
anchors.horizontalCenter
:
parent
.
horizontal
Center
}
SwitchDelegate
{
...
...
@@ -57,6 +69,7 @@ Window {
text
:
qsTr
(
""
)
checked
:
false
anchors.horizontalCenter
:
parent
.
horizontalCenter
Connections
{
onCheckedChanged
:
{
...
...
@@ -104,20 +117,35 @@ Window {
visible
:
vpntoggle
.
down
||
vpntoggle
.
highlighted
color
:
vpntoggle
.
down
?
"
#bdbebf
"
:
"
#eeeeee
"
}
}
}
// end switchdelegate
}
}
Item
{
id
:
gatewayTab
anchors.centerIn
:
parent
Column
{
anchors.centerIn
:
parent
spacing
:
10
ComboBox
{
id
:
gwSelector
editable
:
false
anchors.horizontalCenter
:
parent
.
horizontalCenter
model
:
[
qsTr
(
"
Automatic
"
)]
onActivated
:
{
console
.
debug
(
"
Selected gateway:
"
,
currentText
)
backend
.
useGateway
(
currentText
.
toString
())
}
}
}
}
}
}
// end columnlayout
}
// end item
}
// end stacklayout
Connections
{
target
:
jsonModel
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment