Commit af9f2691 authored by kaniini's avatar kaniini

use forkawesome icons for toolbar icons too

parent de6b7776
<svg width="1800" height="1800" xmlns="http://www.w3.org/2000/svg">
<path d="M896 384c-416 0-768 234-768 512 0 149 100 291 273 389l87 50-27 96c-19 71-44 126-70 172 101-42 193-99 275-171l43-38 57 6c43 5 87 8 130 8 416 0 768-234 768-512s-352-512-768-512zm896 512c0 354-401 640-896 640-49 0-98-3-145-8-131 116-287 198-460 242-36 10-75 17-114 22h-5c-20 0-38-16-43-38v-1c-5-25 12-40 27-58 63-71 135-131 182-298C132 1280 0 1099 0 896c0-354 401-640 896-640s896 286 896 640z"/>
</svg>
<svg width="1536" height="1750" xmlns="http://www.w3.org/2000/svg">
<path d="M1511 1056c0 2 0 5-1 7-85 354-377 601-746 601-195 0-384-77-526-212l-129 129c-12 12-28 19-45 19-35 0-64-29-64-64v-448c0-35 29-64 64-64h448c35 0 64 29 64 64 0 17-7 33-19 45l-137 137c94 88 219 138 348 138 178 0 343-92 436-244 24-39 36-77 53-117 5-14 15-23 30-23h192c18 0 32 15 32 32zm25-800v448c0 35-29 64-64 64h-448c-35 0-64-29-64-64 0-17 7-33 19-45l138-138c-95-88-220-137-349-137-178 0-343 92-436 244-24 39-36 77-53 117-5 14-15 23-30 23H50c-18 0-32-15-32-32v-7c86-355 381-601 750-601 196 0 387 78 529 212l130-129c12-12 28-19 45-19 35 0 64 29 64 64z"/>
</svg>
......@@ -10,5 +10,7 @@
<file>icons/action-favorite.svg</file>
<file>icons/action-visibility.svg</file>
<file>icons/action-preferences.svg</file>
<file>icons/action-refresh.svg</file>
<file>icons/action-compose.svg</file>
</qresource>
</RCC>
......@@ -35,7 +35,9 @@ MainWindow::MainWindow(QWidget *parent,
m_main_layout->addWidget(m_toolbar);
// compose button
m_compose_button->setIcon(QIcon::fromTheme("message-new"));
m_compose_button->setIcon(pixmap_from_theme (palette (), "michabo-action-compose",
":/embedded-assets/icons/action-compose.svg",
Default, 24));
m_compose_button->setText(tr("Compose"));
m_compose_button->setToolTip(tr("Compose"));
QObject::connect(m_compose_button, &QToolButton::clicked, [=] () {
......@@ -46,7 +48,9 @@ MainWindow::MainWindow(QWidget *parent,
m_toolbar->addWidget(m_compose_button);
// refresh button
m_refresh_button->setIcon(QIcon::fromTheme("view-refresh"));
m_refresh_button->setIcon(pixmap_from_theme (palette (), "michabo-action-refresh",
":/embedded-assets/icons/action-refresh.svg",
Default, 24));
m_refresh_button->setText(tr("Refresh"));
m_refresh_button->setToolTip(tr("Refresh"));
QObject::connect(m_refresh_button, &QToolButton::clicked, [=] () {
......@@ -59,6 +63,9 @@ MainWindow::MainWindow(QWidget *parent,
m_prefs_button->setIcon (pixmap_from_theme (palette (), "michabo-action-prefs",
":/embedded-assets/icons/action-preferences.svg",
Default, 24));
m_prefs_button->setText (tr("Preferences"));
m_prefs_button->setToolTip (tr("Preferences"));
QObject::connect(m_prefs_button, &QToolButton::clicked, [=] () {
m_prefs_window->show();
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment