mirror of
https://github.com/chenx-dust/EZ4Connect.git
synced 2026-09-20 02:13:32 +08:00
fix: 改进主页面顶部外观
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
#include <QGuiApplication>
|
||||
#include <QActionGroup>
|
||||
#include <QInputDialog>
|
||||
#include <QMargins>
|
||||
#include <QStyle>
|
||||
#include <QStyleHints>
|
||||
#include <QTimer>
|
||||
@@ -69,6 +70,10 @@ MainWindow::MainWindow(
|
||||
upgradeSettings();
|
||||
|
||||
ui->setupUi(this);
|
||||
#ifdef Q_OS_MACOS
|
||||
const QMargins centralMargins = ui->centralWidget->contentsMargins();
|
||||
ui->centralWidget->setContentsMargins(centralMargins.left(), 16, centralMargins.right(), centralMargins.bottom());
|
||||
#endif
|
||||
ui->logPlainTextEdit->setFont(
|
||||
QFontDatabase::systemFont(QFontDatabase::FixedFont)
|
||||
);
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<number>16</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>16</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="rightMargin">
|
||||
<number>16</number>
|
||||
@@ -451,7 +451,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>822</width>
|
||||
<height>33</height>
|
||||
<height>21</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="fileMenu">
|
||||
|
||||
@@ -27,7 +27,7 @@ void PresentationHelpers::showAboutDialog(QWidget *parent)
|
||||
"<br>作者:<a href='https://github.com/chenx-dust'>Chenx Dust</a>" +
|
||||
"<br>项目主页:<a href='https://github.com/" + repository +
|
||||
"'>https://github.com/" + repository + "</a>" +
|
||||
"<br><br><b>致谢:</b>" +
|
||||
"<br><br>致谢:" +
|
||||
"<br><br>ZJU-Connect-for-Windows" +
|
||||
"<br>基于 Qt 编写的 ZJU 网络客户端" +
|
||||
"<br>作者:<a href='https://myth.cx'>Myth</a>" +
|
||||
|
||||
@@ -11,7 +11,6 @@ QMenu {
|
||||
|
||||
QMenuBar {
|
||||
background: #141b20;
|
||||
border-bottom-color: #2d3a42;
|
||||
}
|
||||
|
||||
QMenuBar::item:selected {
|
||||
|
||||
@@ -11,7 +11,6 @@ QMenu {
|
||||
|
||||
QMenuBar {
|
||||
background: #f2f7fa;
|
||||
border-bottom-color: #dbe5eb;
|
||||
}
|
||||
|
||||
QMenuBar::item:selected {
|
||||
|
||||
@@ -6,8 +6,6 @@ QMenu {
|
||||
}
|
||||
|
||||
QMenuBar {
|
||||
border-bottom-width: 1px;
|
||||
border-bottom-style: solid;
|
||||
padding: 3px 10px;
|
||||
}
|
||||
|
||||
@@ -120,7 +118,6 @@ QPushButton#pushButton1 {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-radius: 5px;
|
||||
font-size: 12px;
|
||||
padding: 8px;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user