Convert more icons to SVG
@ -45,11 +45,11 @@ FolderContentView::FolderContentView(QWidget *parent)
|
||||
|
||||
auto horizontalLayout = new QHBoxLayout();
|
||||
QLabel *smallLabel = new QLabel();
|
||||
smallLabel->setPixmap(QPixmap(":/images/comics_view_toolbar/small_size_grid_zoom.png"));
|
||||
smallLabel->setPixmap(hdpiPixmap(":/images/comics_view_toolbar/small_size_grid_zoom.svg", QSize(18, 18)));
|
||||
horizontalLayout->addWidget(smallLabel);
|
||||
horizontalLayout->addWidget(coverSizeSlider, 0, Qt::AlignVCenter);
|
||||
QLabel *bigLabel = new QLabel();
|
||||
bigLabel->setPixmap(QPixmap(":/images/comics_view_toolbar/big_size_grid_zoom.png"));
|
||||
bigLabel->setPixmap(hdpiPixmap(":/images/comics_view_toolbar/big_size_grid_zoom.svg", QSize(18, 18)));
|
||||
horizontalLayout->addWidget(bigLabel);
|
||||
horizontalLayout->addSpacing(10);
|
||||
horizontalLayout->setContentsMargins(0, 0, 0, 0);
|
||||
|
@ -145,7 +145,7 @@ GridComicsView::GridComicsView(QWidget *parent)
|
||||
QQmlProperty(infoContainer, "width").write(settings->value(COMICS_GRID_INFO_WIDTH, 350));
|
||||
|
||||
showInfoAction = new QAction(tr("Show info"), this);
|
||||
showInfoAction->setIcon(QIcon(":/images/comics_view_toolbar/show_comic_info.png"));
|
||||
showInfoAction->setIcon(QIcon(":/images/comics_view_toolbar/show_comic_info.svg"));
|
||||
showInfoAction->setCheckable(true);
|
||||
showInfoAction->setChecked(showInfo);
|
||||
connect(showInfoAction, &QAction::toggled, this, &GridComicsView::showInfo);
|
||||
@ -179,11 +179,11 @@ void GridComicsView::createCoverSizeSliderWidget()
|
||||
|
||||
auto horizontalLayout = new QHBoxLayout();
|
||||
QLabel *smallLabel = new QLabel();
|
||||
smallLabel->setPixmap(QPixmap(":/images/comics_view_toolbar/small_size_grid_zoom.png"));
|
||||
smallLabel->setPixmap(hdpiPixmap(":/images/comics_view_toolbar/small_size_grid_zoom.svg", QSize(18, 18)));
|
||||
horizontalLayout->addWidget(smallLabel);
|
||||
horizontalLayout->addWidget(coverSizeSlider, 0, Qt::AlignVCenter);
|
||||
QLabel *bigLabel = new QLabel();
|
||||
bigLabel->setPixmap(QPixmap(":/images/comics_view_toolbar/big_size_grid_zoom.png"));
|
||||
bigLabel->setPixmap(hdpiPixmap(":/images/comics_view_toolbar/big_size_grid_zoom.svg", QSize(18, 18)));
|
||||
horizontalLayout->addWidget(bigLabel);
|
||||
horizontalLayout->addSpacing(10);
|
||||
horizontalLayout->setContentsMargins(0, 0, 0, 0);
|
||||
@ -499,7 +499,7 @@ void GridComicsView::startDrag()
|
||||
{
|
||||
auto drag = new QDrag(this);
|
||||
drag->setMimeData(model->mimeData(selectionHelper->selectedRows()));
|
||||
drag->setPixmap(QPixmap(":/images/comics_view_toolbar/openInYACReader.png")); // TODO add better image
|
||||
drag->setPixmap(hdpiPixmap(":/images/comics_view_toolbar/openInYACReader.svg", QSize(18, 18))); // TODO add better image
|
||||
|
||||
/*Qt::DropAction dropAction =*/drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction);
|
||||
}
|
||||
|
@ -10,36 +10,21 @@
|
||||
<file>../images/comic_vine/rowDown.png</file>
|
||||
<file>../images/comic_vine/rowUp.png</file>
|
||||
<file>../images/comic_vine/upArrow.png</file>
|
||||
<file>../images/comics_view_toolbar/asignNumber.png</file>
|
||||
<file>../images/comics_view_toolbar/asignNumber@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/big_size_grid_zoom.png</file>
|
||||
<file>../images/comics_view_toolbar/big_size_grid_zoom@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/editComic.png</file>
|
||||
<file>../images/comics_view_toolbar/editComic@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/getInfo.png</file>
|
||||
<file>../images/comics_view_toolbar/getInfo@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/hideComicFlow.png</file>
|
||||
<file>../images/comics_view_toolbar/hideComicFlow@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/openInYACReader.png</file>
|
||||
<file>../images/comics_view_toolbar/openInYACReader@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/selectAll.png</file>
|
||||
<file>../images/comics_view_toolbar/selectAll@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/setReadButton.png</file>
|
||||
<file>../images/comics_view_toolbar/setReadButton@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/setUnread.png</file>
|
||||
<file>../images/comics_view_toolbar/setUnread@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/showMarks.png</file>
|
||||
<file>../images/comics_view_toolbar/showMarks@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/small_size_grid_zoom.png</file>
|
||||
<file>../images/comics_view_toolbar/small_size_grid_zoom@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/trash.png</file>
|
||||
<file>../images/comics_view_toolbar/trash@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/show_comic_info.png</file>
|
||||
<file>../images/comics_view_toolbar/show_comic_info@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/setManga.png</file>
|
||||
<file>../images/comics_view_toolbar/setManga@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/setNormal.png</file>
|
||||
<file>../images/comics_view_toolbar/setNormal@2x.png</file>
|
||||
<file>../images/comics_view_toolbar/asignNumber.svg</file>
|
||||
<file>../images/comics_view_toolbar/big_size_grid_zoom.svg</file>
|
||||
<file>../images/comics_view_toolbar/editComic.svg</file>
|
||||
<file>../images/comics_view_toolbar/getInfo.svg</file>
|
||||
<file>../images/comics_view_toolbar/hideComicFlow.svg</file>
|
||||
<file>../images/comics_view_toolbar/openInYACReader.svg</file>
|
||||
<file>../images/comics_view_toolbar/selectAll.svg</file>
|
||||
<file>../images/comics_view_toolbar/setReadButton.svg</file>
|
||||
<file>../images/comics_view_toolbar/setUnread.svg</file>
|
||||
<file>../images/comics_view_toolbar/showMarks.svg</file>
|
||||
<file>../images/comics_view_toolbar/small_size_grid_zoom.svg</file>
|
||||
<file>../images/comics_view_toolbar/trash.svg</file>
|
||||
<file>../images/comics_view_toolbar/show_comic_info.svg</file>
|
||||
<file>../images/comics_view_toolbar/setManga.svg</file>
|
||||
<file>../images/comics_view_toolbar/setNormal.svg</file>
|
||||
<file>../images/defaultCover.png</file>
|
||||
<file>../images/edit.png</file>
|
||||
<file>../images/empty_current_readings.png</file>
|
||||
|
@ -543,7 +543,7 @@ void LibraryWindow::createActions()
|
||||
openComicAction->setToolTip(tr("Open current comic on YACReader"));
|
||||
openComicAction->setData(OPEN_COMIC_ACTION_YL);
|
||||
openComicAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(OPEN_COMIC_ACTION_YL));
|
||||
openComicAction->setIcon(QIcon(":/images/comics_view_toolbar/openInYACReader.png"));
|
||||
openComicAction->setIcon(QIcon(":/images/comics_view_toolbar/openInYACReader.svg"));
|
||||
|
||||
saveCoversToAction = new QAction(tr("Save selected covers to..."), this);
|
||||
saveCoversToAction->setToolTip(tr("Save covers of the selected comics as JPG files"));
|
||||
@ -554,25 +554,25 @@ void LibraryWindow::createActions()
|
||||
setAsReadAction->setToolTip(tr("Set comic as read"));
|
||||
setAsReadAction->setData(SET_AS_READ_ACTION_YL);
|
||||
setAsReadAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(SET_AS_READ_ACTION_YL));
|
||||
setAsReadAction->setIcon(QIcon(":/images/comics_view_toolbar/setReadButton.png"));
|
||||
setAsReadAction->setIcon(QIcon(":/images/comics_view_toolbar/setReadButton.svg"));
|
||||
|
||||
setAsNonReadAction = new QAction(tr("Set as unread"), this);
|
||||
setAsNonReadAction->setToolTip(tr("Set comic as unread"));
|
||||
setAsNonReadAction->setData(SET_AS_NON_READ_ACTION_YL);
|
||||
setAsNonReadAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(SET_AS_NON_READ_ACTION_YL));
|
||||
setAsNonReadAction->setIcon(QIcon(":/images/comics_view_toolbar/setUnread.png"));
|
||||
setAsNonReadAction->setIcon(QIcon(":/images/comics_view_toolbar/setUnread.svg"));
|
||||
|
||||
setMangaAction = new QAction(tr("Set as manga"), this);
|
||||
setMangaAction->setToolTip(tr("Set issue as manga"));
|
||||
setMangaAction->setData(SET_AS_MANGA_ACTION_YL);
|
||||
setMangaAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(SET_AS_MANGA_ACTION_YL));
|
||||
setMangaAction->setIcon(QIcon(":/images/comics_view_toolbar/setManga.png"));
|
||||
setMangaAction->setIcon(QIcon(":/images/comics_view_toolbar/setManga.svg"));
|
||||
|
||||
setNormalAction = new QAction(tr("Set as normal"), this);
|
||||
setNormalAction->setToolTip(tr("Set issue as normal"));
|
||||
setNormalAction->setData(SET_AS_NORMAL_ACTION_YL);
|
||||
setNormalAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(SET_AS_NORMAL_ACTION_YL));
|
||||
setNormalAction->setIcon(QIcon(":/images/comics_view_toolbar/setNormal.png"));
|
||||
setNormalAction->setIcon(QIcon(":/images/comics_view_toolbar/setNormal.svg"));
|
||||
|
||||
/*setAllAsReadAction = new QAction(tr("Set all as read"),this);
|
||||
setAllAsReadAction->setToolTip(tr("Set all comics as read"));
|
||||
@ -587,7 +587,7 @@ void LibraryWindow::createActions()
|
||||
showHideMarksAction->setData(SHOW_HIDE_MARKS_ACTION_YL);
|
||||
showHideMarksAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(SHOW_HIDE_MARKS_ACTION_YL));
|
||||
showHideMarksAction->setCheckable(true);
|
||||
showHideMarksAction->setIcon(QIcon(":/images/comics_view_toolbar/showMarks.png"));
|
||||
showHideMarksAction->setIcon(QIcon(":/images/comics_view_toolbar/showMarks.svg"));
|
||||
showHideMarksAction->setChecked(true);
|
||||
#ifndef Q_OS_MAC
|
||||
toggleFullScreenAction = new QAction(tr("Fullscreen mode on/off"), this);
|
||||
@ -724,19 +724,19 @@ void LibraryWindow::createActions()
|
||||
selectAllComicsAction->setText(tr("Select all comics"));
|
||||
selectAllComicsAction->setData(SELECT_ALL_COMICS_ACTION_YL);
|
||||
selectAllComicsAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(SELECT_ALL_COMICS_ACTION_YL));
|
||||
selectAllComicsAction->setIcon(QIcon(":/images/comics_view_toolbar/selectAll.png"));
|
||||
selectAllComicsAction->setIcon(QIcon(":/images/comics_view_toolbar/selectAll.svg"));
|
||||
|
||||
editSelectedComicsAction = new QAction(this);
|
||||
editSelectedComicsAction->setText(tr("Edit"));
|
||||
editSelectedComicsAction->setData(EDIT_SELECTED_COMICS_ACTION_YL);
|
||||
editSelectedComicsAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(EDIT_SELECTED_COMICS_ACTION_YL));
|
||||
editSelectedComicsAction->setIcon(QIcon(":/images/comics_view_toolbar/editComic.png"));
|
||||
editSelectedComicsAction->setIcon(QIcon(":/images/comics_view_toolbar/editComic.svg"));
|
||||
|
||||
asignOrderAction = new QAction(this);
|
||||
asignOrderAction->setText(tr("Assign current order to comics"));
|
||||
asignOrderAction->setData(ASIGN_ORDER_ACTION_YL);
|
||||
asignOrderAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(ASIGN_ORDER_ACTION_YL));
|
||||
asignOrderAction->setIcon(QIcon(":/images/comics_view_toolbar/asignNumber.png"));
|
||||
asignOrderAction->setIcon(QIcon(":/images/comics_view_toolbar/asignNumber.svg"));
|
||||
|
||||
forceCoverExtractedAction = new QAction(this);
|
||||
forceCoverExtractedAction->setText(tr("Update cover"));
|
||||
@ -748,13 +748,13 @@ void LibraryWindow::createActions()
|
||||
deleteComicsAction->setText(tr("Delete selected comics"));
|
||||
deleteComicsAction->setData(DELETE_COMICS_ACTION_YL);
|
||||
deleteComicsAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(DELETE_COMICS_ACTION_YL));
|
||||
deleteComicsAction->setIcon(QIcon(":/images/comics_view_toolbar/trash.png"));
|
||||
deleteComicsAction->setIcon(QIcon(":/images/comics_view_toolbar/trash.svg"));
|
||||
|
||||
getInfoAction = new QAction(this);
|
||||
getInfoAction->setData(GET_INFO_ACTION_YL);
|
||||
getInfoAction->setShortcut(ShortcutsManager::getShortcutsManager().getShortcut(GET_INFO_ACTION_YL));
|
||||
getInfoAction->setText(tr("Download tags from Comic Vine"));
|
||||
getInfoAction->setIcon(QIcon(":/images/comics_view_toolbar/getInfo.png"));
|
||||
getInfoAction->setIcon(QIcon(":/images/comics_view_toolbar/getInfo.svg"));
|
||||
//-------------------------------------------------------------------------
|
||||
|
||||
focusSearchLineAction = new QAction(tr("Focus search line"), this);
|
||||
@ -1868,7 +1868,7 @@ void LibraryWindow::showContinueReadingContextMenu(QPoint point, ComicDB comic)
|
||||
|
||||
auto setAsUnReadAction = new QAction();
|
||||
setAsUnReadAction->setText(tr("Set as unread"));
|
||||
setAsUnReadAction->setIcon(QIcon(":/images/comics_view_toolbar/setUnread.png"));
|
||||
setAsUnReadAction->setIcon(QIcon(":/images/comics_view_toolbar/setUnread.svg"));
|
||||
|
||||
menu.addAction(setAsUnReadAction);
|
||||
|
||||
|
@ -13,6 +13,7 @@
|
||||
#include "QsLog.h"
|
||||
|
||||
#include "comic_item.h"
|
||||
#include "yacreader_global_gui.h"
|
||||
|
||||
YACReaderTableView::YACReaderTableView(QWidget *parent)
|
||||
: QTableView(parent), showDelete(false), editing(false), myeditor(0)
|
||||
@ -146,7 +147,7 @@ void YACReaderTableView::performDrag()
|
||||
QLOG_DEBUG() << "performDrag";
|
||||
QDrag *drag = new QDrag(this);
|
||||
drag->setMimeData(model()->mimeData(selectionModel()->selectedRows()));
|
||||
drag->setPixmap(QPixmap(":/images/comics_view_toolbar/openInYACReader.png")); // TODO add better image
|
||||
drag->setPixmap(YACReader::hdpiPixmap(":/images/comics_view_toolbar/openInYACReader.png", QSize(18, 18))); // TODO add better image
|
||||
|
||||
/*Qt::DropAction dropAction =*/drag->exec(Qt::CopyAction | Qt::MoveAction, Qt::CopyAction);
|
||||
}
|
||||
|
Before Width: | Height: | Size: 251 B |
BIN
images/comics_view_toolbar/asignNumber.svg
Normal file
After Width: | Height: | Size: 435 B |
Before Width: | Height: | Size: 353 B |
Before Width: | Height: | Size: 164 B |
BIN
images/comics_view_toolbar/big_size_grid_zoom.svg
Normal file
After Width: | Height: | Size: 450 B |
Before Width: | Height: | Size: 201 B |
Before Width: | Height: | Size: 289 B |
BIN
images/comics_view_toolbar/editComic.svg
Normal file
After Width: | Height: | Size: 801 B |
Before Width: | Height: | Size: 415 B |
Before Width: | Height: | Size: 302 B |
BIN
images/comics_view_toolbar/getInfo.svg
Normal file
After Width: | Height: | Size: 621 B |
Before Width: | Height: | Size: 473 B |
Before Width: | Height: | Size: 254 B |
BIN
images/comics_view_toolbar/hideComicFlow.svg
Normal file
After Width: | Height: | Size: 308 B |
Before Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 312 B |
BIN
images/comics_view_toolbar/openInYACReader.svg
Normal file
After Width: | Height: | Size: 356 B |
Before Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 237 B |
BIN
images/comics_view_toolbar/selectAll.svg
Normal file
After Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 328 B |
Before Width: | Height: | Size: 255 B |
Before Width: | Height: | Size: 299 B |
Before Width: | Height: | Size: 217 B |
BIN
images/comics_view_toolbar/setManga.svg
Normal file
After Width: | Height: | Size: 338 B |
Before Width: | Height: | Size: 334 B |
Before Width: | Height: | Size: 205 B |
BIN
images/comics_view_toolbar/setNormal.svg
Normal file
After Width: | Height: | Size: 347 B |
Before Width: | Height: | Size: 315 B |
Before Width: | Height: | Size: 268 B |
BIN
images/comics_view_toolbar/setReadButton.svg
Normal file
After Width: | Height: | Size: 281 B |
Before Width: | Height: | Size: 383 B |
Before Width: | Height: | Size: 329 B |
BIN
images/comics_view_toolbar/setUnread.svg
Normal file
After Width: | Height: | Size: 344 B |
Before Width: | Height: | Size: 507 B |
Before Width: | Height: | Size: 316 B |
BIN
images/comics_view_toolbar/showMarks.svg
Normal file
After Width: | Height: | Size: 561 B |
Before Width: | Height: | Size: 519 B |
Before Width: | Height: | Size: 133 B |
BIN
images/comics_view_toolbar/show_comic_info.svg
Normal file
After Width: | Height: | Size: 364 B |
Before Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 164 B |
BIN
images/comics_view_toolbar/small_size_grid_zoom.svg
Normal file
After Width: | Height: | Size: 591 B |
Before Width: | Height: | Size: 201 B |
Before Width: | Height: | Size: 209 B |
BIN
images/comics_view_toolbar/trash.svg
Normal file
After Width: | Height: | Size: 442 B |
Before Width: | Height: | Size: 253 B |