moved the connect button to the center of the screen

This commit is contained in:
vladimir.kuznetsov 2023-08-28 11:06:58 +03:00
parent 29bef052c7
commit fe08fd3f0a
3 changed files with 7 additions and 4 deletions

View file

@ -2,11 +2,11 @@ cmake_minimum_required(VERSION 3.25.0 FATAL_ERROR)
set(PROJECT AmneziaVPN) set(PROJECT AmneziaVPN)
project(${PROJECT} VERSION 4.0.2.1 project(${PROJECT} VERSION 4.0.3.1
DESCRIPTION "AmneziaVPN" DESCRIPTION "AmneziaVPN"
HOMEPAGE_URL "https://amnezia.org/" HOMEPAGE_URL "https://amnezia.org/"
) )
set(RELEASE_DATE "2023-08-25") set(RELEASE_DATE "2023-08-26")
set(APP_MAJOR_VERSION ${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}.${CMAKE_PROJECT_VERSION_PATCH}) set(APP_MAJOR_VERSION ${CMAKE_PROJECT_VERSION_MAJOR}.${CMAKE_PROJECT_VERSION_MINOR}.${CMAKE_PROJECT_VERSION_PATCH})
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")

View file

@ -72,7 +72,7 @@ void ConnectionController::onConnectionStateChanged(Vpn::ConnectionState state)
case Vpn::ConnectionState::Connected: { case Vpn::ConnectionState::Connected: {
m_isConnectionInProgress = false; m_isConnectionInProgress = false;
m_isConnected = true; m_isConnected = true;
m_connectionStateText = tr("Disconnect"); m_connectionStateText = tr("Connected");
break; break;
} }
case Vpn::ConnectionState::Connecting: { case Vpn::ConnectionState::Connecting: {

View file

@ -27,7 +27,10 @@ PageType {
property string defaultContainerName: ContainersModel.defaultContainerName property string defaultContainerName: ContainersModel.defaultContainerName
ConnectButton { ConnectButton {
anchors.centerIn: parent anchors.top: parent.top
anchors.bottom: buttonBackground.top
anchors.right: parent.right
anchors.left: parent.left
} }
Connections { Connections {