mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
- COSMETIC: Use more skin colors instead of hard coded ones
This commit is contained in:
1
TODO
1
TODO
@@ -53,3 +53,4 @@
|
|||||||
|
|
||||||
rc9->rc10 changelog:
|
rc9->rc10 changelog:
|
||||||
- FEATURE: Greatly improved ETA calculation algorithm (use GASA)
|
- FEATURE: Greatly improved ETA calculation algorithm (use GASA)
|
||||||
|
- COSMETIC: Use more skin colors instead of hard coded ones
|
||||||
|
|||||||
@@ -414,7 +414,7 @@ void DownloadingTorrents::updateDlList() {
|
|||||||
}else{
|
}else{
|
||||||
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/stalled.png"))), Qt::DecorationRole);
|
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/stalled.png"))), Qt::DecorationRole);
|
||||||
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
||||||
setRowColor(row, QPalette::WindowText);
|
setRowColor(row, QApplication::palette().color(QPalette::WindowText));
|
||||||
}
|
}
|
||||||
DLListModel->setData(DLListModel->index(row, PROGRESS), QVariant((double)h.progress()));
|
DLListModel->setData(DLListModel->index(row, PROGRESS), QVariant((double)h.progress()));
|
||||||
DLListModel->setData(DLListModel->index(row, DLSPEED), QVariant((double)h.download_payload_rate()));
|
DLListModel->setData(DLListModel->index(row, DLSPEED), QVariant((double)h.download_payload_rate()));
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ class DownloadingTorrents : public QWidget, public Ui::downloading{
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void updateDlList();
|
void updateDlList();
|
||||||
void setInfoBar(QString info, QColor color=QPalette::WindowText);
|
void setInfoBar(QString info, QColor color=QApplication::palette().color(QPalette::WindowText));
|
||||||
void pauseTorrent(QString hash);
|
void pauseTorrent(QString hash);
|
||||||
void resumeTorrent(QString hash);
|
void resumeTorrent(QString hash);
|
||||||
void updateRatio();
|
void updateRatio();
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ class QGnomeLookStyle : public QCleanlooksStyle {
|
|||||||
vertical = (pb2->orientation == Qt::Vertical);
|
vertical = (pb2->orientation == Qt::Vertical);
|
||||||
}
|
}
|
||||||
if (!vertical) {
|
if (!vertical) {
|
||||||
QPalette::ColorRole textRole = QPalette::Dark;/*
|
QPalette::ColorRole textRole = QPalette::WindowText;/*
|
||||||
if ((pb->textAlignment & Qt::AlignCenter) && pb->textVisible
|
if ((pb->textAlignment & Qt::AlignCenter) && pb->textVisible
|
||||||
&& ((qint64(pb->progress) - qint64(pb->minimum)) * 2 >= (qint64(pb->maximum) - qint64(pb->minimum)))) {
|
&& ((qint64(pb->progress) - qint64(pb->minimum)) * 2 >= (qint64(pb->maximum) - qint64(pb->minimum)))) {
|
||||||
textRole = QPalette::HighlightedText;
|
textRole = QPalette::HighlightedText;
|
||||||
|
|||||||
Reference in New Issue
Block a user