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)
|
if(fileInfo.direction == ToxFile::SENDING)
|
||||||
showPreview(fileInfo.filePath);
|
showPreview(fileInfo.filePath);
|
||||||
|
|
||||||
setFixedHeight(80);
|
setFixedHeight(60);
|
||||||
}
|
}
|
||||||
|
|
||||||
FileTransferWidget::~FileTransferWidget()
|
FileTransferWidget::~FileTransferWidget()
|
||||||
|
@ -134,7 +134,7 @@ void FileTransferWidget::paintEvent(QPaintEvent *)
|
||||||
painter.setPen(Qt::NoPen);
|
painter.setPen(Qt::NoPen);
|
||||||
|
|
||||||
qreal s = static_cast<qreal>(geometry().height()) / static_cast<qreal>(geometry().width());
|
qreal s = static_cast<qreal>(geometry().height()) / static_cast<qreal>(geometry().width());
|
||||||
int r = 15;
|
int r = 20;
|
||||||
|
|
||||||
painter.drawRoundRect(geometry(), r * s, r);
|
painter.drawRoundRect(geometry(), r * s, r);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,16 +10,16 @@
|
||||||
|
|
||||||
QPushButton {
|
QPushButton {
|
||||||
margin:0;
|
margin:0;
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
QProgressBar {
|
QProgressBar {
|
||||||
border: 2px solid black;
|
border: 2px solid black;
|
||||||
border-radius: 0px;
|
border-radius: 4px;
|
||||||
color: white;
|
background-color: @mediumGrey;
|
||||||
background-color:white;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QProgressBar::chunk {
|
QProgressBar::chunk {
|
||||||
background-color: black;
|
background-color: @lightGrey;
|
||||||
width: 20px;
|
width: 1px;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user