Skip to content

Commit

Permalink
Tweaked default font settings for MacOS X
Browse files Browse the repository at this point in the history
  • Loading branch information
Mezomish committed Apr 24, 2012
1 parent 4d1004d commit 34cfd08
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/lib/Settings.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -178,13 +178,26 @@ QVariant Settings::defaultValue(const QString& section, const QString& key) {
if ( key.compare("tabStopWidth") == 0 ) return 8; if ( key.compare("tabStopWidth") == 0 ) return 8;
if ( key.compare("replaceTabsWithSpaces") == 0 ) return false; if ( key.compare("replaceTabsWithSpaces") == 0 ) return false;
if ( key.compare("backspaceUnindents") == 0 ) return true; if ( key.compare("backspaceUnindents") == 0 ) return true;

#ifdef Q_WS_MAC
if ( key.compare("fontSize") == 0 ) return 12;
#else
if ( key.compare("fontSize") == 0 ) return 10; if ( key.compare("fontSize") == 0 ) return 10;
#endif // Q_WS_MAC

if ( key.compare("fontFamily") == 0 ) if ( key.compare("fontFamily") == 0 )
#ifdef Q_OS_WIN32 #ifdef Q_OS_WIN32
return "Courier New"; return "Courier New";
#else #else

#ifdef Q_WS_MAC
return "Montana";
#else
return "Monospace"; return "Monospace";
#endif #endif // Q_WS_MAC

#endif // Q_OS_WIN32

} }
else if ( section.compare("QSci") == 0 ) { else if ( section.compare("QSci") == 0 ) {
if ( key.compare("matchingBraceBgColor") == 0 ) return QColor(255, 200, 140); if ( key.compare("matchingBraceBgColor") == 0 ) return QColor(255, 200, 140);
Expand Down

0 comments on commit 34cfd08

Please sign in to comment.