From 87880f1ca007e51644a9f8435fd7691b1d61755d Mon Sep 17 00:00:00 2001 From: Krad Date: Thu, 14 Jul 2022 16:56:20 +0800 Subject: [PATCH] Use Listbox instead of BigBtn. --- src/EditPatientDialog.cpp | 6 - src/components/ListBox.cpp | 3 +- src/forms/settings/GeneralForm.cpp | 3 +- src/forms/settings/SystemSettingForm.cpp | 5 +- src/forms/settings/SystemSettingForm.ui | 684 ++++++++++++----------- src/stylesheet/Dark2.css | 655 +++++++++++++++++++++- 6 files changed, 1006 insertions(+), 350 deletions(-) diff --git a/src/EditPatientDialog.cpp b/src/EditPatientDialog.cpp index ede84b1..69ad9f6 100644 --- a/src/EditPatientDialog.cpp +++ b/src/EditPatientDialog.cpp @@ -59,9 +59,6 @@ EditPatientDialog::EditPatientDialog(QWidget* parent, Qt::WindowFlags f) : GUIFo btnSex = new ListBox(this); btnSex->setText(tr("Female")); btnSex->setProperty("idx", 0); - btnSex->setLayoutDirection(Qt::RightToLeft); - btnSex->setObjectName("editvalBtn"); - btnSex->setIcon(QIcon(":/icons/arrow-down.png")); btnSex->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); connect(btnSex, &QToolButton::clicked, [=]() { @@ -89,9 +86,6 @@ EditPatientDialog::EditPatientDialog(QWidget* parent, Qt::WindowFlags f) : GUIFo layout->addWidget(lbl_date); btnDate = new ListBox(this); - btnDate->setLayoutDirection(Qt::RightToLeft); - btnDate->setObjectName("editvalBtn"); - btnDate->setIcon(QIcon(":/icons/arrow-down.png")); btnDate->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed); btnDate->setText("1990-06-15"); connect(btnDate, &QToolButton::clicked, [=]() { diff --git a/src/components/ListBox.cpp b/src/components/ListBox.cpp index 054c48a..aca9cb5 100644 --- a/src/components/ListBox.cpp +++ b/src/components/ListBox.cpp @@ -8,7 +8,8 @@ #include ListBox::ListBox(QWidget *parent) : QToolButton(parent) { - + this->setLayoutDirection(Qt::RightToLeft); + this->setObjectName("ListBox"); } void ListBox::paintEvent(QPaintEvent *e) { diff --git a/src/forms/settings/GeneralForm.cpp b/src/forms/settings/GeneralForm.cpp index b59b0fe..3dcd77c 100644 --- a/src/forms/settings/GeneralForm.cpp +++ b/src/forms/settings/GeneralForm.cpp @@ -14,6 +14,7 @@ #include "utilities/Locker.h" #include "utilities/LanguageSwitcher.h" #include "components/ULineEdit.h" +#include "components/ListBox.h" GeneralForm::GeneralForm(QWidget* aParent) : QWidget(aParent) @@ -28,7 +29,7 @@ GeneralForm::GeneralForm(QWidget* aParent) QLabel* languageLabel = new QLabel(tr("Language")); lanHeaderLayout->addWidget(languageLabel); - QPushButton* btnLan = new QPushButton(lanHeader); + QToolButton* btnLan = new ListBox(lanHeader); lanHeaderLayout->addWidget(btnLan); lanHeaderLayout->addSpacerItem(new QSpacerItem(20, 20, QSizePolicy::Expanding)); diff --git a/src/forms/settings/SystemSettingForm.cpp b/src/forms/settings/SystemSettingForm.cpp index 2097b7e..b699b3c 100644 --- a/src/forms/settings/SystemSettingForm.cpp +++ b/src/forms/settings/SystemSettingForm.cpp @@ -13,6 +13,7 @@ #include "event/EventCenter.h" #include "device/DeviceManager.h" #include "json/cmdhelper.h" +#include "components/ListBox.h" SystemSettingForm::SystemSettingForm(QWidget* parent) : QWidget(parent) @@ -40,9 +41,9 @@ SystemSettingForm::SystemSettingForm(QWidget* parent) //data init mUI->btnPro->setText(JsonObject::Instance()->defaultProtocal()); - mUI->btnPro->setObjectName("BigBtn"); + mUI->btnPro->setObjectName("ListBox"); mUI->btnFlt->setText(JsonObject::Instance()->defaultFilter()); - mUI->btnFlt->setObjectName("BigBtn"); + mUI->btnFlt->setObjectName("ListBox"); QGridLayout* gridLayout = (QGridLayout*)mUI->block10->layout(); auto scanConfirmButton = new ImageSwitch(this); diff --git a/src/forms/settings/SystemSettingForm.ui b/src/forms/settings/SystemSettingForm.ui index 0fe08de..db7d90c 100644 --- a/src/forms/settings/SystemSettingForm.ui +++ b/src/forms/settings/SystemSettingForm.ui @@ -1,347 +1,353 @@ - SystemSettingForm - - - - 0 - 0 - 681 - 678 - - - - Form - - - - - + SystemSettingForm + + + + 0 + 0 + 681 + 678 + + + + Form + + + + + + + + - - - - - - - - - - - - Protocal - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 40 - 20 - - - - - - - - Qt::Horizontal - - - - - - - - 100 - 0 - - - - Auto Verify - - - - - - - - 25 - 25 - - - - - - - - Qt::Horizontal - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 40 - 20 - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - + + + + + + + + + Protocal + + - - - - Qt::Vertical - - + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 40 + 20 + + + - - - - - - - IP - - - Qt::ToolButtonTextBesideIcon - - - - - - - Qt::Horizontal - - - - - - - - - - Worklist Filter - - - - - - - Qt::Horizontal - - - QSizePolicy::Fixed - - - - 40 - 20 - - - - - - - - - 0 - 0 - - - - - 0 - 0 - - - - - 16777215 - 16777215 - - - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - - DICOM - - - Qt::ToolButtonTextBesideIcon - - - - - - - Qt::Horizontal - - - - - - - Disk Storage - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Qt::Horizontal - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - + + + + Qt::Horizontal + + - - + + + + + 100 + 0 + + + + Auto Verify + + + + + + + + 25 + 25 + + + + + + + + Qt::Horizontal + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 40 + 20 + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + + + + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + - - - - - ImageSwitch - QWidget -
components/ImageSwitch.h
- 1 -
- - BatteryWidget - QWidget -
components/BatteryWidget.h
- 1 -
-
- - + + + + Qt::Vertical + + + + + + + + + + IP + + + Qt::ToolButtonTextBesideIcon + + + + + + + Qt::Horizontal + + + + + + + + + + Worklist Filter + + + + + + + Qt::Horizontal + + + QSizePolicy::Fixed + + + + 40 + 20 + + + + + + + + + 0 + 0 + + + + + 0 + 0 + + + + + 16777215 + 16777215 + + + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + DICOM + + + Qt::ToolButtonTextBesideIcon + + + + + + + Qt::Horizontal + + + + + + + Disk Storage + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Qt::Horizontal + + + + + + + Qt::Vertical + + + + 20 + 40 + + + + + + + +
+
+ +
+
+ + + ImageSwitch + QWidget +
components/ImageSwitch.h
+ 1 +
+ + BatteryWidget + QWidget +
components/BatteryWidget.h
+ 1 +
+ + ListBox + QToolButton +
components/ListBox.h
+ 1 +
+
+ +
diff --git a/src/stylesheet/Dark2.css b/src/stylesheet/Dark2.css index 47bbc21..4dcf7f5 100644 --- a/src/stylesheet/Dark2.css +++ b/src/stylesheet/Dark2.css @@ -1 +1,654 @@ -/* Global */ * { background-color: #3c3c3c; color: #fcfcfc; margin: 0; font-size: 16px; } /* Global buttons */ 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.50, y1: 0, x2: 0.5, y2: 1, stop: 0 #505050, stop: 1 #606060); } QToolButton { border: none; border-radius: 10%; font-size: 26px; background: qlineargradient(spread:pad, x1: 0.5, y1: 0, x2: 0.5, y2: 1.0, stop: 0 #404040, stop: 0.5 #505050, stop: 1.0 #404040); font-weight: Bold; padding: 5px; } QToolButton:disabled { border: none; color: #606060; background: #3c3c3c } QToolButton:hover { background: #505050; } QToolButton:checked { border: 5px solid darkorange; padding: 0; } /* Global QGroupBox */ QGroupBox { border: 0px } /* Global Editors */ QLabel { color: #fcfcfc; font-weight: bold; font-size: 16px; } QLineEdit { min-height: 36px; max-height: 36px; border: none; border-bottom: 1px solid #505050; color: grey; } QLineEdit:enabled { background-color: #505050; border-bottom-color: #4a88c7; color: #fcfcfc; } QPlainTextEdit { border: 0px } QDateEdit { min-height: 36px; max-height: 36px; border: none; border-bottom: 1px solid #505050; color: grey; border-radius: 3px; } QDateEdit:disabled { background-color: #3c3c3c; border-bottom-color: #4a88c7; color: #fcfcfc; } QTextEdit { border: 1px solid #505050; color: grey; border-radius: 3px; } QTextEdit:enabled { background-color: #505050; border: 1px solid #4a88c7; color: #fcfcfc; } QComboBox { text-align: center; min-height: 36px; max-height: 36px; border: 1px solid #505050 } QComboBox:enabled { background-color: #505050 } /* Global Tab */ 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 } /* Global TableView & ListView */ QTableView { border: none; alternate-background-color: #595959; selection-color: #fcfcfc; selection-background-color: #0078d8; margin: 5px 0 5 5; } QListView { border: none; margin: 5px; font-weight: bold } QListView::item { background: qlineargradient(spread:pad, x1: 0.5, y1: 0, x2: 0.5, y2: 1.0, stop: 0 #404040, stop: 0.5 #505050, stop: 1.0 #404040); min-height: 30px; border: 1px solid #505050; border-radius: 5px } QListView::item:selected { background: #365880; font-weight: bold; color: #fcfcfc; } QHeaderView::down-arrow { subcontrol-position: center right; image: url(":/icons/arrow-down.png"); padding-right: 8px; } QHeaderView::up-arrow { subcontrol-position: center right; image: url(":/icons/arrow-up.png"); padding-right: 8px; } 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#verSpaceLine { min-width: 2px; max-width: 2px; border-right: 1px solid #0078d8; margin-top: 6px; margin-bottom: 6px; } QLabel#endline { border-bottom: 1px solid grey } QLabel#warn { color: #930000; background: transparent; font-size: 20px; } QLabel#title { font-size: 30px; } /*------LoginWindow----------------------------------------------------------*/ QFrame#loginFrame { 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 { 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); } 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: 200px; border: 1px solid #505050; border-radius: 10%; font-size: 26px; font-weight: Bold; padding: 5px; } QDialog#loginForm QToolButton#btnlogin:hover { background: #505050; } /*------MainWindow------------------------------------------------------------------*/ /*------TopbarWidget--------------------------------------------------------------- */ QWidget#topbarWidget { min-height: 36px; max-height: 36px; } QWidget#borderWidget { border: 1px solid white } QWidget#statusBarWidget { min-width: 300px; } QLabel#logo { min-width: 30px; max-width: 30px; min-height: 30px; max-height: 30px; qproperty-pixmap:url(":/icons/logo.png"); qproperty-scaledContents:true; } QLabel#msglogo { min-width: 28px; max-width: 28px; min-height: 28px; max-height: 28px; qproperty-pixmap:url(":/icons/msg.png"); qproperty-scaledContents:true; } QLabel#link { min-width: 28px; max-width: 28px; min-height: 28px; max-height: 28px; qproperty-pixmap:url(":/icons/link_g.png"); qproperty-scaledContents:true; } QLabel#ready { min-width: 28px; max-width: 28px; min-height: 28px; max-height: 28px; qproperty-pixmap:url(":/icons/ready.png"); qproperty-scaledContents:true; } QLabel#company { min-width: 150px; max-width: 150px; } QLabel#systemMsgBar { min-width: 500px; } /*------TabFormWidget--------------------------------------------------------*/ 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; } /*------SelectformWidget-----------------------------------------------------*/ QWidget#patientDetailWidget { min-width: 300px; max-width: 300px; margin-top: 5; } QToolButton#showeditBtn { margin-top: 5; padding-top: 0; border-top: 1px solid darkgray; border-bottom: 1px solid darkgray; border-left: 1px solid darkgray; border-radius: 0; border-bottom-left-radius: 10px; font-size: 20px; font-weight: normal; background: #505050; qproperty-toolButtonStyle:ToolButtonTextUnderIcon; qproperty-icon:url(":/icons/edit.png"); qproperty-iconSize:30px 30px; } QToolButton#hideeditBtn { border-top: 1px solid darkgray; border-bottom: 1px solid darkgray; border-left: 1px solid darkgray; border-radius: 0; border-top-left-radius: 10px; border-bottom-left-radius: 10px; font-size: 20px; font-weight: normal; background: #505050; qproperty-toolButtonStyle:ToolButtonTextBesideIcon; qproperty-icon:url(":/icons/hidearrow.png"); qproperty-iconSize:30px 30px; } /* PatientDetailForm in SelectformWidget */ QWidget#editcmdWidget { min-height: 83px; max-height: 83px; } QLineEdit#displayLineEdit:disabled { background-color: #3c3c3c; border-bottom-color: #4a88c7; color: #fcfcfc; } /*------ScanFormWidget-------------------------------------------------------*/ QWidget#paramWidget { min-width: 300px; max-width: 300px; border-left: 1px solid #0078d8 } QWidget#broadcastWidget { border: 2px solid #515151; border-radius: 20px; background-color: black } QWidget#PatientInformationForm { min-width: 300px; max-width: 300px; margin-right: 10 } QLabel#protocolPanelTitle { font-size: 32px; margin: 0; color: silver } QLabel#parameterTitle,#protocolTitle,#patientTitle{ font-size: 20px; margin: 0; border-bottom: 1px solid silver } QLabel#endSpaceLine { font-size: 20px; margin: 0; border-top: 1px solid #0078d8 } QLabel#placeholder { font-size: 20px; } QWidget#patientInfoPanel QLabel { font-size: 20px; } QWidget#broadcastWidget QLabel { background-color: black } /* PatientInfomationForm in ScanFormWidget */ QWidget#patientInfoPanel { border-right: 1px solid #0078d8 } /* protocol buttons in ScanFormWidget*/ QToolButton#sexBtn { min-width: 120px; max-width: 120px; font-size: 20px; padding: 2px; } QToolButton#sexBtn:checked { border: 2px solid darkorange; padding: 0px; } /*------AdminSettingForm---------------------------------------------------*/ QWidget#settingContentWidget { border-top: 1px solid #505050; border-bottom: 1px solid #323232; } QWidget#settingContentWidget QStackedWidget{ margin-top: 5; margin-bottom: 5 } /*------AboutWidget----------------------------------------------------------*/ QLabel#normal { color: #fcfcfc; font-weight: normal; font-size: 16px; } /*------SystemSettingForm----------------------------------------------------*/ 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; } QToolButton#btnDICOM{ qproperty-icon:url(":/icons/dicomsettings.png"); qproperty-iconSize:80px 80px; } QToolButton#btnNetwork{ qproperty-icon:url(":/icons/networksettings.png"); qproperty-iconSize:80px 80px; } /*------AccountTableForm-----------------------------------------------------*/ QWidget#commandWidgetnoBBorder { min-height: 123px; max-height: 123px; border-top: 1px solid #505050; } /*------GUIFormBaseDialog----------------------------------------------------*/ QDialog#formDialog { border: 3px solid grey; border-radius: 8px } QWidget#formWidget { font-size: 30px; } GUIFormBaseDialog QToolButton{ min-height: 36px; max-height: 36px; border: none; border-bottom: 1px solid #505050; border-radius: 0; color: grey; qproperty-toolButtonStyle:ToolButtonTextBesideIcon; qproperty-iconSize:30px 30px; } GUIFormBaseDialog QToolButton:enabled { background-color: #505050; border-bottom-color: #4a88c7; color: #fcfcfc; } QPushButton#btnOK { background: #365880; font-weight: bold } /* GUIFormBaseDialog - AccountFormDialog */ QToolButton#changePwdBtn{ qproperty-icon:url(":/icons/edit.png"); } QToolButton#logoutBtn{ qproperty-icon:url(":/icons/logout.png"); } /*------GUIMessageDialog-----------------------------------------------------*/ 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 } GUIMessageDialog QToolButton{ border: 2px solid #0078d8; border-radius: 10%; font-size: 26px; font-weight: Bold; padding: 5px; qproperty-toolButtonStyle:ToolButtonTextBesideIcon; qproperty-iconSize:30px 30px; } QToolButton#dialogBtnOK{ qproperty-icon:url(":/icons/selected_d.png"); } QToolButton#dialogBtnStop{ qproperty-icon:url(":/icons/close_circle_d.png"); } /*------SlidePickerBox--------------------------------------------------------*/ QWidget#slidePicker { border: 1px solid #505050; border-radius: 8px } QWidget#topBottomLine { border-top: 2px solid #0078d8; border-bottom: 2px solid #0078d8; background: transparent; } QLabel#sliderPickerLabel { color: grey; padding: 0; background: #505050; font-weight: normal; font-size: 50px; } QLabel#sliderSpliterLabel { color: white; padding-top: 35px; font-weight: normal; font-size: 50px; } \ No newline at end of file +/* Global */ +* { + background-color: #3c3c3c; + color: #fcfcfc; + margin: 0; + font-size: 16px; +} + +/* Global buttons */ +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.50, + y1: 0, + x2: 0.5, + y2: 1, + stop: 0 #505050, + stop: 1 #606060); +} + +QToolButton { + border: none; + border-radius: 10%; + font-size: 26px; + background: qlineargradient(spread:pad, + x1: 0.5, + y1: 0, + x2: 0.5, + y2: 1.0, + stop: 0 #404040, + stop: 0.5 #505050, + stop: 1.0 #404040); + font-weight: Bold; + padding: 5px; +} + +QToolButton:disabled { + border: none; + color: #606060; + background: #3c3c3c +} + +QToolButton:hover { + background: #505050; +} + +QToolButton:checked { + border: 5px solid darkorange; + padding: 0; +} + +/* Global QGroupBox */ +QGroupBox { + border: 0px +} + +/* Global Editors */ +QLabel { + color: #fcfcfc; + font-weight: bold; + font-size: 16px; +} + +QLineEdit { + min-height: 36px; + max-height: 36px; + border: none; + border-bottom: 1px solid #505050; + color: grey; +} + +QLineEdit:enabled { + background-color: #505050; + border-bottom-color: #4a88c7; + color: #fcfcfc; +} + +QPlainTextEdit { + border: 0px +} + +QDateEdit { + min-height: 36px; + max-height: 36px; + border: none; + border-bottom: 1px solid #505050; + color: grey; + border-radius: 3px; +} + +QDateEdit:disabled { + background-color: #3c3c3c; + border-bottom-color: #4a88c7; + color: #fcfcfc; +} + +QTextEdit { + border: 1px solid #505050; + color: grey; + border-radius: 3px; +} + +QTextEdit:enabled { + background-color: #505050; + border: 1px solid #4a88c7; + color: #fcfcfc; +} + +QComboBox { + text-align: center; + min-height: 36px; + max-height: 36px; + border: 1px solid #505050 +} + +QComboBox:enabled { + background-color: #505050 +} + +/* Global Tab */ +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 +} + +/* Global TableView & ListView */ +QTableView { + border: none; + alternate-background-color: #595959; + selection-color: #fcfcfc; + selection-background-color: #0078d8; + margin: 5px 0 5 5; +} + +QListView { + border: none; + margin: 5px; + font-weight: bold +} + +QListView::item { + background: qlineargradient(spread:pad, + x1: 0.5, + y1: 0, + x2: 0.5, + y2: 1.0, + stop: 0 #404040, + stop: 0.5 #505050, + stop: 1.0 #404040); + min-height: 30px; + border: 1px solid #505050; + border-radius: 5px +} + +QListView::item:selected { + background: #365880; + font-weight: bold; + color: #fcfcfc; +} + +QHeaderView::down-arrow { + subcontrol-position: center right; + image: url(":/icons/arrow-down.png"); + padding-right: 8px; +} + +QHeaderView::up-arrow { + subcontrol-position: center right; + image: url(":/icons/arrow-up.png"); + padding-right: 8px; +} + +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#verSpaceLine { + min-width: 2px; + max-width: 2px; + border-right: 1px solid #0078d8; + margin-top: 6px; + margin-bottom: 6px; +} + +QLabel#endline { + border-bottom: 1px solid grey +} + +QLabel#warn { + color: #930000; + background: transparent; + font-size: 20px; +} + +QLabel#title { + font-size: 30px; +} + +/*------LoginWindow----------------------------------------------------------*/ +QFrame#loginFrame { + 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 { + 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); +} + +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: 200px; + border: 1px solid #505050; + border-radius: 10%; + font-size: 26px; + font-weight: Bold; + padding: 5px; +} + +QDialog#loginForm QToolButton#btnlogin:hover { + background: #505050; +} + +/*------MainWindow------------------------------------------------------------------*/ + +/*------TopbarWidget--------------------------------------------------------------- */ +QWidget#topbarWidget { + min-height: 36px; + max-height: 36px; +} + +QWidget#borderWidget { + border: 1px solid white +} + +QWidget#statusBarWidget { + min-width: 300px; +} + +QLabel#logo { + min-width: 30px; + max-width: 30px; + min-height: 30px; + max-height: 30px; + qproperty-pixmap:url(":/icons/logo.png"); + qproperty-scaledContents:true; +} + +QLabel#msglogo { + min-width: 28px; + max-width: 28px; + min-height: 28px; + max-height: 28px; + qproperty-pixmap:url(":/icons/msg.png"); + qproperty-scaledContents:true; +} + +QLabel#link { + min-width: 28px; + max-width: 28px; + min-height: 28px; + max-height: 28px; + qproperty-pixmap:url(":/icons/link_g.png"); + qproperty-scaledContents:true; +} + +QLabel#ready { + min-width: 28px; + max-width: 28px; + min-height: 28px; + max-height: 28px; + qproperty-pixmap:url(":/icons/ready.png"); + qproperty-scaledContents:true; +} + +QLabel#company { + min-width: 150px; + max-width: 150px; +} + +QLabel#systemMsgBar { + min-width: 500px; +} + +/*------TabFormWidget--------------------------------------------------------*/ +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; +} + +/*------SelectformWidget-----------------------------------------------------*/ +QWidget#patientDetailWidget { + min-width: 300px; + max-width: 300px; + margin-top: 5; +} + +QToolButton#showeditBtn { + margin-top: 5; + padding-top: 0; + border-top: 1px solid darkgray; + border-bottom: 1px solid darkgray; + border-left: 1px solid darkgray; + border-radius: 0; + border-bottom-left-radius: 10px; + font-size: 20px; + font-weight: normal; + background: #505050; + qproperty-toolButtonStyle:ToolButtonTextUnderIcon; + qproperty-icon:url(":/icons/edit.png"); + qproperty-iconSize:30px 30px; +} + +QToolButton#hideeditBtn { + border-top: 1px solid darkgray; + border-bottom: 1px solid darkgray; + border-left: 1px solid darkgray; + border-radius: 0; + border-top-left-radius: 10px; + border-bottom-left-radius: 10px; + font-size: 20px; + font-weight: normal; + background: #505050; + qproperty-toolButtonStyle:ToolButtonTextBesideIcon; + qproperty-icon:url(":/icons/hidearrow.png"); + qproperty-iconSize:30px 30px; +} +/* PatientDetailForm in SelectformWidget */ +QWidget#editcmdWidget { + min-height: 83px; + max-height: 83px; +} + +QLineEdit#displayLineEdit:disabled { + background-color: #3c3c3c; + border-bottom-color: #4a88c7; + color: #fcfcfc; +} + +/*------ScanFormWidget-------------------------------------------------------*/ +QWidget#paramWidget { + min-width: 300px; + max-width: 300px; + border-left: 1px solid #0078d8 +} + +QWidget#broadcastWidget { + border: 2px solid #515151; + border-radius: 20px; + background-color: black +} + +QWidget#PatientInformationForm { + min-width: 300px; + max-width: 300px; + margin-right: 10 +} + +QLabel#protocolPanelTitle { + font-size: 32px; + margin: 0; + color: silver +} + +QLabel#parameterTitle,#protocolTitle,#patientTitle{ + font-size: 20px; + margin: 0; + border-bottom: 1px solid silver +} + +QLabel#endSpaceLine { + font-size: 20px; + margin: 0; + border-top: 1px solid #0078d8 +} + +QLabel#placeholder { + font-size: 20px; +} + +QWidget#patientInfoPanel QLabel { + font-size: 20px; +} + +QWidget#broadcastWidget QLabel { + background-color: black +} + +/* PatientInfomationForm in ScanFormWidget */ +QWidget#patientInfoPanel { + border-right: 1px solid #0078d8 +} + +/* protocol buttons in ScanFormWidget*/ +QToolButton#sexBtn { + min-width: 120px; + max-width: 120px; + font-size: 20px; + padding: 2px; +} + +QToolButton#sexBtn:checked { + border: 2px solid darkorange; + padding: 0px; +} + +/*------AdminSettingForm---------------------------------------------------*/ +QWidget#settingContentWidget { + border-top: 1px solid #505050; + border-bottom: 1px solid #323232; +} + +QWidget#settingContentWidget QStackedWidget{ + margin-top: 5; + margin-bottom: 5 +} + +/*------AboutWidget----------------------------------------------------------*/ +QLabel#normal { + color: #fcfcfc; + font-weight: normal; + font-size: 16px; +} + +/*------SystemSettingForm----------------------------------------------------*/ +QToolButton#btnDICOM{ + qproperty-icon:url(":/icons/dicomsettings.png"); + qproperty-iconSize:80px 80px; +} + +QToolButton#btnNetwork{ + qproperty-icon:url(":/icons/networksettings.png"); + qproperty-iconSize:80px 80px; +} + +/*------AccountTableForm-----------------------------------------------------*/ +QWidget#commandWidgetnoBBorder { + min-height: 123px; + max-height: 123px; + border-top: 1px solid #505050; +} + + +/*------GUIFormBaseDialog----------------------------------------------------*/ +QDialog#formDialog { + border: 3px solid grey; + border-radius: 8px +} + +QWidget#formWidget { + font-size: 30px; +} + +GUIFormBaseDialog QToolButton{ + min-height: 36px; + max-height: 36px; + border: none; + border-bottom: 1px solid #505050; + border-radius: 0; + color: grey; + qproperty-toolButtonStyle:ToolButtonTextBesideIcon; + qproperty-iconSize:30px 30px; +} + +GUIFormBaseDialog QToolButton:enabled { + background-color: #505050; + border-bottom-color: #4a88c7; + color: #fcfcfc; +} + +QPushButton#btnOK { + background: #365880; + font-weight: bold +} + +/* GUIFormBaseDialog - AccountFormDialog */ +QToolButton#changePwdBtn{ + qproperty-icon:url(":/icons/edit.png"); +} + +QToolButton#logoutBtn{ + qproperty-icon:url(":/icons/logout.png"); +} + + +/*------GUIMessageDialog-----------------------------------------------------*/ +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 +} + +GUIMessageDialog QToolButton{ + border: 2px solid #0078d8; + border-radius: 10%; + font-size: 26px; + font-weight: Bold; + padding: 5px; + qproperty-toolButtonStyle:ToolButtonTextBesideIcon; + qproperty-iconSize:30px 30px; +} + +QToolButton#dialogBtnOK{ + qproperty-icon:url(":/icons/selected_d.png"); +} + +QToolButton#dialogBtnStop{ + qproperty-icon:url(":/icons/close_circle_d.png"); +} + +/*------SlidePickerBox--------------------------------------------------------*/ +QWidget#slidePicker { + border: 1px solid #505050; + border-radius: 8px +} + +QWidget#topBottomLine { + border-top: 2px solid #0078d8; + border-bottom: 2px solid #0078d8; + background: transparent; +} + +QLabel#sliderPickerLabel { + color: grey; + padding: 0; + background: #505050; + font-weight: normal; + font-size: 50px; +} + +QLabel#sliderSpliterLabel { + color: white; + padding-top: 35px; + font-weight: normal; + font-size: 50px; +} + +/*------ListBox--------------------------------------------------------------*/ +QToolButton#ListBox { + background-color: #505050; + color: #fcfcfc; + min-height: 30px; + max-height: 30px; + border: none; + border: 1px solid #4a88c7; + border-radius: 5px; + color: grey; + qproperty-toolButtonStyle:ToolButtonTextBesideIcon; + qproperty-iconSize:30px 30px; + qproperty-icon:url(":/icons/arrow-down.png"); +} +ListBox { + qproperty-icon:url(":/icons/arrow-down.png"); +} + +