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:
parent
23ed263fd4
commit
2d794f6423
1
main.cpp
1
main.cpp
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user