Рефакт

This commit is contained in:
2025-09-12 17:11:53 +03:00
parent 7022db1e5c
commit 8533ff4c34
2 changed files with 58 additions and 14 deletions

View File

@@ -18,7 +18,9 @@ MessangerWidget::MessangerWidget(QWidget *parent) :
ui->btnSend->setObjectName("btnSend"); ui->btnSend->setObjectName("btnSend");
ui->editMsg->setObjectName("editMsg"); ui->editMsg->setObjectName("editMsg");
ui->lblUser->setObjectName("lblUser"); ui->lblUser->setObjectName("MessangerWidgetLblUser");
ui->lblAvatar->setObjectName("MessangerWidgetLblAvatar");
ui->lblLoggedIn->setObjectName("MessangerWidgetLblLoggedIn");
} }
MessangerWidget::~MessangerWidget() MessangerWidget::~MessangerWidget()

View File

@@ -7,7 +7,7 @@
/*Общие настройки виджетов*/ /*Общие настройки виджетов*/
QWidget { QWidget {
font-family: Tahoma; font-family: Tahoma;
font-size: 11pt; font-size: 12pt;
icon-size: 24px; icon-size: 24px;
/*background-color: green;*/ /*background-color: green;*/
} }
@@ -44,6 +44,7 @@ QGroupBox {
border-radius: 3px; border-radius: 3px;
margin-top: 5ex; /* leave space at the top for the title */ margin-top: 5ex; /* leave space at the top for the title */
} }
QGroupBox::title { QGroupBox::title {
border: 1px solid gray; border: 1px solid gray;
@@ -55,6 +56,7 @@ QGroupBox::title {
padding-right: 10px; padding-right: 10px;
background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #A0CECE, stop: 1 #FFFFFF); stop: 0 #A0CECE, stop: 1 #FFFFFF);
} }
QPushButton, QToolButton { QPushButton, QToolButton {
@@ -73,14 +75,14 @@ QPushButton {
height: 25px; height: 25px;
} }
QToolButton { QToolButton {
width: 165px; width: 180px;
height: 55px; height: 55px;
} }
QToolButton#btnSend, QToolButton#btnDelete, QToolButton#btnCheck, QToolButton#btnOnlyActive, QToolButton#btnSend, QToolButton#btnDelete, QToolButton#btnCheck, QToolButton#btnOnlyActive,
QToolButton#btnSave, QToolButton#btnUpdateStyle, QToolButton#btnSetVersion, QToolButton#btnSave, QToolButton#btnUpdateStyle, QToolButton#btnSetVersion,
QToolButton#btnAssignTask { QToolButton#btnAssignTask {
width: 70px; width: 80px;
height: 55px; height: 55px;
} }
QPushButton:flat, QToolButton:flat { QPushButton:flat, QToolButton:flat {
@@ -126,7 +128,7 @@ QCheckBox::indicator:!checked {
QTreeWidget { QTreeWidget {
font-size: 12pt; font-size: 13pt;
font-family: Tahoma; font-family: Tahoma;
icon-size: 32px; icon-size: 32px;
} }
@@ -162,18 +164,24 @@ QTreeWidget::branch:hover {
} }
QTreeWidget::item:selected { QTreeWidget::item:selected {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc); /*background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc);*/
background: #6ea1f1;
color: #ffffff; color: #ffffff;
} }
QHeaderView::section { QHeaderView::section {
/*
background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,
stop:0 #c1c1c1, stop: 0.5 #505050, stop:0 #c1c1c1, stop: 0.5 #505050,
stop: 0.6 #434343, stop:1 #656565); stop: 0.6 #434343, stop:1 #656565);*/
color: white; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #A0CECE, stop: 1 #FFFFFF);
color: black;
padding-left: 4px; padding-left: 4px;
border: 1px solid #6c6c6c; border: 1px solid #6c6c6c;
font-size: 13pt;
} }
@@ -194,6 +202,7 @@ QTabWidget::pane#tabWidgetTasks { /* The tab widget frame */
QTabWidget::tab-bar { QTabWidget::tab-bar {
left: 0px; /* move to the right by 0px */ left: 0px; /* move to the right by 0px */
} }
QTabBar::tab { QTabBar::tab {
background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
stop: 0 #E1E1E1, stop: 0.4 #DDDDDD, stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
@@ -202,12 +211,14 @@ QTabBar::tab {
border-bottom-color: #C2C7CB; /* same as the pane color */ border-bottom-color: #C2C7CB; /* same as the pane color */
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-top-right-radius: 4px; border-top-right-radius: 4px;
min-width: 20ex; min-width: 40ex;
padding: 2px; padding: 2px;
font-size: 12pt;
} }
/* /*
QTabBar::tab:selected { QTabBar::tab:selected {
border-color: #9B9B9B; border-color: #9B9B9B;
@@ -245,32 +256,63 @@ QListWidget::item {
QListWidget { QListWidget {
/*background: pink;*/ /*background: pink;*/
background: transparent; background: transparent;
background: #ffffff; /*background: #ffffff;*/
background: #ddeeff;
} }
QTextEdit { QTextEdit {
padding: -20px; padding: -20px;
font-size: 11pt; font-size: 12pt;
} }
QTextEdit#editMsg { QTextEdit#editMsg {
height: 65px; /**/ height: 65px; /**/
background: #ddeeff;
} }
QTextEdit#MsgWidgetEditTextLocal { QTextEdit#MsgWidgetEditTextLocal {
/*background: tlightgreen;*/ /*background: tlightgreen;*/
background: #ddffdd; background: #ddffdd;
border-radius: 10px; border-radius: 8px;
} }
QTextEdit#MsgWidgetEditTextRemote { QTextEdit#MsgWidgetEditTextRemote {
/*background: lightblue;*/ /*background: lightblue;*/
background: #ddeeff; /*background: #ddeeff;*/
border-radius: 10px; background: #ffffff;
border-radius: 8px;
} }
QLabel#MsgWidgetLblTimeLocal { QLabel#MsgWidgetLblTimeLocal {
font-size: 9pt; font-size: 9pt;
/*background: yellow;*/
} }
QLabel#MsgWidgetLblTimeRemote { QLabel#MsgWidgetLblTimeRemote {
font-size: 9pt; font-size: 9pt;
/*background: yellow;*/
}
QLabel#MsgWidgetLblNameLocal {
font-size: 9pt;
/*background: yellow;*/
}
QLabel#MsgWidgetLblNameRemote {
font-size: 9pt;
/*background: yellow;*/
}
QLabel#MsgWidgetLblAvatar {
/*background: pink;*/
}
QLabel#MessangerWidgetLblUser {
background: #ddeeff;
padding-left: 4px;
border-radius: 8px;
}
QLabel#MessangerWidgetLblAvatar {
}
QLabel#MessangerWidgetLblLoggedIn {
} }
QWidget { QWidget {