@@ -212,7 +212,9 @@ RavenGUI::RavenGUI(const PlatformStyle *_platformStyle, const NetworkStyle *netw
212212
213213 loadFonts ();
214214
215+ #if !defined(Q_OS_MAC)
215216 this ->setFont (QFont (" Open Sans" ));
217+ #endif
216218
217219 // Create actions for the toolbar, menu bar and tray/dock icon
218220 // Needs walletFrame to be initialized
@@ -341,7 +343,9 @@ void RavenGUI::createActions()
341343 QFont font = QFont ();
342344 font.setPixelSize (22 );
343345 font.setLetterSpacing (QFont::SpacingType::AbsoluteSpacing, -0.43 );
346+ #if !defined(Q_OS_MAC)
344347 font.setFamily (" Open Sans" );
348+ #endif
345349 font.setWeight (QFont::Weight::ExtraLight);
346350
347351 QActionGroup *tabGroup = new QActionGroup (this );
@@ -608,16 +612,26 @@ void RavenGUI::createToolBars()
608612// toolbar->addAction(messagingAction);
609613// toolbar->addAction(votingAction);
610614
615+ QString openSansFontString = " font: normal 22pt \" Open Sans\" ;" ;
616+ QString normalString = " font: normal 22pt \" Arial\" ;" ;
617+ QString stringToUse = " " ;
618+
619+ #if !defined(Q_OS_MAC)
620+ stringToUse = openSansFontString;
621+ #else
622+ stringToUse = normalString;
623+ #endif
624+
611625 /* * RVN START */
612626 QString tbStyleSheet = " .QToolBar {background-color : transparent; border-color: transparent; } "
613627 " .QToolButton {background-color: transparent; border-color: transparent; width: 249px; color: %1; border: none;} "
614- " .QToolButton:checked {background: none; background-color: none; selection-background-color: none; color: %2; border: none; font: normal 22pt \" Open Sans \" ; } "
628+ " .QToolButton:checked {background: none; background-color: none; selection-background-color: none; color: %2; border: none; font: %4 } "
615629 " .QToolButton:hover {background: none; background-color: none; border: none; color: %3;} "
616630 " .QToolButton:disabled {color: gray;}" ;
617631
618632 toolbar->setStyleSheet (tbStyleSheet.arg (platformStyle->ToolBarNotSelectedTextColor ().name (),
619633 platformStyle->ToolBarSelectedTextColor ().name (),
620- platformStyle->DarkOrangeColor ().name ()));
634+ platformStyle->DarkOrangeColor ().name (), stringToUse ));
621635
622636 toolbar->setOrientation (Qt::Vertical);
623637 toolbar->setIconSize (QSize (40 , 40 ));
0 commit comments