Exemple #1
0
       "How to open links in an existing instance if a new one is "
       "launched."),
  )),
 ('ui',
  sect.KeyValue(
      ('zoom-levels',
       SettingValue(
           typ.PercList(minval=0),
           '25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,'
           '250%,300%,400%,500%'),
       "The available zoom levels, separated by commas."),
      ('default-zoom', SettingValue(typ.Perc(),
                                    '100%'), "The default zoom level."),
      ('message-timeout', SettingValue(typ.Int(), '2000'),
       "Time (in ms) to show messages in the statusbar for."),
      ('confirm-quit', SettingValue(typ.ConfirmQuit(), 'never'),
       "Whether to confirm quitting the application."),
      ('display-statusbar-messages', SettingValue(typ.Bool(), 'false'),
       "Whether to display javascript statusbar messages."),
      ('zoom-text-only', SettingValue(typ.Bool(), 'false'),
       "Whether the zoom factor on a frame applies only to the text or to "
       "all content."),
      ('frame-flattening', SettingValue(typ.Bool(), 'false'),
       "Whether to  expand each subframe to its contents.\n\n"
       "This will flatten all the frames to become one scrollable page."),
      ('user-stylesheet',
       SettingValue(typ.UserStyleSheet(),
                    '::-webkit-scrollbar { width: 0px; height: 0px; }'),
       "User stylesheet to use (absolute filename or CSS string)."),
      ('css-media-type', SettingValue(typ.String(none_ok=True),
                                      ''), "Set the CSS media type."),
Exemple #2
0
        ('zoom-levels',
         SettingValue(typ.PercList(minval=0),
                      '25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,'
                      '250%,300%,400%,500%'),
         "The available zoom levels, separated by commas."),

        ('default-zoom',
         SettingValue(typ.ZoomPerc(), '100%'),
         "The default zoom level."),

        ('message-timeout',
         SettingValue(typ.Int(), '2000'),
         "Time (in ms) to show messages in the statusbar for."),

        ('confirm-quit',
         SettingValue(typ.ConfirmQuit(), 'never'),
         "Whether to confirm quitting the application."),

        ('display-statusbar-messages',
         SettingValue(typ.Bool(), 'false'),
         "Whether to display javascript statusbar messages."),

        ('zoom-text-only',
         SettingValue(typ.Bool(), 'false'),
         "Whether the zoom factor on a frame applies only to the text or to "
         "all content."),

        ('frame-flattening',
         SettingValue(typ.Bool(), 'false'),
         "Whether to  expand each subframe to its contents.\n\n"
         "This will flatten all the frames to become one scrollable page."),