From ef54e3d70b8c7ee41febf257b77252eee3d53ae4 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Sun, 2 Oct 2022 22:52:03 -0400 Subject: Remove placeholder text. Add some (crappy) icons. --- qdeduper/img/maximize.svg | 32 ++++++++++++++++++++++ qdeduper/img/maximize_.svg | 57 +++++++++++++++++++++++++++++++++++++++ qdeduper/img/select_all.svg | 37 +++++++++++++++++++++++++ qdeduper/img/select_all_.svg | 64 ++++++++++++++++++++++++++++++++++++++++++++ qdeduper/img/sort.svg | 36 +++++++++++++++++++++++++ qdeduper/img/sort_.svg | 50 ++++++++++++++++++++++++++++++++++ qdeduper/mingui.cpp | 8 +++--- qdeduper/resources.qrc | 3 +++ 8 files changed, 283 insertions(+), 4 deletions(-) create mode 100644 qdeduper/img/maximize.svg create mode 100644 qdeduper/img/maximize_.svg create mode 100644 qdeduper/img/select_all.svg create mode 100644 qdeduper/img/select_all_.svg create mode 100644 qdeduper/img/sort.svg create mode 100644 qdeduper/img/sort_.svg diff --git a/qdeduper/img/maximize.svg b/qdeduper/img/maximize.svg new file mode 100644 index 0000000..21bac9a --- /dev/null +++ b/qdeduper/img/maximize.svg @@ -0,0 +1,32 @@ + + + + + + + + + + + + diff --git a/qdeduper/img/maximize_.svg b/qdeduper/img/maximize_.svg new file mode 100644 index 0000000..d08a6c3 --- /dev/null +++ b/qdeduper/img/maximize_.svg @@ -0,0 +1,57 @@ + + + + + + + + + + + + + diff --git a/qdeduper/img/select_all.svg b/qdeduper/img/select_all.svg new file mode 100644 index 0000000..06246ed --- /dev/null +++ b/qdeduper/img/select_all.svg @@ -0,0 +1,37 @@ + + + + + + + + + + + + + diff --git a/qdeduper/img/select_all_.svg b/qdeduper/img/select_all_.svg new file mode 100644 index 0000000..3d16754 --- /dev/null +++ b/qdeduper/img/select_all_.svg @@ -0,0 +1,64 @@ + + + + + + + + + + + + + + diff --git a/qdeduper/img/sort.svg b/qdeduper/img/sort.svg new file mode 100644 index 0000000..3d6c089 --- /dev/null +++ b/qdeduper/img/sort.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + diff --git a/qdeduper/img/sort_.svg b/qdeduper/img/sort_.svg new file mode 100644 index 0000000..3003eb7 --- /dev/null +++ b/qdeduper/img/sort_.svg @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + diff --git a/qdeduper/mingui.cpp b/qdeduper/mingui.cpp index 89628f1..22f8ccb 100644 --- a/qdeduper/mingui.cpp +++ b/qdeduper/mingui.cpp @@ -93,9 +93,6 @@ DeduperMainWindow::DeduperMainWindow() sb = this->statusBar(); sb->addPermanentWidget(dbramusg = new QLabel()); sb->addPermanentWidget(permamsg = new QLabel()); - QLabel *opm = new QLabel(); - opm->setText("placeholder status bar text"); - sb->addWidget(opm); l = new QSplitter(Qt::Orientation::Horizontal, this); l->setContentsMargins(6, 6, 6, 6); l->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); @@ -231,7 +228,7 @@ DeduperMainWindow::DeduperMainWindow() l->setStretchFactor(1, 1); l->setCollapsible(0, false); marked.clear(); - infopanel->setText("bleh"); + infopanel->setText("(Difference between images)"); infopanel->setSizePolicy(QSizePolicy::Policy::Minimum, QSizePolicy::Policy::Minimum); nohotkeywarn = false; sort_role = ImageItem::ImageItemRoles::default_order_role; @@ -360,6 +357,7 @@ void DeduperMainWindow::setup_menu() view->addSeparator(); QAction *singlemode = view->addAction("Single Item Mode"); + singlemode->setIcon(QIcon(":/img/maximize.svg")); singlemode->setCheckable(true); register_action("single_mode_toggle", singlemode); QObject::connect(singlemode, &QAction::triggered, [this] (bool c) { @@ -368,6 +366,7 @@ void DeduperMainWindow::setup_menu() view->addSeparator(); QAction *sort = view->addAction("Sort by"); + sort->setIcon(QIcon(":/img/sort.svg")); QMenu *sortm = new QMenu(this); sort->setMenu(sortm); QAction *sfsz = sortm->addAction("File size"); @@ -439,6 +438,7 @@ void DeduperMainWindow::setup_menu() register_action("sort", sort); QAction *mall = mark->addAction("Mark All"); + mall->setIcon(QIcon(":/img/select_all.svg")); QObject::connect(mall, &QAction::triggered, [this]{this->mark_all();}); register_action("mark_all", mall); diff --git a/qdeduper/resources.qrc b/qdeduper/resources.qrc index ce622ca..dcd73a3 100644 --- a/qdeduper/resources.qrc +++ b/qdeduper/resources.qrc @@ -1,5 +1,8 @@ img/deduper.png + img/maximize.svg + img/sort.svg + img/select_all.svg -- cgit v1.2.3