diff options
| author | 2015-11-11 14:05:59 +0100 | |
|---|---|---|
| committer | 2015-11-11 14:05:59 +0100 | |
| commit | 9ac0bba05b3dcd322a763e7440d7c371d59bdc0a (patch) | |
| tree | a52e2dcec6cd4b8dfbab05ccbb0919f74ad398eb /src/modules/editor/ScriptEditorImplementation.cpp | |
| parent | Don’t show icons in menus on OS X unless the user has enabled them. (diff) | |
| download | KVIrc-9ac0bba05b3dcd322a763e7440d7c371d59bdc0a.tar.gz KVIrc-9ac0bba05b3dcd322a763e7440d7c371d59bdc0a.tar.bz2 KVIrc-9ac0bba05b3dcd322a763e7440d7c371d59bdc0a.zip | |
Set Monaco/10 as the default font for the script editor on OS X.
Part of #1704.
Diffstat (limited to 'src/modules/editor/ScriptEditorImplementation.cpp')
| -rw-r--r-- | src/modules/editor/ScriptEditorImplementation.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/modules/editor/ScriptEditorImplementation.cpp b/src/modules/editor/ScriptEditorImplementation.cpp index d561225f1..1a80efa84 100644 --- a/src/modules/editor/ScriptEditorImplementation.cpp +++ b/src/modules/editor/ScriptEditorImplementation.cpp @@ -79,10 +79,15 @@ static QColor g_clrFind(255,0,0); #if defined(COMPILE_ON_WINDOWS) || defined(COMPILE_ON_MINGW) #define KVI_SCRIPTEDITOR_DEFAULT_FONT "Courier New" + #define KVI_SCRIPTEDITOR_DEFAULT_FONT_SIZE 8 +#elif defined(COMPILE_ON_MAC) + #define KVI_SCRIPTEDITOR_DEFAULT_FONT "Monaco" + #define KVI_SCRIPTEDITOR_DEFAULT_FONT_SIZE 10 #else #define KVI_SCRIPTEDITOR_DEFAULT_FONT "Monospace" + #define KVI_SCRIPTEDITOR_DEFAULT_FONT_SIZE 8 #endif -static QFont g_fntNormal(KVI_SCRIPTEDITOR_DEFAULT_FONT,8); +static QFont g_fntNormal(KVI_SCRIPTEDITOR_DEFAULT_FONT,KVI_SCRIPTEDITOR_DEFAULT_FONT_SIZE); static bool bSemaphore=false; static bool bCompleterReady=false; @@ -868,7 +873,7 @@ void ScriptEditorImplementation::loadOptions() g_clrVariable = cfg.readColorEntry("Variable",QColor(200,200,200)); g_clrPunctuation = cfg.readColorEntry("Punctuation",QColor(180,180,0)); g_clrFind = cfg.readColorEntry("Find",QColor(255,0,0)); - g_fntNormal = cfg.readFontEntry("Font",QFont(KVI_SCRIPTEDITOR_DEFAULT_FONT,8)); + g_fntNormal = cfg.readFontEntry("Font",QFont(KVI_SCRIPTEDITOR_DEFAULT_FONT,KVI_SCRIPTEDITOR_DEFAULT_FONT_SIZE)); } bool ScriptEditorImplementation::isModified() |
