Exemplo n.º 1
0
export function appLaunchOnStartup (allow) {
  return {
    type: 'checkbox',
    label: '&Launch on Startup',
    allow: allow,
    click: $.all(
      $.launchOnStartup($.key('checked')),
      $.updateSibling('startup-hidden', 'enabled', $.key('checked')),
      $.setPref('launch-startup', $.key('checked'))
    ),
    parse: $.all(
      $.setLocal('checked', $.pref('launch-startup')),
      $.updateSibling('startup-hidden', 'enabled', $.key('checked'))
    )
  };
}
Exemplo n.º 2
0
   click: $.all(
     $.setPref('show-notifications-badge', $.key('checked')),
     $.hideDockBadge($.key('checked'))
   ),
   parse: $.all(
     $.setLocal('checked', $.pref('show-notifications-badge'))
   )
 }, {
   type: 'separator'
 }, {
   id: 'show-tray',
   type: 'checkbox',
   label: 'Show in Menu Bar',
   click: $.all(
     $.showInTray($.key('checked')),
     $.updateSibling('show-dock', 'enabled', $.key('checked')),
     $.updateMenuItem('tray', 'show-tray')($.key('checked'))((checked) => $.all(
       $.setLocal('checked', $.val(checked)),
       $.updateSibling('show-dock', 'enabled', $.val(checked))
     )),
     $.setPref('show-tray', $.key('checked'))
   ),
   parse: $.all(
     $.setLocal('checked', $.pref('show-tray')),
     $.updateSibling('show-dock', 'enabled', $.key('checked'))
   )
 }, {
   id: 'show-dock',
   type: 'checkbox',
   label: 'Show in Dock',
   click: $.all(
Exemplo n.º 3
0
 $.updateMenuItem('tray', 'show-dock')($.key('checked'))((checked) => $.all(
   $.setLocal('checked', $.val(checked)),
   $.updateSibling('show-tray', 'enabled', $.val(checked))
 )),
Exemplo n.º 4
0
   role: 'paste'
 }, {
   label: 'Select All',
   allow: platform.isDarwin,
   accelerator: 'Cmd+A',
   role: 'selectall'
 }, {
   type: 'separator',
   allow: platform.isDarwin
 }, {
   type: 'checkbox',
   label: 'Check &Spelling While Typing',
   accelerator: 'CmdOrCtrl+Alt+S',
   click: $.all(
     $.sendToWebView('spell-checker', $.key('checked'), $.pref('spell-checker-auto-correct'), $.pref('spell-checker-language')),
     $.updateSibling('spell-checker-auto-correct', 'enabled', $.key('checked')),
     $.updateSibling('spell-checker-language', 'enabled', $.key('checked')),
     $.setPref('spell-checker-check', $.key('checked'))
   ),
   parse: $.all(
     $.setLocal('checked', $.pref('spell-checker-check'))
   )
 }, {
   id: 'spell-checker-auto-correct',
   type: 'checkbox',
   label: '&Auto Correct Spelling Mistakes',
   allow: false,
   click: $.all(
     $.sendToWebView('spell-checker', $.pref('spell-checker-check'), $.key('checked'), $.pref('spell-checker-language')),
     $.setPref('spell-checker-auto-correct', $.key('checked'))
   ),