From: Uwe Hermann Date: Wed, 5 Apr 2017 19:34:29 +0000 (+0200) Subject: Rename icons to match freedesktop.org icon naming specification. X-Git-Tag: pulseview-0.4.0~89 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3432032fbc693b58a0c65427c025b9553c419237;p=pulseview.git Rename icons to match freedesktop.org icon naming specification. https://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html --- diff --git a/icons/configure.png b/icons/configure.png deleted file mode 100644 index cc91d659..00000000 Binary files a/icons/configure.png and /dev/null differ diff --git a/icons/preferences-system.png b/icons/preferences-system.png new file mode 100644 index 00000000..cc91d659 Binary files /dev/null and b/icons/preferences-system.png differ diff --git a/icons/zoom-fit-best.png b/icons/zoom-fit-best.png new file mode 100644 index 00000000..babe5813 Binary files /dev/null and b/icons/zoom-fit-best.png differ diff --git a/icons/zoom-fit.png b/icons/zoom-fit.png deleted file mode 100644 index babe5813..00000000 Binary files a/icons/zoom-fit.png and /dev/null differ diff --git a/pulseview.qrc b/pulseview.qrc index 32e3d72a..17f809c3 100644 --- a/pulseview.qrc +++ b/pulseview.qrc @@ -3,7 +3,6 @@ icons/add-decoder.svg icons/application-exit.png icons/channels.svg - icons/configure.png icons/decoder-delete.svg icons/decoder-hidden.svg icons/decoder-shown.svg @@ -12,6 +11,7 @@ icons/document-save-as.png icons/information.svg icons/menu.svg + icons/preferences-system.png icons/settings-views.svg icons/sigrok-logo-notext.png icons/sigrok-logo-notext.svg @@ -31,7 +31,7 @@ icons/trigger-none.svg icons/trigger-rising.svg icons/window-new.png - icons/zoom-fit.png + icons/zoom-fit-best.png icons/zoom-in.png icons/zoom-original.png icons/zoom-out.png diff --git a/pv/mainwindow.cpp b/pv/mainwindow.cpp index d13c8e19..205c95ca 100644 --- a/pv/mainwindow.cpp +++ b/pv/mainwindow.cpp @@ -374,8 +374,8 @@ void MainWindow::setup_ui() run_stop_shortcut_->setAutoRepeat(false); settings_button_ = new QToolButton(); - settings_button_->setIcon(QIcon::fromTheme("configure", - QIcon(":/icons/configure.png"))); + settings_button_->setIcon(QIcon::fromTheme("preferences-system", + QIcon(":/icons/preferences-system.png"))); settings_button_->setToolTip(tr("Settings")); settings_button_->setAutoRaise(true); diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index 1a177fd6..e1a666b1 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -216,8 +216,8 @@ MainBar::MainBar(Session &session, QWidget *parent, set_capture_state(pv::Session::Stopped); configure_button_.setToolTip(tr("Configure Device")); - configure_button_.setIcon(QIcon::fromTheme("configure", - QIcon(":/icons/configure.png"))); + configure_button_.setIcon(QIcon::fromTheme("preferences-system", + QIcon(":/icons/preferences-system.png"))); channels_button_.setToolTip(tr("Configure Channels")); channels_button_.setIcon(QIcon::fromTheme("channels", diff --git a/pv/views/trace/standardbar.cpp b/pv/views/trace/standardbar.cpp index dc82ff1e..1a77edaa 100644 --- a/pv/views/trace/standardbar.cpp +++ b/pv/views/trace/standardbar.cpp @@ -64,8 +64,8 @@ StandardBar::StandardBar(Session &session, QWidget *parent, action_view_zoom_fit_->setCheckable(true); action_view_zoom_fit_->setText(tr("Zoom to &Fit")); - action_view_zoom_fit_->setIcon(QIcon::fromTheme("zoom-fit", - QIcon(":/icons/zoom-fit.png"))); + action_view_zoom_fit_->setIcon(QIcon::fromTheme("zoom-fit-best", + QIcon(":/icons/zoom-fit-best.png"))); action_view_zoom_fit_->setShortcut(QKeySequence(Qt::Key_F)); connect(action_view_zoom_fit_, SIGNAL(triggered(bool)), this, SLOT(on_actionViewZoomFit_triggered(bool)));