From 9bab2291089c43f57711188efb3d987df2146d4a Mon Sep 17 00:00:00 2001 From: Eugene Shalygin Date: Tue, 17 Jan 2017 18:05:08 +0100 Subject: [PATCH] Adjust icons names to better fit FDO scheme An icon theme may use variously styled icons for various types of UI elements. For example, Breeze theme uses monochrome icons for actions (toolbars) and statuses, but colourful for view contents. qBittorrent was using icon names without putting attention to categories, creating mix of styles in UI elements (i.e. the main toolbar). This commit fixes icon names (and move some of them to theme) to avoid this style mixes where possible. Unfortunately, options dialog page icons for network and speed limits are remained monochrome because there are no Breeze or Adwaita icons to match. --- src/gui/mainwindow.cpp | 10 +++++----- src/gui/optionsdlg.cpp | 4 ++-- src/gui/rss/rss_imp.cpp | 2 +- src/gui/transferlistwidget.cpp | 6 +++--- src/icons.qrc | 11 ++++++----- .../{preferences-system.svg => configure.svg} | 0 .../build-icons/icons/folder-download.svg | 16 ++++++++++++++++ .../icons/{chronometer.svg => speedometer.svg} | 0 .../{preferences-system.png => configure.png} | Bin src/icons/qbt-theme/folder-download.png | Bin 0 -> 3607 bytes .../{magnet.png => qbt-theme/kt-magnet.png} | Bin .../kt-set-max-download-speed.png} | Bin .../kt-set-max-upload-speed.png} | Bin .../{chronometer.png => speedometer.png} | Bin src/webui/www/private/index.html | 6 +++--- 15 files changed, 36 insertions(+), 19 deletions(-) rename src/icons/qbt-theme/build-icons/icons/{preferences-system.svg => configure.svg} (100%) create mode 100644 src/icons/qbt-theme/build-icons/icons/folder-download.svg rename src/icons/qbt-theme/build-icons/icons/{chronometer.svg => speedometer.svg} (100%) rename src/icons/qbt-theme/{preferences-system.png => configure.png} (100%) create mode 100644 src/icons/qbt-theme/folder-download.png rename src/icons/{magnet.png => qbt-theme/kt-magnet.png} (100%) rename src/icons/{skin/downloadLimit.png => qbt-theme/kt-set-max-download-speed.png} (100%) rename src/icons/{skin/uploadLimit.png => qbt-theme/kt-set-max-upload-speed.png} (100%) rename src/icons/qbt-theme/{chronometer.png => speedometer.png} (100%) diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index 8c889e5f1..e0f15f192 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -150,10 +150,10 @@ MainWindow::MainWindow(QWidget *parent) m_ui->actionOpen->setIcon(GuiIconProvider::instance()->getIcon("list-add")); m_ui->actionDownloadFromURL->setIcon(GuiIconProvider::instance()->getIcon("insert-link")); - m_ui->actionSetUploadLimit->setIcon(QIcon(":/icons/skin/uploadLimit.png")); - m_ui->actionSetDownloadLimit->setIcon(QIcon(":/icons/skin/downloadLimit.png")); - m_ui->actionSetGlobalUploadLimit->setIcon(QIcon(":/icons/skin/uploadLimit.png")); - m_ui->actionSetGlobalDownloadLimit->setIcon(QIcon(":/icons/skin/downloadLimit.png")); + m_ui->actionSetUploadLimit->setIcon(GuiIconProvider::instance()->getIcon("kt-set-max-upload-speed")); + m_ui->actionSetDownloadLimit->setIcon(GuiIconProvider::instance()->getIcon("kt-set-max-download-speed")); + m_ui->actionSetGlobalUploadLimit->setIcon(GuiIconProvider::instance()->getIcon("kt-set-max-upload-speed")); + m_ui->actionSetGlobalDownloadLimit->setIcon(GuiIconProvider::instance()->getIcon("kt-set-max-download-speed")); m_ui->actionCreateTorrent->setIcon(GuiIconProvider::instance()->getIcon("document-edit")); m_ui->actionAbout->setIcon(GuiIconProvider::instance()->getIcon("help-about")); m_ui->actionStatistics->setIcon(GuiIconProvider::instance()->getIcon("view-statistics")); @@ -166,7 +166,7 @@ MainWindow::MainWindow(QWidget *parent) m_ui->actionIncreasePriority->setIcon(GuiIconProvider::instance()->getIcon("go-up")); m_ui->actionTopPriority->setIcon(GuiIconProvider::instance()->getIcon("go-top")); m_ui->actionLock->setIcon(GuiIconProvider::instance()->getIcon("object-locked")); - m_ui->actionOptions->setIcon(GuiIconProvider::instance()->getIcon("preferences-system")); + m_ui->actionOptions->setIcon(GuiIconProvider::instance()->getIcon("configure", "open-menu")); m_ui->actionPause->setIcon(GuiIconProvider::instance()->getIcon("media-playback-pause")); m_ui->actionPauseAll->setIcon(GuiIconProvider::instance()->getIcon("media-playback-pause")); m_ui->actionStart->setIcon(GuiIconProvider::instance()->getIcon("media-playback-start")); diff --git a/src/gui/optionsdlg.cpp b/src/gui/optionsdlg.cpp index f4cf2c7ef..a3bde6b8c 100644 --- a/src/gui/optionsdlg.cpp +++ b/src/gui/optionsdlg.cpp @@ -80,8 +80,8 @@ OptionsDialog::OptionsDialog(QWidget *parent) m_ui->tabSelection->item(TAB_UI)->setIcon(GuiIconProvider::instance()->getIcon("preferences-desktop")); m_ui->tabSelection->item(TAB_BITTORRENT)->setIcon(GuiIconProvider::instance()->getIcon("preferences-system-network")); m_ui->tabSelection->item(TAB_CONNECTION)->setIcon(GuiIconProvider::instance()->getIcon("network-wired")); - m_ui->tabSelection->item(TAB_DOWNLOADS)->setIcon(GuiIconProvider::instance()->getIcon("download")); - m_ui->tabSelection->item(TAB_SPEED)->setIcon(GuiIconProvider::instance()->getIcon("chronometer")); + m_ui->tabSelection->item(TAB_DOWNLOADS)->setIcon(GuiIconProvider::instance()->getIcon("folder-download")); + m_ui->tabSelection->item(TAB_SPEED)->setIcon(GuiIconProvider::instance()->getIcon("speedometer", "chronometer")); #ifndef DISABLE_WEBUI m_ui->tabSelection->item(TAB_WEBUI)->setIcon(GuiIconProvider::instance()->getIcon("network-server")); #else diff --git a/src/gui/rss/rss_imp.cpp b/src/gui/rss/rss_imp.cpp index 909b6432a..2a3e67cd0 100644 --- a/src/gui/rss/rss_imp.cpp +++ b/src/gui/rss/rss_imp.cpp @@ -702,7 +702,7 @@ RSSImp::RSSImp(QWidget *parent): markReadButton->setIcon(GuiIconProvider::instance()->getIcon("mail-mark-read")); updateAllButton->setIcon(GuiIconProvider::instance()->getIcon("view-refresh")); rssDownloaderBtn->setIcon(GuiIconProvider::instance()->getIcon("download")); - settingsButton->setIcon(GuiIconProvider::instance()->getIcon("preferences-system")); + settingsButton->setIcon(GuiIconProvider::instance()->getIcon("configure", "open-menu")); m_feedList = new FeedListWidget(splitterSide, m_rssManager); splitterSide->insertWidget(0, m_feedList); diff --git a/src/gui/transferlistwidget.cpp b/src/gui/transferlistwidget.cpp index ae193f55c..cb13a2dc8 100644 --- a/src/gui/transferlistwidget.cpp +++ b/src/gui/transferlistwidget.cpp @@ -654,9 +654,9 @@ void TransferListWidget::displayListMenu(const QPoint&) connect(&actionPreview_file, SIGNAL(triggered()), this, SLOT(previewSelectedTorrents())); QAction actionSet_max_ratio(QIcon(QString::fromUtf8(":/icons/skin/ratio.png")), tr("Limit share ratio..."), 0); connect(&actionSet_max_ratio, SIGNAL(triggered()), this, SLOT(setMaxRatioSelectedTorrents())); - QAction actionSet_upload_limit(QIcon(QString::fromUtf8(":/icons/skin/uploadLimit.png")), tr("Limit upload rate..."), 0); + QAction actionSet_upload_limit(GuiIconProvider::instance()->getIcon("kt-set-max-upload-speed"), tr("Limit upload rate..."), 0); connect(&actionSet_upload_limit, SIGNAL(triggered()), this, SLOT(setUpLimitSelectedTorrents())); - QAction actionSet_download_limit(QIcon(QString::fromUtf8(":/icons/skin/downloadLimit.png")), tr("Limit download rate..."), 0); + QAction actionSet_download_limit(GuiIconProvider::instance()->getIcon("kt-set-max-download-speed"), tr("Limit download rate..."), 0); connect(&actionSet_download_limit, SIGNAL(triggered()), this, SLOT(setDlLimitSelectedTorrents())); QAction actionOpen_destination_folder(GuiIconProvider::instance()->getIcon("inode-directory"), tr("Open destination folder"), 0); connect(&actionOpen_destination_folder, SIGNAL(triggered()), this, SLOT(openSelectedTorrentsFolder())); @@ -672,7 +672,7 @@ void TransferListWidget::displayListMenu(const QPoint&) connect(&actionSetTorrentPath, SIGNAL(triggered()), this, SLOT(setSelectedTorrentsLocation())); QAction actionForce_recheck(GuiIconProvider::instance()->getIcon("document-edit-verify"), tr("Force recheck"), 0); connect(&actionForce_recheck, SIGNAL(triggered()), this, SLOT(recheckSelectedTorrents())); - QAction actionCopy_magnet_link(QIcon(":/icons/magnet.png"), tr("Copy magnet link"), 0); + QAction actionCopy_magnet_link(GuiIconProvider::instance()->getIcon("kt-magnet"), tr("Copy magnet link"), 0); connect(&actionCopy_magnet_link, SIGNAL(triggered()), this, SLOT(copySelectedMagnetURIs())); QAction actionCopy_name(GuiIconProvider::instance()->getIcon("edit-copy"), tr("Copy name"), 0); connect(&actionCopy_name, SIGNAL(triggered()), this, SLOT(copySelectedNames())); diff --git a/src/icons.qrc b/src/icons.qrc index 4cf75b828..8a7441ef6 100644 --- a/src/icons.qrc +++ b/src/icons.qrc @@ -4,7 +4,6 @@ icons/3-state-checkbox.gif icons/L.gif icons/loading.png - icons/magnet.png icons/slow.png icons/slow_off.png icons/sphere.png @@ -254,7 +253,7 @@ icons/qbt-theme/application-exit.png icons/qbt-theme/application-rss+xml.png icons/qbt-theme/application-x-mswinurl.png - icons/qbt-theme/chronometer.png + icons/qbt-theme/configure.png icons/qbt-theme/dialog-cancel.png icons/qbt-theme/dialog-information.png icons/qbt-theme/dialog-warning.png @@ -276,6 +275,7 @@ icons/qbt-theme/edit-paste.png icons/qbt-theme/edit-rename.png icons/qbt-theme/folder-documents.png + icons/qbt-theme/folder-download.png icons/qbt-theme/folder-new.png icons/qbt-theme/folder-remote.png icons/qbt-theme/gear.png @@ -286,6 +286,9 @@ icons/qbt-theme/help-contents.png icons/qbt-theme/inode-directory.png icons/qbt-theme/insert-link.png + icons/qbt-theme/kt-magnet.png + icons/qbt-theme/kt-set-max-download-speed.png + icons/qbt-theme/kt-set-max-upload-speed.png icons/qbt-theme/list-add.png icons/qbt-theme/list-remove.png icons/qbt-theme/mail-folder-inbox.png @@ -299,11 +302,11 @@ icons/qbt-theme/preferences-desktop.png icons/qbt-theme/preferences-other.png icons/qbt-theme/preferences-system-network.png - icons/qbt-theme/preferences-system.png icons/qbt-theme/preferences-web-browser-cookies.png icons/qbt-theme/security-high.png icons/qbt-theme/security-low.png icons/qbt-theme/services.png + icons/qbt-theme/speedometer.png icons/qbt-theme/tab-close.png icons/qbt-theme/task-attention.png icons/qbt-theme/task-complete.png @@ -373,7 +376,5 @@ icons/qbt-theme/go-top.png icons/qbt-theme/checked.png icons/qbt-theme/office-chart-line.png - icons/skin/downloadLimit.png - icons/skin/uploadLimit.png diff --git a/src/icons/qbt-theme/build-icons/icons/preferences-system.svg b/src/icons/qbt-theme/build-icons/icons/configure.svg similarity index 100% rename from src/icons/qbt-theme/build-icons/icons/preferences-system.svg rename to src/icons/qbt-theme/build-icons/icons/configure.svg diff --git a/src/icons/qbt-theme/build-icons/icons/folder-download.svg b/src/icons/qbt-theme/build-icons/icons/folder-download.svg new file mode 100644 index 000000000..f966e9921 --- /dev/null +++ b/src/icons/qbt-theme/build-icons/icons/folder-download.svg @@ -0,0 +1,16 @@ + + + + + + + + diff --git a/src/icons/qbt-theme/build-icons/icons/chronometer.svg b/src/icons/qbt-theme/build-icons/icons/speedometer.svg similarity index 100% rename from src/icons/qbt-theme/build-icons/icons/chronometer.svg rename to src/icons/qbt-theme/build-icons/icons/speedometer.svg diff --git a/src/icons/qbt-theme/preferences-system.png b/src/icons/qbt-theme/configure.png similarity index 100% rename from src/icons/qbt-theme/preferences-system.png rename to src/icons/qbt-theme/configure.png diff --git a/src/icons/qbt-theme/folder-download.png b/src/icons/qbt-theme/folder-download.png new file mode 100644 index 0000000000000000000000000000000000000000..40c25f154288205b51d28294c008e828b67e3d46 GIT binary patch literal 3607 zcmdT{XH=6(7k&f5L<9rkT9ztZ2xaM_Km-Ir5kx@|5OnECkw_O3L?wUOD+7$pG;1B}9_kf*O)QbSHgJLYv7vNyK1^2^)_TET44-5e8f4}=day9o$gTZZR z>(dwFikE2E>)vbeJwK=zQkW3BUqNxvzSlbV%&&$)2JiPD4THO?D*Ar5Sw`%&Kll8F zwA7zB^n%6*4ZSr@BOL{wD+AorOkeVK>!b?pUrZjEs8Wu>f2fzVJTneBJU6VF{5$2t z_tKxNtQ^%!r|a~@<;~J>E8A;oKicTFqSTY)T)Ay~Fu#A@hI}hv-2<=ZZ$+j|^kq4a zZK^0v?&5}-9j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*dFk&b(&6!|gvW=ATYJ2@#EBLE=p$wO zfZ|jNR&gPb@K$}HwM{2xA}rwY@F>PR-H~cHdH#k4!QQx+74ulTcMEBL7%+i7*2=j_ zT@Ykb({hQ`8o_TWn@UHB@m~%9`|o;*4>4Ig5e*Fe!wwekQ(k|U1M+taR`gT!bjPiy z17`(d-5l5DK%r;8I7-H9S0)n)Y#_6TmaN} zf=3OuciXGHcYrh2uwpb|mE8jIbZ!j4$)#`LUs02|#4NbHIEu^m;=jw_rFPgF$%`3UeK-l>h9|M^ zHv2RucRwRVrAl1;T4OzYkr2XUXH#@UHiEk`!7B?L!y(Df9gW+k#t1suuXE&E;hiOA y1|xUATp=uYs5Ghlz56zqum0Dsp51`%U;*O&nbRMq6!f0%+UPT9t!pfOZ~q76 QBT_TR(&Tools)QBT_TR
  • @@ -118,8 +118,8 @@
  • QBT_TR(Move to bottom)QBT_TR QBT_TR(Move to bottom)QBT_TR
  • -
  • QBT_TR(Limit download rate...)QBT_TR QBT_TR(Limit download rate...)QBT_TR
  • -
  • QBT_TR(Limit upload rate...)QBT_TR QBT_TR(Limit upload rate...)QBT_TR
  • +
  • QBT_TR(Limit download rate...)QBT_TR QBT_TR(Limit download rate...)QBT_TR
  • +
  • QBT_TR(Limit upload rate...)QBT_TR QBT_TR(Limit upload rate...)QBT_TR
  • QBT_TR(Super seeding mode)QBT_TR QBT_TR(Super seeding mode)QBT_TR
  • QBT_TR(Download in sequential order)QBT_TR QBT_TR(Download in sequential order)QBT_TR
  • QBT_TR(Download first and last pieces first)QBT_TR QBT_TR(Download first and last pieces first)QBT_TR