Example #1
0
      ('show-favicons', SettingValue(
          typ.Bool(), 'true'), "Whether to show favicons in the tab bar."),
      ('width',
       SettingValue(typ.PercOrInt(minperc=0, maxperc=100, minint=1), '20%'),
       "The width of the tab bar if it's vertical, in px or as percentage "
       "of the window."),
      ('indicator-width', SettingValue(typ.Int(minval=0), '3'),
       "Width of the progress indicator (0 to disable)."),
      ('indicator-space', SettingValue(typ.Int(minval=0), '3'),
       "Spacing between tab edge and indicator."),
      ('tabs-are-windows', SettingValue(
          typ.Bool(), 'false'), "Whether to open windows instead of tabs."),
  )),
 ('storage',
  sect.KeyValue(
      ('download-directory', SettingValue(typ.Directory(none_ok=True), ''),
       "The directory to save downloads to. An empty value selects a "
       "sensible os-specific default."),
      ('maximum-pages-in-cache',
       SettingValue(typ.Int(none_ok=True, minval=0, maxval=MAXVALS['int']),
                    ''),
       "The maximum number of pages to hold in the memory page cache.\n\n"
       "The Page Cache allows for a nicer user experience when navigating "
       "forth or back to pages in the forward/back history, by pausing and "
       "resuming up to _n_ pages.\n\n"
       "For more information about the feature, please refer to: "
       "http://webkit.org/blog/427/webkit-page-cache-i-the-basics/"),
      ('object-cache-capacities',
       SettingValue(typ.WebKitBytesList(length=3, maxsize=MAXVALS['int']),
                    ''),
       "The capacities for the memory cache for dead objects such as "
Example #2
0
        ('indicator-width',
         SettingValue(typ.Int(minval=0), '3'),
         "Width of the progress indicator (0 to disable)."),

        ('indicator-space',
         SettingValue(typ.Int(minval=0), '3'),
         "Spacing between tab edge and indicator."),

        ('tabs-are-windows',
         SettingValue(typ.Bool(), 'false'),
         "Whether to open windows instead of tabs."),
    )),

    ('storage', sect.KeyValue(
        ('download-directory',
         SettingValue(typ.Directory(none_ok=True), ''),
         "The directory to save downloads to. An empty value selects a "
         "sensible os-specific default."),

        ('maximum-pages-in-cache',
         SettingValue(
             typ.Int(none_ok=True, minval=0, maxval=MAXVALS['int']), ''),
         "The maximum number of pages to hold in the memory page cache.\n\n"
         "The Page Cache allows for a nicer user experience when navigating "
         "forth or back to pages in the forward/back history, by pausing and "
         "resuming up to _n_ pages.\n\n"
         "For more information about the feature, please refer to: "
         "http://webkit.org/blog/427/webkit-page-cache-i-the-basics/"),

        ('object-cache-capacities',
         SettingValue(