From 6e75e403fa7905df3106071fc8f371d1e5d19f21 Mon Sep 17 00:00:00 2001 From: krivoshein Date: Tue, 9 Sep 2025 18:43:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B5=D0=BB=D1=8B=D0=B5=20=D1=82=D0=B0?= =?UTF-8?q?=D0=B1=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/css/styleSheetMain.css | 104 +++++++++++++----- 1 file changed, 75 insertions(+), 29 deletions(-) diff --git a/InstructorsAndTrainees/resources/css/styleSheetMain.css b/InstructorsAndTrainees/resources/css/styleSheetMain.css index 59c91d8..ba4d42b 100644 --- a/InstructorsAndTrainees/resources/css/styleSheetMain.css +++ b/InstructorsAndTrainees/resources/css/styleSheetMain.css @@ -1,22 +1,33 @@ /*Обязательные поля*/ *[mandatoryField="true"] { - background-color: #fff2fb + background-color: #fffdfd } /*Общие настройки виджетов*/ QWidget { font-family: Tahoma; - font-size: 14pt; - icon-size: 24px; + font-size: 11pt; + icon-size: 20px; + /*background-color: green;*/ +} + +QWidget#widgetTop { + /*border: 1px solid gray;*/ + background: #E0E0E0; +} + +QWidget#viewerTrainees +{ + padding-left: 20px; } -QLineEdit, QTextEdit { +QLineEdit, QTextEdit, QComboBox { border: 1px solid gray; - border-radius: 4px; + border-radius: 2px; padding: 0px 8px; - background: white; + background: #fafafafa; selection-background-color: darkgray; } QLineEdit[echoMode="2"] { @@ -30,13 +41,14 @@ QLineEdit:read-only { QGroupBox { background: #E0E0E0; border: 1px solid gray; - border-radius: 5px; + border-radius: 3px; margin-top: 5ex; /* leave space at the top for the title */ + } QGroupBox::title { border: 1px solid gray; border-bottom: none; - border-radius: 5px; + border-radius: 4px; subcontrol-origin: margin; subcontrol-position: top left; padding-left: 10px; @@ -45,25 +57,32 @@ QGroupBox::title { stop: 0 #A0CECE, stop: 1 #FFFFFF); } - QPushButton, QToolButton { border: 2px solid #8f8f91; border-style: outset; border-radius: 5px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #f6f7fa, stop: 1 #dadbde); - min-width: 80px; - height: 60px; - padding: 1px; + min-width: 75px; + height: 50px; + padding: 1px; + + qproperty-iconSize: 24px; } QPushButton { height: 25px; } QToolButton { - width: 200px; + width: 165px; + height: 44px; } -QToolButton#btnSend { /*Кнопка Send Мессенджера*/ - width: 60px; + +/*QToolButton#btnSettings, */ +QToolButton#btnSend, QToolButton#btnDelete, QToolButton#btnCheck, QToolButton#btnOnlyActive, +QToolButton#btnSave, QToolButton#btnUpdateStyle, QToolButton#btnSetVersion, +QToolButton#btnAssignTask { + width: 70px; + height: 44px; } QPushButton:flat, QToolButton:flat { border: none; /* no border for a flat push button */ @@ -91,6 +110,10 @@ QPushButton:checked, QToolButton:checked { QCheckBox { spacing: 20px; } +QCheckBox#checkAutoStart { + spacing: 0px; +} + QCheckBox::indicator:checked { width: 24px; height: 24px; @@ -104,7 +127,7 @@ QCheckBox::indicator:!checked { QTreeWidget { - font-size: 12pt; + font-size: 11pt; font-family: Tahoma; icon-size: 24px; } @@ -157,8 +180,17 @@ QHeaderView::section { QTabWidget::pane { /* The tab widget frame */ border-top: 1px solid #C2C7CB; - background-image: url(:/resources/icons/messengerPrint.png); - + /*background-image: url(:/resources/icons/messengerPrint.png);*/ +} +QTabWidget::pane#tabWidgetTasks { /* The tab widget frame */ + border-top: 1px solid #C2C7CB; + /*background-image: url(:/resources/icons/messengerPrint.png);*/ + /* + padding-left: -18px; + padding-right: -18px; + padding-top: -8px; + padding-bottom: -8px; + */ } QTabWidget::tab-bar { left: 0px; /* move to the right by 0px */ @@ -171,26 +203,29 @@ QTabBar::tab { border-bottom-color: #C2C7CB; /* same as the pane color */ border-top-left-radius: 4px; border-top-right-radius: 4px; - min-width: 8ex; + min-width: 20ex; padding: 2px; } - +/* QTabBar::tab:selected { border-color: #9B9B9B; - border-bottom-color: #C2C7CB; /* same as pane color */ - /* expand/overlap to the left and right by 4px */ - margin-left: -4px; - margin-right: -4px; + border-bottom-color: #C2C7CB; background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc); color: #ffffff; } -QTabBar::tab:!selected { - margin-top: 5px; /* make non-selected tabs look smaller */ +*/ +QTabBar::tab:selected { background: #ffffff; } +QTabBar::tab:!selected { + margin-top: 5px; /* make non-selected tabs look smaller */ + /*background: #ffffff;*/ +} + + QTabBar::tab:hover { background: #aee1ff; } @@ -202,20 +237,21 @@ QTabBar QToolButton { /* the scroll buttons are tool buttons */ min-width: 30px; width: 30px; padding: 0px; + margin-top: 5px; } QListWidget::item { - padding: -5px; + /*padding: -5px;*/ } QListWidget { /*background: pink;*/ background: transparent; - background: #f0ffff; + background: #ffffff; } QTextEdit { padding: -20px; - font-size: 12pt; + font-size: 11pt; } QTextEdit#MsgWidgetLocal { @@ -228,3 +264,13 @@ QTextEdit#MsgWidgetRemote { QWidget { } + +QPlainTextEdit#plainText{ /*Репорт*/ + margin-left: 50pt; + margin-right: 100pt; +} +/**/ +QComboBox { + /*background: #ffffff; + border-radius: 5px;*/ +}