Icons cleanup.

This commit is contained in:
Martin Rotter 2014-02-02 10:27:11 +01:00
parent 99bc81f35e
commit ba382fb1a5
40 changed files with 54 additions and 55 deletions

View File

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

View File

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

View File

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 5.8 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -22,8 +22,8 @@ FeedsModel::FeedsModel(QObject *parent) : QAbstractItemModel(parent) {
m_rootItem = new FeedsModelRootItem(); m_rootItem = new FeedsModelRootItem();
m_rootItem->setId(NO_PARENT_CATEGORY); m_rootItem->setId(NO_PARENT_CATEGORY);
m_rootItem->setTitle(tr("root")); m_rootItem->setTitle(tr("root"));
m_rootItem->setIcon(IconThemeFactory::instance()->fromTheme("folder-red")); m_rootItem->setIcon(IconThemeFactory::instance()->fromTheme("folder-root"));
m_countsIcon = IconThemeFactory::instance()->fromTheme("mail-mark-important"); m_countsIcon = IconThemeFactory::instance()->fromTheme("mail-mark-unread");
m_headerData << tr("Title"); m_headerData << tr("Title");
m_tooltipData << tr("Titles of feeds/categories.") << m_tooltipData << tr("Titles of feeds/categories.") <<
tr("Counts of unread/all meesages."); tr("Counts of unread/all meesages.");

View File

@ -36,9 +36,9 @@ MessagesModel::~MessagesModel() {
void MessagesModel::setupIcons() { void MessagesModel::setupIcons() {
m_favoriteIcon = IconThemeFactory::instance()->fromTheme("favorites"); m_favoriteIcon = IconThemeFactory::instance()->fromTheme("mail-mark-favorite");
m_readIcon = IconThemeFactory::instance()->fromTheme("mail-mark-not-junk"); m_readIcon = IconThemeFactory::instance()->fromTheme("mail-mark-read");
m_unreadIcon = IconThemeFactory::instance()->fromTheme("mail-mark-important"); m_unreadIcon = IconThemeFactory::instance()->fromTheme("mail-mark-unread");
} }
void MessagesModel::fetchAll() { void MessagesModel::fetchAll() {

View File

@ -15,7 +15,7 @@ FormAbout::FormAbout(QWidget *parent) : QDialog(parent), m_ui(new Ui::FormAbout)
// Set flags and attributes. // Set flags and attributes.
setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog); setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog);
setWindowIcon(IconThemeFactory::instance()->fromTheme("help-about")); setWindowIcon(IconThemeFactory::instance()->fromTheme("application-about"));
#if !defined(Q_OS_WIN) #if !defined(Q_OS_WIN)
MessageBox::iconify(m_ui->m_buttonBox); MessageBox::iconify(m_ui->m_buttonBox);

View File

@ -201,9 +201,9 @@ bool FormMain::event(QEvent *event) {
void FormMain::setupIcons() { void FormMain::setupIcons() {
// Setup icons of this main window. // Setup icons of this main window.
m_ui->m_actionSettings->setIcon(IconThemeFactory::instance()->fromTheme("preferences-system")); m_ui->m_actionSettings->setIcon(IconThemeFactory::instance()->fromTheme("application-settings"));
m_ui->m_actionQuit->setIcon(IconThemeFactory::instance()->fromTheme("application-exit")); m_ui->m_actionQuit->setIcon(IconThemeFactory::instance()->fromTheme("application-exit"));
m_ui->m_actionAboutGuard->setIcon(IconThemeFactory::instance()->fromTheme("help-about")); m_ui->m_actionAboutGuard->setIcon(IconThemeFactory::instance()->fromTheme("application-about"));
m_ui->m_actionImport->setIcon(IconThemeFactory::instance()->fromTheme("document-import")); m_ui->m_actionImport->setIcon(IconThemeFactory::instance()->fromTheme("document-import"));
m_ui->m_actionExport->setIcon(IconThemeFactory::instance()->fromTheme("document-export")); m_ui->m_actionExport->setIcon(IconThemeFactory::instance()->fromTheme("document-export"));
m_ui->m_actionFullscreen->setIcon(IconThemeFactory::instance()->fromTheme("view-fullscreen")); m_ui->m_actionFullscreen->setIcon(IconThemeFactory::instance()->fromTheme("view-fullscreen"));
@ -212,28 +212,28 @@ void FormMain::setupIcons() {
m_ui->m_actionAddBrowser->setIcon(IconThemeFactory::instance()->fromTheme("list-add")); m_ui->m_actionAddBrowser->setIcon(IconThemeFactory::instance()->fromTheme("list-add"));
m_ui->m_actionCloseCurrentTab->setIcon(IconThemeFactory::instance()->fromTheme("list-remove")); m_ui->m_actionCloseCurrentTab->setIcon(IconThemeFactory::instance()->fromTheme("list-remove"));
m_ui->m_actionCloseAllTabs->setIcon(IconThemeFactory::instance()->fromTheme("list-remove")); m_ui->m_actionCloseAllTabs->setIcon(IconThemeFactory::instance()->fromTheme("list-remove"));
m_ui->m_menuCurrentTab->setIcon(IconThemeFactory::instance()->fromTheme("go-home")); m_ui->m_menuCurrentTab->setIcon(IconThemeFactory::instance()->fromTheme("list-current"));
// Feeds/messages. // Feeds/messages.
m_ui->m_menuAddItem->setIcon(IconThemeFactory::instance()->fromTheme("document-new")); m_ui->m_menuAddItem->setIcon(IconThemeFactory::instance()->fromTheme("item-new"));
m_ui->m_actionUpdateAllFeeds->setIcon(IconThemeFactory::instance()->fromTheme("document-save-as")); m_ui->m_actionUpdateAllFeeds->setIcon(IconThemeFactory::instance()->fromTheme("item-update-all"));
m_ui->m_actionUpdateSelectedFeedsCategories->setIcon(IconThemeFactory::instance()->fromTheme("document-save")); m_ui->m_actionUpdateSelectedFeedsCategories->setIcon(IconThemeFactory::instance()->fromTheme("item-update-selected"));
m_ui->m_actionClearFeeds->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-junk")); m_ui->m_actionClearFeeds->setIcon(IconThemeFactory::instance()->fromTheme("mail-remove"));
m_ui->m_actionDeleteSelectedFeedCategory->setIcon(IconThemeFactory::instance()->fromTheme("edit-delete")); m_ui->m_actionDeleteSelectedFeedCategory->setIcon(IconThemeFactory::instance()->fromTheme("item-remove"));
m_ui->m_actionDeleteSelectedMessages->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-junk")); m_ui->m_actionDeleteSelectedMessages->setIcon(IconThemeFactory::instance()->fromTheme("mail-remove"));
m_ui->m_actionAddStandardCategory->setIcon(IconThemeFactory::instance()->fromTheme("document-new")); m_ui->m_actionAddStandardCategory->setIcon(IconThemeFactory::instance()->fromTheme("item-new"));
m_ui->m_actionAddStandardFeed->setIcon(IconThemeFactory::instance()->fromTheme("document-new")); m_ui->m_actionAddStandardFeed->setIcon(IconThemeFactory::instance()->fromTheme("item-new"));
m_ui->m_actionEditSelectedFeedCategory->setIcon(IconThemeFactory::instance()->fromTheme("gnome-other")); m_ui->m_actionEditSelectedFeedCategory->setIcon(IconThemeFactory::instance()->fromTheme("item-edit"));
m_ui->m_actionMarkAllFeedsRead->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-not-junk")); m_ui->m_actionMarkAllFeedsRead->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-read"));
m_ui->m_actionMarkSelectedFeedsAsRead->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-not-junk")); m_ui->m_actionMarkSelectedFeedsAsRead->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-read"));
m_ui->m_actionMarkSelectedFeedsAsUnread->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-important")); m_ui->m_actionMarkSelectedFeedsAsUnread->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-unread"));
m_ui->m_actionMarkSelectedMessagesAsRead->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-not-junk")); m_ui->m_actionMarkSelectedMessagesAsRead->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-read"));
m_ui->m_actionMarkSelectedMessagesAsUnread->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-important")); m_ui->m_actionMarkSelectedMessagesAsUnread->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-unread"));
m_ui->m_actionSwitchImportanceOfSelectedMessages->setIcon(IconThemeFactory::instance()->fromTheme("favorites")); m_ui->m_actionSwitchImportanceOfSelectedMessages->setIcon(IconThemeFactory::instance()->fromTheme("mail-mark-favorite"));
m_ui->m_actionOpenSelectedSourceArticlesInternally->setIcon(IconThemeFactory::instance()->fromTheme("document-open")); m_ui->m_actionOpenSelectedSourceArticlesInternally->setIcon(IconThemeFactory::instance()->fromTheme("item-open"));
m_ui->m_actionOpenSelectedSourceArticlesExternally->setIcon(IconThemeFactory::instance()->fromTheme("document-open")); m_ui->m_actionOpenSelectedSourceArticlesExternally->setIcon(IconThemeFactory::instance()->fromTheme("item-open"));
m_ui->m_actionOpenSelectedMessagesInternally->setIcon(IconThemeFactory::instance()->fromTheme("document-open")); m_ui->m_actionOpenSelectedMessagesInternally->setIcon(IconThemeFactory::instance()->fromTheme("item-open"));
m_ui->m_actionViewSelectedItemsNewspaperMode->setIcon(IconThemeFactory::instance()->fromTheme("document-multiple")); m_ui->m_actionViewSelectedItemsNewspaperMode->setIcon(IconThemeFactory::instance()->fromTheme("item-newspaper"));
// Setup icons for underlying components: opened web browsers... // Setup icons for underlying components: opened web browsers...
foreach (WebBrowser *browser, WebBrowser::runningWebBrowsers()) { foreach (WebBrowser *browser, WebBrowser::runningWebBrowsers()) {

View File

@ -28,7 +28,7 @@ FormSettings::FormSettings(QWidget *parent) : QDialog(parent), m_ui(new Ui::Form
// Set flags and attributes. // Set flags and attributes.
setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog); setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog);
setWindowIcon(IconThemeFactory::instance()->fromTheme("preferences-system")); setWindowIcon(IconThemeFactory::instance()->fromTheme("application-settings"));
#if !defined(Q_OS_WIN) #if !defined(Q_OS_WIN)
MessageBox::iconify(m_ui->m_buttonBox); MessageBox::iconify(m_ui->m_buttonBox);

View File

@ -145,7 +145,7 @@ void FormStandardCategoryDetails::onLoadIconFromFile() {
QFileDialog dialog(this, tr("Select icon file for the category"), QFileDialog dialog(this, tr("Select icon file for the category"),
QDir::homePath(), tr("Images (*.bmp *.jpg *.jpeg *.png *.svg *.tga)")); QDir::homePath(), tr("Images (*.bmp *.jpg *.jpeg *.png *.svg *.tga)"));
dialog.setFileMode(QFileDialog::ExistingFile); dialog.setFileMode(QFileDialog::ExistingFile);
dialog.setWindowIcon(IconThemeFactory::instance()->fromTheme("image-x-generic")); dialog.setWindowIcon(IconThemeFactory::instance()->fromTheme("image-generic"));
dialog.setOptions(QFileDialog::DontUseNativeDialog | QFileDialog::ReadOnly); dialog.setOptions(QFileDialog::DontUseNativeDialog | QFileDialog::ReadOnly);
dialog.setViewMode(QFileDialog::Detail); dialog.setViewMode(QFileDialog::Detail);
dialog.setLabelText(QFileDialog::Accept, tr("Select icon")); dialog.setLabelText(QFileDialog::Accept, tr("Select icon"));
@ -160,7 +160,7 @@ void FormStandardCategoryDetails::onLoadIconFromFile() {
} }
void FormStandardCategoryDetails::onUseDefaultIcon() { void FormStandardCategoryDetails::onUseDefaultIcon() {
m_ui->m_btnIcon->setIcon(IconThemeFactory::instance()->fromTheme("folder-black")); m_ui->m_btnIcon->setIcon(IconThemeFactory::instance()->fromTheme("folder-category"));
} }
void FormStandardCategoryDetails::initialize() { void FormStandardCategoryDetails::initialize() {
@ -176,7 +176,7 @@ void FormStandardCategoryDetails::initialize() {
// Set flags and attributes. // Set flags and attributes.
setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog); setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog);
setWindowIcon(IconThemeFactory::instance()->fromTheme("document-new")); setWindowIcon(IconThemeFactory::instance()->fromTheme("item-new"));
// Setup button box. // Setup button box.
m_ui->m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false); m_ui->m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
@ -187,13 +187,13 @@ void FormStandardCategoryDetails::initialize() {
// Setup menu & actions for icon selection. // Setup menu & actions for icon selection.
m_iconMenu = new QMenu(tr("Icon selection"), this); m_iconMenu = new QMenu(tr("Icon selection"), this);
m_actionLoadIconFromFile = new QAction(IconThemeFactory::instance()->fromTheme("image-x-generic"), m_actionLoadIconFromFile = new QAction(IconThemeFactory::instance()->fromTheme("image-generic"),
tr("Load icon from file..."), tr("Load icon from file..."),
this); this);
m_actionNoIcon = new QAction(IconThemeFactory::instance()->fromTheme("edit-delete"), m_actionNoIcon = new QAction(IconThemeFactory::instance()->fromTheme("dialog-cancel"),
tr("Do not use icon"), tr("Do not use icon"),
this); this);
m_actionUseDefaultIcon = new QAction(IconThemeFactory::instance()->fromTheme("folder-black"), m_actionUseDefaultIcon = new QAction(IconThemeFactory::instance()->fromTheme("folder-category"),
tr("Use default icon"), tr("Use default icon"),
this); this);
m_iconMenu->addAction(m_actionLoadIconFromFile); m_iconMenu->addAction(m_actionLoadIconFromFile);

View File

@ -150,7 +150,7 @@ void FormStandardFeedDetails::onLoadIconFromFile() {
QFileDialog dialog(this, tr("Select icon file for the feed"), QFileDialog dialog(this, tr("Select icon file for the feed"),
QDir::homePath(), tr("Images (*.bmp *.jpg *.jpeg *.png *.svg *.tga)")); QDir::homePath(), tr("Images (*.bmp *.jpg *.jpeg *.png *.svg *.tga)"));
dialog.setFileMode(QFileDialog::ExistingFile); dialog.setFileMode(QFileDialog::ExistingFile);
dialog.setWindowIcon(IconThemeFactory::instance()->fromTheme("image-x-generic")); dialog.setWindowIcon(IconThemeFactory::instance()->fromTheme("image-generic"));
dialog.setOptions(QFileDialog::DontUseNativeDialog | QFileDialog::ReadOnly); dialog.setOptions(QFileDialog::DontUseNativeDialog | QFileDialog::ReadOnly);
dialog.setViewMode(QFileDialog::Detail); dialog.setViewMode(QFileDialog::Detail);
dialog.setLabelText(QFileDialog::Accept, tr("Select icon")); dialog.setLabelText(QFileDialog::Accept, tr("Select icon"));
@ -165,7 +165,7 @@ void FormStandardFeedDetails::onLoadIconFromFile() {
} }
void FormStandardFeedDetails::onUseDefaultIcon() { void FormStandardFeedDetails::onUseDefaultIcon() {
m_ui->m_btnIcon->setIcon(IconThemeFactory::instance()->fromTheme("application-rss+xml")); m_ui->m_btnIcon->setIcon(IconThemeFactory::instance()->fromTheme("folder-feed"));
} }
void FormStandardFeedDetails::apply() { void FormStandardFeedDetails::apply() {
@ -254,7 +254,7 @@ void FormStandardFeedDetails::initialize() {
// Set flags and attributes. // Set flags and attributes.
setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog); setWindowFlags(Qt::MSWindowsFixedSizeDialogHint | Qt::Dialog);
setWindowIcon(IconThemeFactory::instance()->fromTheme("document-new")); setWindowIcon(IconThemeFactory::instance()->fromTheme("item-new"));
// Setup button box. // Setup button box.
m_ui->m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false); m_ui->m_buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
@ -299,13 +299,13 @@ void FormStandardFeedDetails::initialize() {
// Setup menu & actions for icon selection. // Setup menu & actions for icon selection.
m_iconMenu = new QMenu(tr("Icon selection"), this); m_iconMenu = new QMenu(tr("Icon selection"), this);
m_actionLoadIconFromFile = new QAction(IconThemeFactory::instance()->fromTheme("image-x-generic"), m_actionLoadIconFromFile = new QAction(IconThemeFactory::instance()->fromTheme("image-generic"),
tr("Load icon from file..."), tr("Load icon from file..."),
this); this);
m_actionNoIcon = new QAction(IconThemeFactory::instance()->fromTheme("edit-delete"), m_actionNoIcon = new QAction(IconThemeFactory::instance()->fromTheme("dialog-cancel"),
tr("Do not use icon"), tr("Do not use icon"),
this); this);
m_actionUseDefaultIcon = new QAction(IconThemeFactory::instance()->fromTheme("application-rss+xml"), m_actionUseDefaultIcon = new QAction(IconThemeFactory::instance()->fromTheme("folder-feed"),
tr("Use default icon"), tr("Use default icon"),
this); this);
m_iconMenu->addAction(m_actionLoadIconFromFile); m_iconMenu->addAction(m_actionLoadIconFromFile);

View File

@ -13,7 +13,7 @@ LineEditWithStatus::LineEditWithStatus(QWidget *parent)
m_txtInput = new BaseLineEdit(this); m_txtInput = new BaseLineEdit(this);
m_btnStatus = new PlainToolButton(this); m_btnStatus = new PlainToolButton(this);
m_iconInformation = IconThemeFactory::instance()->fromTheme("help-about"); m_iconInformation = IconThemeFactory::instance()->fromTheme("dialog-information");
m_iconWarning = IconThemeFactory::instance()->fromTheme("dialog-warning"); m_iconWarning = IconThemeFactory::instance()->fromTheme("dialog-warning");
m_iconError = IconThemeFactory::instance()->fromTheme("dialog-error"); m_iconError = IconThemeFactory::instance()->fromTheme("dialog-error");
m_iconOk = IconThemeFactory::instance()->fromTheme("dialog-yes"); m_iconOk = IconThemeFactory::instance()->fromTheme("dialog-yes");

View File

@ -38,7 +38,7 @@ QIcon MessageBox::iconForRole(QDialogButtonBox::StandardButton button) {
case QMessageBox::Cancel: case QMessageBox::Cancel:
case QMessageBox::Close: case QMessageBox::Close:
return IconThemeFactory::instance()->fromTheme("edit-delete"); return IconThemeFactory::instance()->fromTheme("dialog-cancel");
case QMessageBox::Yes: case QMessageBox::Yes:
case QMessageBox::YesToAll: case QMessageBox::YesToAll:
@ -49,7 +49,7 @@ QIcon MessageBox::iconForRole(QDialogButtonBox::StandardButton button) {
return IconThemeFactory::instance()->fromTheme("dialog-no"); return IconThemeFactory::instance()->fromTheme("dialog-no");
case QMessageBox::Help: case QMessageBox::Help:
return IconThemeFactory::instance()->fromTheme("dialog-information"); return IconThemeFactory::instance()->fromTheme("dialog-question");
default: default:
return QIcon(); return QIcon();
@ -59,7 +59,7 @@ QIcon MessageBox::iconForRole(QDialogButtonBox::StandardButton button) {
QIcon MessageBox::iconForStatus(QMessageBox::Icon status) { QIcon MessageBox::iconForStatus(QMessageBox::Icon status) {
switch (status) { switch (status) {
case QMessageBox::Information: case QMessageBox::Information:
return IconThemeFactory::instance()->fromTheme("help-about"); return IconThemeFactory::instance()->fromTheme("dialog-information");
case QMessageBox::Warning: case QMessageBox::Warning:
return IconThemeFactory::instance()->fromTheme("dialog-warning"); return IconThemeFactory::instance()->fromTheme("dialog-warning");

View File

@ -44,7 +44,7 @@ ShortcutCatcher::ShortcutCatcher(QWidget *parent)
// Create clear button. // Create clear button.
m_clearButton = new QToolButton(this); m_clearButton = new QToolButton(this);
m_clearButton->setIcon(IconThemeFactory::instance()->fromTheme("document-revert")); m_clearButton->setIcon(IconThemeFactory::instance()->fromTheme("edit-revert"));
m_clearButton->setFocusPolicy(Qt::NoFocus); m_clearButton->setFocusPolicy(Qt::NoFocus);
m_clearButton->setToolTip(tr("Reset shortcut.")); m_clearButton->setToolTip(tr("Reset shortcut."));

View File

@ -70,7 +70,7 @@ void TabWidget::setupIcons() {
for (int index = 0; index < count(); index++) { for (int index = 0; index < count(); index++) {
// Index 0 usually contains widget which displays feeds & messages. // Index 0 usually contains widget which displays feeds & messages.
if (tabBar()->tabType(index) == TabBar::FeedReader) { if (tabBar()->tabType(index) == TabBar::FeedReader) {
setTabIcon(index, IconThemeFactory::instance()->fromTheme("application-rss+xml")); setTabIcon(index, IconThemeFactory::instance()->fromTheme("folder-feed"));
} }
// Other indexes probably contain WebBrowsers. // Other indexes probably contain WebBrowsers.
else { else {

View File

@ -182,7 +182,7 @@ void WebBrowser::navigateToMessages(const QList<Message> &messages) {
m_webView->setHtml(layout_wrapper, QUrl(INTERNAL_URL_NEWSPAPER)); m_webView->setHtml(layout_wrapper, QUrl(INTERNAL_URL_NEWSPAPER));
emit iconChanged(m_index, emit iconChanged(m_index,
IconThemeFactory::instance()->fromTheme("document-multiple")); IconThemeFactory::instance()->fromTheme("item-newspaper"));
} }
void WebBrowser::updateZoomGui() { void WebBrowser::updateZoomGui() {
@ -227,11 +227,10 @@ WebBrowser::~WebBrowser() {
} }
void WebBrowser::setupIcons() { void WebBrowser::setupIcons() {
m_actionZoom->setIcon(IconThemeFactory::instance()->fromTheme("zoom-fit-best"));
m_actionBack->setIcon(IconThemeFactory::instance()->fromTheme("go-previous")); m_actionBack->setIcon(IconThemeFactory::instance()->fromTheme("go-previous"));
m_actionForward->setIcon(IconThemeFactory::instance()->fromTheme("go-next")); m_actionForward->setIcon(IconThemeFactory::instance()->fromTheme("go-next"));
m_actionReload->setIcon(IconThemeFactory::instance()->fromTheme("view-refresh")); m_actionReload->setIcon(IconThemeFactory::instance()->fromTheme("go-refresh"));
m_actionStop->setIcon(IconThemeFactory::instance()->fromTheme("process-stop")); m_actionStop->setIcon(IconThemeFactory::instance()->fromTheme("go-stop"));
m_webView->setupIcons(); m_webView->setupIcons();
} }

View File

@ -55,9 +55,9 @@ void WebView::createConnections() {
} }
void WebView::setupIcons() { void WebView::setupIcons() {
m_actionReload->setIcon(IconThemeFactory::instance()->fromTheme("view-refresh")); m_actionReload->setIcon(IconThemeFactory::instance()->fromTheme("go-refresh"));
m_actionCopyLink->setIcon(IconThemeFactory::instance()->fromTheme("edit-copy")); m_actionCopyLink->setIcon(IconThemeFactory::instance()->fromTheme("edit-copy"));
m_actionCopyImage->setIcon(IconThemeFactory::instance()->fromTheme("insert-image")); m_actionCopyImage->setIcon(IconThemeFactory::instance()->fromTheme("edit-copy-image"));
#if QT_VERSION >= 0x040800 #if QT_VERSION >= 0x040800
m_actionCopyImageUrl->setIcon(IconThemeFactory::instance()->fromTheme("edit-copy")); m_actionCopyImageUrl->setIcon(IconThemeFactory::instance()->fromTheme("edit-copy"));
@ -65,7 +65,7 @@ void WebView::setupIcons() {
m_actionOpenLinkThisTab->setIcon(IconThemeFactory::instance()->fromTheme("text-html")); m_actionOpenLinkThisTab->setIcon(IconThemeFactory::instance()->fromTheme("text-html"));
m_actionOpenLinkNewTab->setIcon(IconThemeFactory::instance()->fromTheme("text-html")); m_actionOpenLinkNewTab->setIcon(IconThemeFactory::instance()->fromTheme("text-html"));
m_actionOpenImageNewTab->setIcon(IconThemeFactory::instance()->fromTheme("insert-image")); m_actionOpenImageNewTab->setIcon(IconThemeFactory::instance()->fromTheme("edit-copy-image"));
} }
void WebView::initializeActions() { void WebView::initializeActions() {
@ -130,7 +130,7 @@ void WebView::popupContextMenu(const QPoint &pos) {
QMenu link_submenu(tr("Hyperlink"), this); QMenu link_submenu(tr("Hyperlink"), this);
QWebHitTestResult hit_result = page()->mainFrame()->hitTestContent(pos); QWebHitTestResult hit_result = page()->mainFrame()->hitTestContent(pos);
image_submenu.setIcon(IconThemeFactory::instance()->fromTheme("image-x-generic")); image_submenu.setIcon(IconThemeFactory::instance()->fromTheme("image-generic"));
link_submenu.setIcon(IconThemeFactory::instance()->fromTheme("text-html")); link_submenu.setIcon(IconThemeFactory::instance()->fromTheme("text-html"));
// Assemble the menu from actions. // Assemble the menu from actions.