diff --git a/HPPA/HPPA.cpp b/HPPA/HPPA.cpp
index 9523f52..db70028 100644
--- a/HPPA/HPPA.cpp
+++ b/HPPA/HPPA.cpp
@@ -249,7 +249,8 @@ HPPA::HPPA(QWidget* parent)
QDockWidget::title{
background: #0E1C4C;
/*border: 4px solid #2c586b;*/
-
+ /*padding-top: 10px;
+ padding-bottom: 10px;*/
border-top: 1px solid #2c586b;
border-left: 1px solid #2c586b;
@@ -312,38 +313,52 @@ HPPA::HPPA(QWidget* parent)
gridLayout_hyperimgViewer->setSpacing(6);
gridLayout_hyperimgViewer->setObjectName(QString::fromUtf8("gridLayout_hyperimgViewer"));
gridLayout_hyperimgViewer->setVerticalSpacing(6);
- gridLayout_hyperimgViewer->setContentsMargins(10, 10, 10, 10);
+ gridLayout_hyperimgViewer->setContentsMargins(1, 2, 1, 2);
m_imageViewerTabWidget = new QTabWidget();
m_imageViewerTabWidget->clear();//必须放在最前面,首先删除所有的tab
//m_imageViewerTabWidget->setTabsClosable(true);//这样每页都会有关闭按钮
connect(m_imageViewerTabWidget, SIGNAL(currentChanged(int)), this, SLOT(onTabWidgetCurrentChanged(int)));
m_imageViewerTabWidget->setStyleSheet(R"(
+ QTabBar::tab {
+ background: #0E1C4C;
+ color: white;
+ padding: 6px 12px;
+ border: none;
+ border-bottom: 1px solid #27376C;
+ }
+
+ QTabBar::tab:selected {
+ background: #0D1233;
+ color: white;
+ border: none;
+ }
+
+ /*QTabBar::tab:hover {
+ background: #141A45;
+ }*/
+
QTabWidget::pane {
- border: none; /* 去掉白色边框 */
- background: #0D1233; /* 设置主背景色 */
- }
+ border: none;
+ border-top: 1px solid #27376C;
+ background: #0D1233;
+ top: -1px;
+ }
- QTabBar::tab {
- background: #0D1233; /* 标签未选中时的背景 */
- color: white; /* 字体颜色 */
- padding: 6px 12px;
- border: 1px solid #0D1233;
- }
-
- QTabBar::tab:selected {
- background: #1A2B6D; /* 选中标签的颜色,可以略深一点 */
- border-bottom: 2px solid #4A5FE0;
- }
-
- QTabBar::tab:hover {
- background: #141A45; /* 鼠标悬停时的颜色 */
- }
-
- QTabWidget QWidget {
- background: #0D1233; /* 内容区域背景 */
- }
+ QTabWidget QWidget {
+ background: #0D1233;
+ }
)");
+ QWidget* imageViewerTabWidgetContainer = new QWidget();
+ QGridLayout* gridLayout_imageViewerTabWidgetContainer = new QGridLayout(imageViewerTabWidgetContainer);
+ gridLayout_imageViewerTabWidgetContainer->setSpacing(6);
+ gridLayout_imageViewerTabWidgetContainer->setObjectName(QString::fromUtf8("gridLayout_imageViewerTabWidgetContainer"));
+ gridLayout_imageViewerTabWidgetContainer->setVerticalSpacing(6);
+ gridLayout_imageViewerTabWidgetContainer->setContentsMargins(0, 0, 0, 0);
+ gridLayout_imageViewerTabWidgetContainer->addWidget(m_imageViewerTabWidget, 0, 0, 1, 1);
+ imageViewerTabWidgetContainer->setStyleSheet(R"(
+ background: #0E1C4C;
+ )");
QFrame* line = new QFrame();
line->setFrameShape(QFrame::HLine);
@@ -378,13 +393,13 @@ HPPA::HPPA(QWidget* parent)
- gridLayout_hyperimgViewer->addWidget(m_imageViewerTabWidget, 0, 0, 1, 1);
+ gridLayout_hyperimgViewer->addWidget(imageViewerTabWidgetContainer, 0, 0, 1, 1);
gridLayout_hyperimgViewer->addWidget(line, 1, 0, 1, 1);
gridLayout_hyperimgViewer->addWidget(m_chartView, 2, 0, 1, 1);
- gridLayout_hyperimgViewer->setRowStretch(0, 1);
+ gridLayout_hyperimgViewer->setRowStretch(0, 3);
gridLayout_hyperimgViewer->setRowStretch(1, 1);
- gridLayout_hyperimgViewer->setRowStretch(2, 1);
+ gridLayout_hyperimgViewer->setRowStretch(2, 2);
dock_hyperimgViewerWidgetContents->setStyleSheet(R"(
diff --git a/HPPA/HPPA.ui b/HPPA/HPPA.ui
index af71757..9e8b4ed 100644
--- a/HPPA/HPPA.ui
+++ b/HPPA/HPPA.ui
@@ -238,7 +238,7 @@ QToolBar QToolButton:hover {
- RGB 鐩告満
+ 杞挱
1