diff --git a/CMakeLists.txt b/CMakeLists.txt index 684fc6a..eb1c693 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ file(GLOB_RECURSE project_cxx ./src/*.cxx) file(GLOB_RECURSE project_cc ./src/*.cc) if(UNIX) -set(USE_SHIMLIB ON) +set(USE_SHIMLIB OFF) else() set(USE_SHIMLIB OFF) endif() @@ -70,6 +70,8 @@ endif() if(UNIX AND USE_SHIMLIB) link_directories(/usr/local/lib64) target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Widgets Qt5::Gui Qt5::OpenGL Qt5::Sql Qt5::VirtualKeyboard Qt5::Network pthread usct_shim dmapi log4c cunit ctomat hdf5 matio m) +elseif(UNIX) + target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Widgets Qt5::Gui Qt5::OpenGL Qt5::Sql Qt5::VirtualKeyboard Qt5::Network pthread) else() target_link_libraries(${PROJECT_NAME} Qt5::Core Qt5::Widgets Qt5::Gui Qt5::OpenGL Qt5::Sql Qt5::VirtualKeyboard Qt5::Network) endif() diff --git a/src/loginwindow.cpp b/src/loginwindow.cpp index eb8cf30..59f62c6 100644 --- a/src/loginwindow.cpp +++ b/src/loginwindow.cpp @@ -8,11 +8,14 @@ #include #include "guimacros.h" #include +#include #include "db/SQLHelper.h" #include "InputObject.h" #include "models/User.h" #include "log/UserOperationLog.h" #include "json/jsonobject.h" +#include "guimessagedialog.h" + LoginWindow::LoginWindow(QWidget* parent) : QDialog(parent) , m_pLoginButton(nullptr) @@ -39,28 +42,8 @@ LoginWindow::~LoginWindow() void LoginWindow::initUi() { - QString style = "*{background-color:#3c3c3c; color:white;margin:0;font-size:16px;}" - "QLabel#title{font-Size:98px;color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1," - "stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray);}" - "QLabel#warn{color:#930000;background:transparent;font-size:20px;}" - "QFrame#login_frame_username{min-width:700px;max-width:700px;max-height:500px;min-height:500px;" - "border:1px solid #0078d8;border-radius:20px;" - "background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,\n" - " stop: 0.0 darkgray, stop: 0.5 gray, stop: 1.0 darkgray);" - "}" - "QLineEdit{min-height:100px;max-height:100px; border:1px solid silver;border-radius:10px;font-size:26px;}" - "QLineEdit:enabled{background-color: #515151}" - "QComboBox{text-align:center;min-height:100px;max-height:100px; " - "border:1px solid silver;border-radius:10px;padding:3px}" - "QComboBox:enabled{background-color: #515151}" - "QComboBox::drop-down{width:80px;border-radius:10px}" - "QComboBox QAbstractItemView{min-width:120px;}" - "QComboBox QAbstractItemView::item {min-height:60px;max-height:60px; border:1px solid white;}" - "QToolButton{min-height:100px;max-height:100px;border:1px solid #505050;" - "border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;}" - "QToolButton:hover{background:#505050;}"; - setStyleSheet(style); + this->setObjectName("loginform"); m_pVMainLayout = new QVBoxLayout(this); m_pVMainLayout->setContentsMargins(0, 0, 0, 0); m_pVMainLayout->setSpacing(0); @@ -100,9 +83,26 @@ void LoginWindow::initUi() m_pUserCodeLayout->removeWidget(btnlogin); m_pUserCodeLayout->addWidget(btnlogin, 0, Qt::AlignCenter); m_pLoginButton = btnlogin; + btnlogin->setObjectName("btnlogin"); // m_pUserCodeLayout->addWidget(m_pLoginButton, 0, Qt::AlignCenter); m_pVMainLayout->addSpacerItem(new QSpacerItem(20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding)); - + connect(EventCenter::Default(), &EventCenter::DeviceErrorRaise, [=](QObject* parent, QObject* msg) { + if (!this->isVisible()) return; + //默认旧模式 + GUIMessageDialog msgDialog(this); + msgDialog.setOpacity(1.0); + if (msg) { + QString* str = (QString*)msg; + msgDialog.showMessage(*str); + } + else { + msgDialog.showMessage("Something went error!"); + } + msgDialog.stopLoading(); + msgDialog.showExitButton(); +// msgDialog.setWindowModality(Q); + msgDialog.exec(); + }); initUserList(); } diff --git a/src/main.cpp b/src/main.cpp index 8235e72..9aa16f8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,6 +11,7 @@ #include #include "log/UserOperationLog.h" #include +#include #include "json/jsonobject.h" #include "locker.h" #include "languageswitcher.h" @@ -89,13 +90,16 @@ int main(int argc, char* argv[]) Timer.start(1000); thread.start(); w.showFullScreen(); + DeviceManager::Default()->initDevice(); w.requestLogin(); + int ret = a.exec(); thread.terminate(); return ret; } else { w.showFullScreen(); + DeviceManager::Default()->initDevice(); w.requestLogin(); return a.exec(); } diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 48b9caa..7584232 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -161,10 +161,8 @@ MainWindow::MainWindow(QWidget* parent) : } qApp->processEvents(); }); - - GUIErrorHandle::Default()->init(); - DeviceManager::Default()->initDevice(); - + GUIErrorHandle::Default()->init(); + l = new LoginWindow(this); QThread* t = QThread::create([]() { QThread::sleep(10); int f = 0x00100001; @@ -183,8 +181,8 @@ MainWindow::MainWindow(QWidget* parent) : } }); t->start(); + l->showFullScreen(); centerWidgetHide(); - connect(EventCenter::Default(), &EventCenter::ReloadLanguage, [=]() { tab->setTabText(0, tr("Select")); @@ -193,8 +191,6 @@ MainWindow::MainWindow(QWidget* parent) : tab->setTabText(3, tr("Settings")); }); - - } @@ -243,13 +239,14 @@ QTextEdit* MainWindow::getEdit() } void MainWindow::requestLogin() { - LoginWindow l(this); - l.setWindowModality(Qt::WindowModal); - l.showFullScreen(); + + l->clearInputData(); + l->setWindowModality(Qt::WindowModal); + l->showFullScreen(); this->centerWidgetHide(); - while (l.result() != QDialog::Accepted) + while (l->result() != QDialog::Accepted) { - l.exec(); + l->exec(); } this->centerWidgetShow(); } diff --git a/src/mainwindow.h b/src/mainwindow.h index 946070f..c816bba 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -6,6 +6,7 @@ #include #include "StdOutRedirector.h" #include "json/cJSON.h" +#include "loginwindow.h" namespace Ui { class MainWindow; @@ -42,6 +43,7 @@ private: bool m_bLoaded = false; QTabWidget* tab = nullptr; int admin_tab_index = -1; + LoginWindow* l; }; #endif // MAINWINDOW_H diff --git a/src/stylesheet/Dark.qss b/src/stylesheet/Dark.qss index a7a7e19..77964b8 100644 --- a/src/stylesheet/Dark.qss +++ b/src/stylesheet/Dark.qss @@ -1 +1 @@ -*{background-color:#3c3c3c;color:white;margin:0;font-size:16px;} QTabWidget::tab-bar{ left: 10px; /* move to the right by 5px */ } QTabBar::tab { height:60px; min-width:300px; font-size: 25px; background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #333333, stop: 1.0 #555555); border: 2px solid #505050; border-bottom-left-radius: 50%; border-bottom-right-radius: 50%; padding: 2px; margin-bottom:10px; } QTabBar::tab:selected{ margin-left:-10px; margin-right:-10px; margin-bottom:0px; border:2px solid #606060; border-top:5px solid #4a88c7; background: #505050;} QTabBar::tab:first:selected { margin-left: 0; /* the first selected tab has nothing to overlap with on the left */ } QTabBar::tab:last:selected { margin-right: 0; /* the last selected tab has nothing to overlap with on the right */ } QTabBar::tab:only-one { margin: 0; /* if there is only one tab, we don't want overlapping margins */ } QTabWidget::pane{margin:0;} QLineEdit {min-height:36px;max-height:36px; border:1px solid silver;} QLineEdit:enabled{background-color: #515151;} QDateEdit{min-height:36px;max-height:36px; border:1px solid Silver;} QDateEdit:enabled{background-color: #515151;} QTextEdit:enabled{background-color: #515151;} QComboBox {text-align:center;min-height:36px;max-height:36px; border:1px solid silver;} QComboBox:enabled{background-color: #515151;} QComboBox::drop-down{width:20px;} QComboBox QAbstractItemView{min-width:120px;} QComboBox QAbstractItemView::item {min-height:60px;max-height:60px; border:1px solid white;} QLabel{color:white; font-weight:bold; font-size:16px;} QLabel#sliderPickerLabel{color:silver;padding:0;background:#505050;font-weight:normal;font-size:50px;} QWidget#topbarWidget{min-height:36px;max-height:36px;} QWidget#contentWidget{border-top:1px solid #515151;} QWidget#commandWidget{min-height:123px;max-height:123px;border-top:1px solid #515151; border-bottom:1px solid #323232;} QLabel#logo{min-width:30px;max-width:30px;} QLabel#company{min-width:150px;max-width:150px; } QLabel#systemMsgBar{min-width:500px;} QLabel#warn{color:#CCCC00;background:transparent;font-size:20px;} QWidget QWidget#statusBarWidget{min-width:300px;} QWidget QToolButton{border:none;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;} QToolButton#btn_main{border:2px solid #0078d8;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;} QWidget QToolButton:disabled{color:#606060;} QWidget QToolButton:hover{background:#505050;} QWidget QToolButton:checked{border:5px solid darkorange;padding:0px;} QWidget#editcmdWidget{min-height:83px;max-height:83px;} QWidget#verSpaceLine{ border-right:1px solid #0078d8;} QWidget#topBottomLine{ border-top:2px solid #0078d8;border-bottom:2px solid #0078d8;background:transparent;} /*-----FormDialog-----*/ QPushButton{border:1px solid silver ;padding-left:50px;padding-right:50px; border-radius:5px; min-height:28px; max-height:28px; background:#4c5052;} QPushButton#btnOK{background:#365880; font-weight:bold;} QDialog#formDialog{border:3px solid silver; border-radius:8px;} QWidget#slider_one{border:1px solid silver; border-radius:8px;} QWidget#formWidget QLabel#endline{border-bottom:1px solid silver;} QWidget#formWidget QLabel#title{font-size:30px; border-bottom:1px solid #3078d8;} QListView{border:none;margin:5px; font-weight:bold;} QListView::item{background:#4c5052;min-height:30px; border:1px solid silver; border-radius:5px;} QListView::item:selected{background:#365880; font-weight:bold;color:white;} QHeaderView::section{background-color:#595959; min-height:50px;max-height:50px; font-weight:bold; font-size:16px; border:1px solid #323232;} QHeaderView::section:horizontal{border-bottom: 1px solid rgb(0,170,255);} QHeaderView::section:vertical{min-height:36px;max-height:36px;} QWidget#edit_patient{min-width:300px;max-width:300px;} QTableView{border:none;} QTableView{alternate-background-color: #595959;selection-color:white;selection-background-color:#0078d8;} QToolButton#sexBtn{min-width:120px;max-width:120px;font-size:20px;padding:2px;} QToolButton#sexBtn:disabled{color:silver;} QWidget#sexpanelwidget{border:1px solid silver;} QWidget#sexpanelwidget:enabled{background-color: #515151;} QToolButton#sexBtn:checked{border:2px solid darkorange;padding:0px;} /*-----蒙版Dialog-----*/ QDialog QWidget#innerWidget{ background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray); border-radius:20px; border:5px solid #0078d8; } QDialog#MessageDialog QWidget QWidget{ background:transparent;color:#3078d8} QDialog#MessageDialog QWidget QWidget QLabel{ font-size:30px} #spacer_1, #spacer_2{min-width:2px;max-width:2px;margin-top:6px;margin-bottom:6px;border-right:1px solid #0078d8;} \ No newline at end of file +*{background-color:#3c3c3c;color:white;margin:0;font-size:16px;} QTabWidget::tab-bar{ left: 10px; /* move to the right by 5px */ } QTabBar::tab { height:60px; min-width:300px; font-size: 25px; background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #333333, stop: 1.0 #555555); border: 2px solid #505050; border-bottom-left-radius: 50%; border-bottom-right-radius: 50%; padding: 2px; margin-bottom:10px; } QTabBar::tab:selected{ margin-left:-10px; margin-right:-10px; margin-bottom:0px; border:2px solid #606060; border-top:5px solid #4a88c7; background: #505050;} QTabBar::tab:first:selected { margin-left: 0; /* the first selected tab has nothing to overlap with on the left */ } QTabBar::tab:last:selected { margin-right: 0; /* the last selected tab has nothing to overlap with on the right */ } QTabBar::tab:only-one { margin: 0; /* if there is only one tab, we don't want overlapping margins */ } QTabWidget::pane{margin:0;} QLineEdit {min-height:36px;max-height:36px; border:1px solid silver;} QLineEdit:enabled{background-color: #515151;} QDateEdit{min-height:36px;max-height:36px; border:1px solid Silver;} QDateEdit:enabled{background-color: #515151;} QTextEdit:enabled{background-color: #515151;} QComboBox {text-align:center;min-height:36px;max-height:36px; border:1px solid silver;} QComboBox:enabled{background-color: #515151;} QComboBox::drop-down{width:20px;} QComboBox QAbstractItemView{min-width:120px;} QComboBox QAbstractItemView::item {min-height:60px;max-height:60px; border:1px solid white;} QLabel{color:white; font-weight:bold; font-size:16px;} QLabel#sliderPickerLabel{color:silver;padding:0;background:#505050;font-weight:normal;font-size:50px;} QWidget#topbarWidget{min-height:36px;max-height:36px;} QWidget#contentWidget{border-top:1px solid #515151;} QWidget#commandWidget{min-height:123px;max-height:123px;border-top:1px solid #515151; border-bottom:1px solid #323232;} QLabel#logo{min-width:30px;max-width:30px;} QLabel#company{min-width:150px;max-width:150px; } QLabel#systemMsgBar{min-width:500px;} QLabel#warn{color:#CCCC00;background:transparent;font-size:20px;} QWidget QWidget#statusBarWidget{min-width:300px;} QWidget QToolButton{border:none;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;} QToolButton#btn_main{border:2px solid #0078d8;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;} QWidget QToolButton:disabled{color:#606060;} QWidget QToolButton:hover{background:#505050;} QWidget QToolButton:checked{border:5px solid darkorange;padding:0px;} QWidget#editcmdWidget{min-height:83px;max-height:83px;} QWidget#verSpaceLine{ border-right:1px solid #0078d8;} QWidget#topBottomLine{ border-top:2px solid #0078d8;border-bottom:2px solid #0078d8;background:transparent;} /*-----FormDialog-----*/ QPushButton{border:1px solid silver ;padding-left:50px;padding-right:50px; border-radius:5px; min-height:28px; max-height:28px; background:#4c5052;} QPushButton#btnOK{background:#365880; font-weight:bold;} QDialog#formDialog{border:3px solid silver; border-radius:8px;} QWidget#slider_one{border:1px solid silver; border-radius:8px;} QWidget#formWidget QLabel#endline{border-bottom:1px solid silver;} QWidget#formWidget QLabel#title{font-size:30px; border-bottom:1px solid #3078d8;} QListView{border:none;margin:5px; font-weight:bold;} QListView::item{background:#4c5052;min-height:30px; border:1px solid silver; border-radius:5px;} QListView::item:selected{background:#365880; font-weight:bold;color:white;} QHeaderView::section{background-color:#595959; min-height:50px;max-height:50px; font-weight:bold; font-size:16px; border:1px solid #323232;} QHeaderView::section:horizontal{border-bottom: 1px solid rgb(0,170,255);} QHeaderView::section:vertical{min-height:36px;max-height:36px;} QWidget#edit_patient{min-width:300px;max-width:300px;} QTableView{border:none;} QTableView{alternate-background-color: #595959;selection-color:white;selection-background-color:#0078d8;} QToolButton#sexBtn{min-width:120px;max-width:120px;font-size:20px;padding:2px;} QToolButton#sexBtn:disabled{color:silver;} QWidget#sexpanelwidget{border:1px solid silver;} QWidget#sexpanelwidget:enabled{background-color: #515151;} QToolButton#sexBtn:checked{border:2px solid darkorange;padding:0px;} /*-----蒙版Dialog-----*/ QDialog QWidget#innerWidget{ background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray); border-radius:20px; border:5px solid #0078d8; } QDialog#MessageDialog QWidget QWidget{ background:transparent;color:#3078d8} QDialog#MessageDialog QWidget QWidget QLabel{ font-size:30px} #spacer_1, #spacer_2{min-width:2px;max-width:2px;margin-top:6px;margin-bottom:6px;border-right:1px solid #0078d8;} QDialog#loginform{background-color:#3c3c3c; color:white;margin:0;font-size:16px;} QDialog#loginform QLabel#title{font-Size:98px;color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray);} QLabel#warn{color:#930000;background:transparent;font-size:20px;} QFrame#login_frame_username{min-width:700px;max-width:700px;max-height:500px;min-height:500px; border:1px solid #0078d8;border-radius:20px; background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 darkgray, stop: 0.5 gray, stop: 1.0 darkgray);} QDialog#loginform QLineEdit{min-height:100px;max-height:100px; border:1px solid silver;border-radius:10px;font-size:26px;} QDialog#loginform QLineEdit:enabled{background-color: #515151} QDialog#loginform QToolButton#btnlogin{min-height:100px;max-height:100px; min-width:border:1px solid #505050; border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;} QDialog#loginform QToolButton#btnlogin:hover{background:#505050;} \ No newline at end of file diff --git a/src/stylesheet/Dark2.qss b/src/stylesheet/Dark2.qss index 02ef690..8e11b14 100644 --- a/src/stylesheet/Dark2.qss +++ b/src/stylesheet/Dark2.qss @@ -1 +1 @@ - /*------1.silver-->grey--------------------------*/ *{background-color:#3c3c3c; color:#fcfcfc;margin:0;font-size:16px;} QTabBar::tab { height:60px; width:300px; font-size: 25px; background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #505050, stop: 1.0 #333333); border: 2px solid #505050; border-bottom-left-radius: 50%; border-bottom-right-radius: 50%; min-width: 8ex; padding: 2px; } QTabBar::tab:selected, QTabBar::tab:hover { border-top:5px solid #4a88c7; background: #505050;} QTabWidget::pane{margin:0} QPlainTextEdit{border:0px} QGroupBox{border:0px} QLabel{color:#fcfcfc; font-weight:bold; font-size:16px;} QLineEdit{min-height:36px;max-height:36px; border:1px solid #505050;color:grey;border-radius:3px;} QLineEdit:enabled{background-color: #505050;color:#fcfcfc;} QDateEdit{min-height:36px;max-height:36px; border:1px solid #505050;color:grey;border-radius:3px;} QDateEdit:enabled{background-color: #505050;color:#fcfcfc;} QTextEdit{ border:1px solid #505050;color:grey;border-radius:3px;} QTextEdit:enabled{background-color: #505050;color:#fcfcfc;} QComboBox{text-align:center;min-height:36px;max-height:36px; border:1px solid #505050} QComboBox:enabled{background-color: #505050} QComboBox::drop-down{width:20px} QComboBox QAbstractItemView{min-width:120px;} QComboBox QAbstractItemView::item {min-height:60px;max-height:60px; border:1px solid white;} QWidget QToolButton{border:none;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;} QWidget QToolButton:disabled{color:#606060 } QWidget QToolButton:hover{background:#505050;} QWidget QToolButton:checked{border:5px solid darkorange;padding:0px;} QPushButton{border:1px solid #505050 ;padding-left:50px;padding-right:50px; border-radius:5px; min-height:28px; max-height:28px; background:qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 #505050, stop:1 #606060);} QListView{border:none;margin:5px; font-weight:bold} QListView::item{background:#4d4d4d;min-height:30px; border:1px solid #505050; border-radius:5px} QListView::item:selected{background:#365880;font-weight:bold;color:#fcfcfc;} /*QListView::item:selected{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ABAFE5, stop: 1 #8588B2); border:1px solid #505050; }*/ QHeaderView::section{background-color:#595959;min-height:50px;max-height:50px;font-weight:Bold; font-size:16px; border:1px solid #323232;} QHeaderView::section:horizontal{border-bottom: 1px solid rgb(0,170,255);} QHeaderView::section:vertical{min-height:36px;max-height:36px;} QTableView{border:none;alternate-background-color: #595959;selection-color:#fcfcfc;selection-background-color:#0078d8} /*-----------Specific---------------*/ QLabel#sliderPickerLabel{color:grey;padding:0;background:#505050;font-weight:normal;font-size:50px;} QWidget#topbarWidget{min-height:36px;max-height:36px;} QWidget#contentWidget{border-top:1px solid #505050;} QWidget#commandWidget{min-height:123px;max-height:123px;border-top:1px solid #505050; border-bottom:1px solid #323232;} QLabel#logo{min-width:30px;max-width:30px} QLabel#company{min-width:150px;max-width:150px; } QLabel#systemMsgBar{min-width:500px;} QLabel#warn{color:#CCCC00;background:transparent;font-size:20px;} QWidget QWidget#statusBarWidget{min-width:300px;} QToolButton#btn_main{border:2px solid #0078d8;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;} QWidget#editcmdWidget{min-height:83px;max-height:83px;} QWidget#verSpaceLine{ border-right:1px solid #0078d8;} QWidget#topBottomLine{ border-top:2px solid #0078d8;border-bottom:2px solid #0078d8;background:transparent} /*-----Settings*/ QPushButton#BigBtn{ padding-left:0px; padding-right:0px; min-height:60px; max-height:60px; min-width:140px; max-width:140px; font-size: 20px; font-weight:bold } /*-----蒙版Dialog-----*/ QDialog QWidget#innerWidget{ background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray); border-radius:20px;border:5px solid #0078d8; } QDialog#MessageDialog QWidget QWidget{ background:transparent;color:#3078d8} QDialog#MessageDialog QWidget QWidget QLabel{ font-size:30px} #spacer_1, #spacer_2{min-width:2px;max-width:2px;margin-top:6px;margin-bottom:6px;border-right:1px solid #0078d8;} /*-----FormDialog-----*/ QPushButton#btnOK{background:#365880; font-weight:bold} QDialog#formDialog{border:3px solid grey; border-radius:8px} QWidget#slider_one{border:1px solid #505050; border-radius:8px} QWidget#formWidget QLabel#endline{border-bottom:1px solid grey} QWidget#formWidget{font-size:30px;} QLabel#title{font-size:30px; border-bottom:1px solid #3078d8 } QWidget#edit_patient{min-width:300px;max-width:300px;} QToolButton#sexBtn{min-width:120px;max-width:120px;font-size:20px;padding:2px;} QToolButton#sexBtn:disabled{color:grey} QWidget#sexpanelwidget{border:1px solid #505050;} QWidget#sexpanelwidget:enabled{background-color: #505050;} QToolButton#sexBtn:checked{border:2px solid darkorange;padding:0px;} /*---------Abount----------*/ QLabel#normal{color:#fcfcfc; font-weight:normal; font-size:16px;} \ No newline at end of file + /*------1.silver-->grey--------------------------*/ *{background-color:#3c3c3c; color:#fcfcfc;margin:0;font-size:16px;} QTabBar::tab { height:60px; width:300px; font-size: 25px; background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0 #505050, stop: 1.0 #333333); border: 2px solid #505050; border-bottom-left-radius: 50%; border-bottom-right-radius: 50%; min-width: 8ex; padding: 2px; } QTabBar::tab:selected, QTabBar::tab:hover { border-top:5px solid #4a88c7; background: #505050;} QTabWidget::pane{margin:0} QPlainTextEdit{border:0px} QGroupBox{border:0px} QLabel{color:#fcfcfc; font-weight:bold; font-size:16px;} QLineEdit{min-height:36px;max-height:36px; border:1px solid #505050;color:grey;border-radius:3px;} QLineEdit:enabled{background-color: #505050;color:#fcfcfc;} QDateEdit{min-height:36px;max-height:36px; border:1px solid #505050;color:grey;border-radius:3px;} QDateEdit:enabled{background-color: #505050;color:#fcfcfc;} QTextEdit{ border:1px solid #505050;color:grey;border-radius:3px;} QTextEdit:enabled{background-color: #505050;color:#fcfcfc;} QComboBox{text-align:center;min-height:36px;max-height:36px; border:1px solid #505050} QComboBox:enabled{background-color: #505050} QComboBox::drop-down{width:20px} QComboBox QAbstractItemView{min-width:120px;} QComboBox QAbstractItemView::item {min-height:60px;max-height:60px; border:1px solid white;} QWidget QToolButton{border:none;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;} QWidget QToolButton:disabled{color:#606060 } QWidget QToolButton:hover{background:#505050;} QWidget QToolButton:checked{border:5px solid darkorange;padding:0px;} QPushButton{border:1px solid #505050 ;padding-left:50px;padding-right:50px; border-radius:5px; min-height:28px; max-height:28px; background:qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 #505050, stop:1 #606060);} QListView{border:none;margin:5px; font-weight:bold} QListView::item{background:#4d4d4d;min-height:30px; border:1px solid #505050; border-radius:5px} QListView::item:selected{background:#365880;font-weight:bold;color:#fcfcfc;} /*QListView::item:selected{ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ABAFE5, stop: 1 #8588B2); border:1px solid #505050; }*/ QHeaderView::section{background-color:#595959;min-height:50px;max-height:50px;font-weight:Bold; font-size:16px; border:1px solid #323232;} QHeaderView::section:horizontal{border-bottom: 1px solid rgb(0,170,255);} QHeaderView::section:vertical{min-height:36px;max-height:36px;} QTableView{border:none;alternate-background-color: #595959;selection-color:#fcfcfc;selection-background-color:#0078d8} /*-----------Specific---------------*/ QLabel#sliderPickerLabel{color:grey;padding:0;background:#505050;font-weight:normal;font-size:50px;} QWidget#topbarWidget{min-height:36px;max-height:36px;} QWidget#contentWidget{border-top:1px solid #505050;} QWidget#commandWidget{min-height:123px;max-height:123px;border-top:1px solid #505050; border-bottom:1px solid #323232;} QLabel#logo{min-width:30px;max-width:30px} QLabel#company{min-width:150px;max-width:150px; } QLabel#systemMsgBar{min-width:500px;} QLabel#warn{color:#CCCC00;background:transparent;font-size:20px;} QWidget QWidget#statusBarWidget{min-width:300px;} QToolButton#btn_main{border:2px solid #0078d8;border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;} QWidget#editcmdWidget{min-height:83px;max-height:83px;} QWidget#verSpaceLine{ border-right:1px solid #0078d8;} QWidget#topBottomLine{ border-top:2px solid #0078d8;border-bottom:2px solid #0078d8;background:transparent} /*-----Settings*/ QPushButton#BigBtn{ padding-left:0px; padding-right:0px; min-height:60px; max-height:60px; min-width:140px; max-width:140px; font-size: 20px; font-weight:bold } /*-----蒙版Dialog-----*/ QDialog QWidget#innerWidget{ background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray); border-radius:20px;border:5px solid #0078d8; } QDialog#MessageDialog QWidget QWidget{ background:transparent;color:#3078d8} QDialog#MessageDialog QWidget QWidget QLabel{ font-size:30px} #spacer_1, #spacer_2{min-width:2px;max-width:2px;margin-top:6px;margin-bottom:6px;border-right:1px solid #0078d8;} /*-----FormDialog-----*/ QPushButton#btnOK{background:#365880; font-weight:bold} QDialog#formDialog{border:3px solid grey; border-radius:8px} QWidget#slider_one{border:1px solid #505050; border-radius:8px} QWidget#formWidget QLabel#endline{border-bottom:1px solid grey} QWidget#formWidget{font-size:30px;} QLabel#title{font-size:30px; border-bottom:1px solid #3078d8 } QWidget#edit_patient{min-width:300px;max-width:300px;} QToolButton#sexBtn{min-width:120px;max-width:120px;font-size:20px;padding:2px;} QToolButton#sexBtn:disabled{color:grey} QWidget#sexpanelwidget{border:1px solid #505050;} QWidget#sexpanelwidget:enabled{background-color: #505050;} QToolButton#sexBtn:checked{border:2px solid darkorange;padding:0px;} /*---------Abount----------*/ QLabel#normal{color:#fcfcfc; font-weight:normal; font-size:16px;} QDialog#loginform{background-color:#3c3c3c; color:white;margin:0;font-size:16px;} QDialog#loginform QLabel#title{font-Size:98px;color:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,stop: 0.0 darkgray, stop: 0.5 lightgray, stop: 1.0 darkgray);} QLabel#warn{color:#930000;background:transparent;font-size:20px;} QFrame#login_frame_username{min-width:700px;max-width:700px;max-height:500px;min-height:500px; border:1px solid #0078d8;border-radius:20px; background:qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0.0 darkgray, stop: 0.5 gray, stop: 1.0 darkgray);} QDialog#loginform QLineEdit{min-height:100px;max-height:100px; border:1px solid silver;border-radius:10px;font-size:26px;} QDialog#loginform QLineEdit:enabled{background-color: #515151} QDialog#loginform QToolButton#btnlogin{min-height:100px;max-height:100px; min-width:border:1px solid #505050; border-radius:10%;font-size:26px; font-weight:Bold;padding:5px;} QDialog#loginform QToolButton#btnlogin:hover{background:#505050;} \ No newline at end of file