      1 Deluge.Preferences.addPage({
      2 	border: false,
      3 	title: _('Interface'),
      4 	xtype: 'form',
      5 	layout: 'form',
      6 	items: [{
      7 		xtype: 'fieldset',
      8 		border: false,
      9 		title: _('Window'),
     10 		autoHeight: true,
     11 		labelWidth: 1,
     12 		items: [{
     13 			xtype: 'checkbox',
     14 			fieldLabel: '',
     15 			labelSeparator: '',
     16 			boxLabel: _('Show session speed in titlebar'),
     17 			id: 'show_session_speed'
     18 		}]
     19 	}, {
     20 		xtype: 'fieldset',
     21 		border: false,
     22 		title: _('Sidebar'),
     23 		autoHeight: true,
     24 		labelWidth: 1,
     25 		items: [{
     26 			xtype: 'checkbox',
     27 			fieldLabel: '',
     28 			labelSeparator: '',
     29 			boxLabel: _('Hide filters with zero torrents'),
     30 			id: 'hide_sidebar_zero'
     31 		}]
     32 	}, {
     33 		xtype: 'fieldset',
     34 		border: false,
     35 		title: _('Password'),
     36 		autoHeight: true,
     37 		defaultType: 'textfield',
     38 		items: [{
     39 			fieldLabel: 'New Password',
     40 			inputType: 'password',
     41 			id: 'new_password'
     42 		}, {
     43 			inputType: 'password',
     44 			fieldLabel: 'Confirm Password',
     45 			id: 'confirm_password'
     46 		}]
     47 	}]
     48 });