mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
FileTransferWidget: visual tweaks
This commit is contained in:
parent
57485368cb
commit
ce486eb1b3
|
@ -60,7 +60,7 @@ FileTransferWidget::FileTransferWidget(QWidget *parent, ToxFile file)
|
|||
if(fileInfo.direction == ToxFile::SENDING)
|
||||
showPreview(fileInfo.filePath);
|
||||
|
||||
setFixedHeight(80);
|
||||
setFixedHeight(60);
|
||||
}
|
||||
|
||||
FileTransferWidget::~FileTransferWidget()
|
||||
|
@ -134,7 +134,7 @@ void FileTransferWidget::paintEvent(QPaintEvent *)
|
|||
painter.setPen(Qt::NoPen);
|
||||
|
||||
qreal s = static_cast<qreal>(geometry().height()) / static_cast<qreal>(geometry().width());
|
||||
int r = 15;
|
||||
int r = 20;
|
||||
|
||||
painter.drawRoundRect(geometry(), r * s, r);
|
||||
}
|
||||
|
|
|
@ -10,16 +10,16 @@
|
|||
|
||||
QPushButton {
|
||||
margin:0;
|
||||
border: none;
|
||||
}
|
||||
|
||||
QProgressBar {
|
||||
border: 2px solid black;
|
||||
border-radius: 0px;
|
||||
color: white;
|
||||
background-color:white;
|
||||
border-radius: 4px;
|
||||
background-color: @mediumGrey;
|
||||
}
|
||||
|
||||
QProgressBar::chunk {
|
||||
background-color: black;
|
||||
width: 20px;
|
||||
background-color: @lightGrey;
|
||||
width: 1px;
|
||||
}
|
Loading…
Reference in New Issue
Block a user