diff --git a/qutebrowser/config/configdata.py b/qutebrowser/config/configdata.py index fa9b43365..e43ab598a 100644 --- a/qutebrowser/config/configdata.py +++ b/qutebrowser/config/configdata.py @@ -26,6 +26,7 @@ SECTION_DESC: A dictionary with descriptions for sections. DATA: The config defaults, an OrderedDict of sections. """ +import sys import re import collections @@ -110,6 +111,9 @@ SECTION_DESC = { } +DEFAULT_FONT_SIZE = '10pt' if sys.platform == 'darwin' else '8pt' + + DATA = collections.OrderedDict([ ('general', sect.KeyValue( ('ignore-case', @@ -716,19 +720,19 @@ DATA = collections.OrderedDict([ "Default monospace fonts."), ('completion', - SettingValue(typ.Font(), '8pt ${_monospace}'), + SettingValue(typ.Font(), DEFAULT_FONT_SIZE + ' ${_monospace}'), "Font used in the completion widget."), ('tabbar', - SettingValue(typ.QtFont(), '8pt ${_monospace}'), + SettingValue(typ.QtFont(), DEFAULT_FONT_SIZE + ' ${_monospace}'), "Font used in the tabbar."), ('statusbar', - SettingValue(typ.Font(), '8pt ${_monospace}'), + SettingValue(typ.Font(), DEFAULT_FONT_SIZE + ' ${_monospace}'), "Font used in the statusbar."), ('downloads', - SettingValue(typ.Font(), '8pt ${_monospace}'), + SettingValue(typ.Font(), DEFAULT_FONT_SIZE + ' ${_monospace}'), "Font used for the downloadbar."), ('hints', @@ -736,7 +740,7 @@ DATA = collections.OrderedDict([ "Font used for the hints."), ('debug-console', - SettingValue(typ.QtFont(), '8pt ${_monospace}'), + SettingValue(typ.QtFont(), DEFAULT_FONT_SIZE + ' ${_monospace}'), "Font used for the debugging console."), ('web-family-standard',