1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Make text white when file transfer ends

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-06-28 16:09:22 +02:00
parent 23ed263fd4
commit 2d794f6423
2 changed files with 9 additions and 0 deletions

View File

@ -19,6 +19,7 @@ int main(int argc, char *argv[])
/** TODO
* ">using a dedicated tool to maintain a TODO list" edition
*
* Notifications/ringing when a call is received
* Sort the friend list by status, online first then busy then offline
* Don't do anything if a friend is disconnected, don't print to the chat
* Show the picture's size between name and size after transfer completion if it's a pic

View File

@ -169,6 +169,10 @@ void FileTransfertWidget::onFileTransferCancelled(int FriendId, int FileNum, Tox
eta->hide();
topright->hide();
bottomright->hide();
QPalette whiteText;
whiteText.setColor(QPalette::WindowText, Qt::white);
filename->setPalette(whiteText);
size->setPalette(whiteText);
QPalette toxred;
toxred.setColor(QPalette::Window, QColor(200,78,78)); // Tox Red
setPalette(toxred);
@ -185,6 +189,10 @@ void FileTransfertWidget::onFileTransferFinished(ToxFile File)
eta->hide();
topright->hide();
bottomright->hide();
QPalette whiteText;
whiteText.setColor(QPalette::WindowText, Qt::white);
filename->setPalette(whiteText);
size->setPalette(whiteText);
// TODO: Maybe just replace the whole buttonWidget with a single round CSS that shows the accept icon
QPalette toxgreen;
toxgreen.setColor(QPalette::Window, QColor(107,194,96)); // Tox Green