From 8fbd3b9872748b017f2f379e42a0e05b229b6484 Mon Sep 17 00:00:00 2001 From: Jason Herskowitz Date: Wed, 23 Dec 2015 20:57:17 -0500 Subject: [PATCH] Clean up nav icons in mac toolbar --- data/images/nav-back.svg | 55 +++++++++++++++++++++++++++++ data/images/nav-forward.svg | 55 +++++++++++++++++++++++++++++ resources.qrc | 2 ++ src/tomahawk/mac/TomahawkApp_Mac.mm | 4 +-- 4 files changed, 114 insertions(+), 2 deletions(-) create mode 100644 data/images/nav-back.svg create mode 100644 data/images/nav-forward.svg diff --git a/data/images/nav-back.svg b/data/images/nav-back.svg new file mode 100644 index 000000000..0c873546f --- /dev/null +++ b/data/images/nav-back.svg @@ -0,0 +1,55 @@ + + + nav-back + Created with Sketch (http://www.bohemiancoding.com/sketch) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/data/images/nav-forward.svg b/data/images/nav-forward.svg new file mode 100644 index 000000000..7f0bd8bfa --- /dev/null +++ b/data/images/nav-forward.svg @@ -0,0 +1,55 @@ + + + nav-forward + Created with Sketch (http://www.bohemiancoding.com/sketch) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/resources.qrc b/resources.qrc index 32d94e29d..0371637a9 100644 --- a/resources.qrc +++ b/resources.qrc @@ -167,5 +167,7 @@ data/images/repeat-one.svg data/images/downloads.svg data/images/downloadbutton.svg + data/images/nav-back.svg + data/images/nav-forward.svg diff --git a/src/tomahawk/mac/TomahawkApp_Mac.mm b/src/tomahawk/mac/TomahawkApp_Mac.mm index 4077cbcc4..2f876a98f 100644 --- a/src/tomahawk/mac/TomahawkApp_Mac.mm +++ b/src/tomahawk/mac/TomahawkApp_Mac.mm @@ -366,8 +366,8 @@ Tomahawk::setupToolBarMac( TomahawkWindow* parent ) [toolbar->nativeToolbar() setDisplayMode: NSToolbarDisplayModeIconOnly]; [toolbar->nativeToolbar() setSizeMode: NSToolbarSizeModeSmall]; - QMacToolBarItem* backItem = toolbar->addItem( ImageRegistry::instance()->pixmap( RESPATH "images/back.svg", QSize( 32, 32 ) ), QString( "Back" ) ); - QMacToolBarItem* forwardItem = toolbar->addItem( ImageRegistry::instance()->pixmap( RESPATH "images/forward.svg", QSize( 32, 32 ) ), QString( "Forward" ) ); + QMacToolBarItem* backItem = toolbar->addItem( ImageRegistry::instance()->pixmap( RESPATH "images/nav-back.svg", QSize( 32, 32 ) ), QString( "Back" ) ); + QMacToolBarItem* forwardItem = toolbar->addItem( ImageRegistry::instance()->pixmap( RESPATH "images/nav-forward.svg", QSize( 32, 32 ) ), QString( "Forward" ) ); QObject::connect( backItem, SIGNAL( activated() ), ViewManager::instance(), SLOT( historyBack() ) ); QObject::connect( forwardItem, SIGNAL( activated() ), ViewManager::instance(), SLOT( historyForward() ) );