56 lines
3.5 KiB
Diff
56 lines
3.5 KiB
Diff
From a1b4df4311e6b75204aec067c716f38a9ad7a830 Mon Sep 17 00:00:00 2001
|
|
From: chenlelin <chenlelin@kylinos.cn>
|
|
Date: Tue, 13 Oct 2020 09:12:22 +0800
|
|
Subject: [PATCH] Change the distance between mainwindow and taskbar
|
|
|
|
---
|
|
src/mainwindow.cpp | 2 +-
|
|
src/oneconnform.cpp | 3 ---
|
|
src/onelancform.cpp | 3 ---
|
|
3 files changed, 1 insertion(+), 7 deletions(-)
|
|
|
|
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
|
|
index e1d7b74..d74cdb9 100644
|
|
--- a/src/mainwindow.cpp
|
|
+++ b/src/mainwindow.cpp
|
|
@@ -684,7 +684,7 @@ void MainWindow::handleIconClicked()
|
|
|
|
int n = objKyDBus->getTaskBarPos("position");
|
|
int m = objKyDBus->getTaskBarHeight("height");
|
|
- int d = 2; //窗口边沿到任务栏距离
|
|
+ int d = 7; //窗口边沿到任务栏距离
|
|
|
|
if (screenGeometry.width() == availableGeometry.width() && screenGeometry.height() == availableGeometry.height()) {
|
|
if (n == 0) {
|
|
diff --git a/src/oneconnform.cpp b/src/oneconnform.cpp
|
|
index 05bd127..e6f6bbc 100644
|
|
--- a/src/oneconnform.cpp
|
|
+++ b/src/oneconnform.cpp
|
|
@@ -83,9 +83,6 @@ OneConnForm::OneConnForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf
|
|
// ui->btnDisConn->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
|
// "QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
|
// "QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
|
- ui->btnDisConn->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(156,156,156,0.2);}"
|
|
- "QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(156,156,156,0.3);}"
|
|
- "QPushButton:Pressed{border-radius:4px;background-color:rgba(156,156,156,0.1);}");
|
|
ui->btnHideConn->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);color:white;font-size:14px;}"
|
|
"QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(107,142,235,1);}"
|
|
"QPushButton:Pressed{border-radius:4px;background-color:rgba(50,87,202,1);}");
|
|
diff --git a/src/onelancform.cpp b/src/onelancform.cpp
|
|
index cf6d46b..b23e387 100644
|
|
--- a/src/onelancform.cpp
|
|
+++ b/src/onelancform.cpp
|
|
@@ -57,9 +57,6 @@ OneLancForm::OneLancForm(QWidget *parent, MainWindow *mainWindow, ConfForm *conf
|
|
// ui->btnDisConn->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(255,255,255,0.12);color:white;font-size:14px;}"
|
|
// "QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(255,255,255,0.2);}"
|
|
// "QPushButton:Pressed{border-radius:4px;background-color:rgba(255,255,255,0.08);}");
|
|
- ui->btnDisConn->setStyleSheet("QPushButton{border:0px;border-radius:4px;background-color:rgba(156,156,156,0.2);}"
|
|
- "QPushButton:Hover{border:0px solid rgba(255,255,255,0.2);border-radius:4px;background-color:rgba(156,156,156,0.3);}"
|
|
- "QPushButton:Pressed{border-radius:4px;background-color:rgba(156,156,156,0.1);}");
|
|
ui->lbWaiting->setStyleSheet("QLabel{border:0px;border-radius:4px;background-color:rgba(61,107,229,1);}");
|
|
ui->lbWaitingIcon->setStyleSheet("QLabel{border:0px;background-color:transparent;}");
|
|
|
|
--
|
|
2.33.0
|
|
|