tweak the sizes of some form elements to improve the layout
This commit is contained in:
parent
96becf60bd
commit
5129682727
|
@ -134,17 +134,19 @@ Ext.deluge.preferences.Bandwidth = Ext.extend(Ext.form.FormPanel, {
|
||||||
border: false,
|
border: false,
|
||||||
title: '',
|
title: '',
|
||||||
defaultType: 'checkbox',
|
defaultType: 'checkbox',
|
||||||
style: 'padding-top: 0px; margin-top: 0px; margin-bottom: 0px;',
|
style: 'padding-top: 0px; padding-bottom: 5px; margin-top: 0px; margin-bottom: 0px;',
|
||||||
autoHeight: true
|
autoHeight: true
|
||||||
});
|
});
|
||||||
optMan.bind('ignore_limits_on_local_network', fieldset.add({
|
optMan.bind('ignore_limits_on_local_network', fieldset.add({
|
||||||
name: 'ignore_limits_on_local_network',
|
name: 'ignore_limits_on_local_network',
|
||||||
|
height: 22,
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Ignore limits on local network'),
|
boxLabel: _('Ignore limits on local network'),
|
||||||
}));
|
}));
|
||||||
optMan.bind('rate_limit_ip_overhead', fieldset.add({
|
optMan.bind('rate_limit_ip_overhead', fieldset.add({
|
||||||
name: 'rate_limit_ip_overhead',
|
name: 'rate_limit_ip_overhead',
|
||||||
|
height: 22,
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Rate limit IP overhead'),
|
boxLabel: _('Rate limit IP overhead'),
|
||||||
|
|
|
@ -76,6 +76,7 @@ Ext.deluge.preferences.Daemon = Ext.extend(Ext.form.FormPanel, {
|
||||||
});
|
});
|
||||||
optMan.bind('allow_remote', fieldset.add({
|
optMan.bind('allow_remote', fieldset.add({
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
|
height: 22,
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Allow Remote Connections'),
|
boxLabel: _('Allow Remote Connections'),
|
||||||
name: 'allow_remote'
|
name: 'allow_remote'
|
||||||
|
|
|
@ -107,7 +107,7 @@ Ext.deluge.preferences.Downloads = Ext.extend(Ext.FormPanel, {
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
defaults: {
|
defaults: {
|
||||||
width: 80,
|
width: 80,
|
||||||
height: 25,
|
height: 22,
|
||||||
name: 'compact_allocation'
|
name: 'compact_allocation'
|
||||||
},
|
},
|
||||||
items: [{
|
items: [{
|
||||||
|
@ -131,13 +131,13 @@ Ext.deluge.preferences.Downloads = Ext.extend(Ext.FormPanel, {
|
||||||
optMan.bind('prioritize_first_last_pieces', fieldset.add({
|
optMan.bind('prioritize_first_last_pieces', fieldset.add({
|
||||||
name: 'prioritize_first_last_pieces',
|
name: 'prioritize_first_last_pieces',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
height: 24,
|
height: 22,
|
||||||
boxLabel: _('Prioritize first and last pieces of torrent')
|
boxLabel: _('Prioritize first and last pieces of torrent')
|
||||||
}));
|
}));
|
||||||
optMan.bind('add_paused', fieldset.add({
|
optMan.bind('add_paused', fieldset.add({
|
||||||
name: 'add_paused',
|
name: 'add_paused',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
height: 24,
|
height: 22,
|
||||||
boxLabel: _('Add torrents in Paused state')
|
boxLabel: _('Add torrents in Paused state')
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
@ -52,25 +52,28 @@ Ext.deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
||||||
xtype: 'fieldset',
|
xtype: 'fieldset',
|
||||||
border: false,
|
border: false,
|
||||||
title: _('Interface'),
|
title: _('Interface'),
|
||||||
style: 'margin-bottom: 5px; padding-bottom: 5px; padding-top: 5px',
|
style: 'margin-bottom: 0px; padding-bottom: 5px; padding-top: 5px',
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
labelWidth: 1,
|
labelWidth: 1,
|
||||||
defaultType: 'checkbox'
|
defaultType: 'checkbox'
|
||||||
});
|
});
|
||||||
optMan.bind('show_session_speed', fieldset.add({
|
optMan.bind('show_session_speed', fieldset.add({
|
||||||
name: 'show_session_speed',
|
name: 'show_session_speed',
|
||||||
|
height: 22,
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Show session speed in titlebar')
|
boxLabel: _('Show session speed in titlebar')
|
||||||
}));
|
}));
|
||||||
optMan.bind('sidebar_show_zero', fieldset.add({
|
optMan.bind('sidebar_show_zero', fieldset.add({
|
||||||
name: 'sidebar_show_zero',
|
name: 'sidebar_show_zero',
|
||||||
|
height: 22,
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Show filters with zero torrents')
|
boxLabel: _('Show filters with zero torrents')
|
||||||
}));
|
}));
|
||||||
optMan.bind('sidebar_show_trackers', fieldset.add({
|
optMan.bind('sidebar_show_trackers', fieldset.add({
|
||||||
name: 'sidebar_show_trackers',
|
name: 'sidebar_show_trackers',
|
||||||
|
height: 22,
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Show trackers with zero torrents')
|
boxLabel: _('Show trackers with zero torrents')
|
||||||
|
@ -125,7 +128,7 @@ Ext.deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
||||||
xtype: 'fieldset',
|
xtype: 'fieldset',
|
||||||
border: false,
|
border: false,
|
||||||
title: _('Server'),
|
title: _('Server'),
|
||||||
style: 'margin-top: 5px; padding-top: 5px; margin-bottom: 0px; padding-bottom: 0px',
|
style: 'margin-top: 0px; padding-top: 0px; margin-bottom: 0px; padding-bottom: 0px',
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
labelWidth: 110,
|
labelWidth: 110,
|
||||||
defaultType: 'uxspinner',
|
defaultType: 'uxspinner',
|
||||||
|
@ -157,8 +160,9 @@ Ext.deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
||||||
xtype: 'checkbox',
|
xtype: 'checkbox',
|
||||||
name: 'https',
|
name: 'https',
|
||||||
hideLabel: true,
|
hideLabel: true,
|
||||||
width: 320,
|
width: 280,
|
||||||
boxLabel: _('Use SSL (paths relative to the Deluge config folder)')
|
height: 22,
|
||||||
|
boxLabel: _('Use SSL (paths relative to Deluge config folder)')
|
||||||
}));
|
}));
|
||||||
this.httpsField.on('check', this.onSSLCheck, this);
|
this.httpsField.on('check', this.onSSLCheck, this);
|
||||||
this.pkeyField = optMan.bind('pkey', fieldset.add({
|
this.pkeyField = optMan.bind('pkey', fieldset.add({
|
||||||
|
|
|
@ -61,6 +61,7 @@ Ext.deluge.preferences.Network = Ext.extend(Ext.form.FormPanel, {
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Use Random Ports'),
|
boxLabel: _('Use Random Ports'),
|
||||||
name: 'random_port',
|
name: 'random_port',
|
||||||
|
height: 22,
|
||||||
listeners: {
|
listeners: {
|
||||||
'check': {
|
'check': {
|
||||||
fn: function(e, checked) {
|
fn: function(e, checked) {
|
||||||
|
@ -115,6 +116,7 @@ Ext.deluge.preferences.Network = Ext.extend(Ext.form.FormPanel, {
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
boxLabel: _('Use Random Ports'),
|
boxLabel: _('Use Random Ports'),
|
||||||
name: 'random_outgoing_ports',
|
name: 'random_outgoing_ports',
|
||||||
|
height: 22,
|
||||||
listeners: {
|
listeners: {
|
||||||
'check': {
|
'check': {
|
||||||
fn: function(e, checked) {
|
fn: function(e, checked) {
|
||||||
|
|
|
@ -58,6 +58,7 @@ Ext.deluge.preferences.Other = Ext.extend(Ext.form.FormPanel, {
|
||||||
optMan.bind('new_release_check', fieldset.add({
|
optMan.bind('new_release_check', fieldset.add({
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
|
height: 22,
|
||||||
name: 'new_release_check',
|
name: 'new_release_check',
|
||||||
boxLabel: _('Be alerted about new releases')
|
boxLabel: _('Be alerted about new releases')
|
||||||
}));
|
}));
|
||||||
|
@ -82,6 +83,7 @@ Ext.deluge.preferences.Other = Ext.extend(Ext.form.FormPanel, {
|
||||||
optMan.bind('send_info', fieldset.add({
|
optMan.bind('send_info', fieldset.add({
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
|
height: 22,
|
||||||
boxLabel: _('Yes, please send anonymous statistics'),
|
boxLabel: _('Yes, please send anonymous statistics'),
|
||||||
name: 'send_info'
|
name: 'send_info'
|
||||||
}));
|
}));
|
||||||
|
|
|
@ -59,6 +59,7 @@ Ext.deluge.preferences.Queue = Ext.extend(Ext.form.FormPanel, {
|
||||||
optMan.bind('queue_new_to_top', fieldset.add({
|
optMan.bind('queue_new_to_top', fieldset.add({
|
||||||
fieldLabel: '',
|
fieldLabel: '',
|
||||||
labelSeparator: '',
|
labelSeparator: '',
|
||||||
|
height: 22,
|
||||||
boxLabel: _('Queue new torrents to top'),
|
boxLabel: _('Queue new torrents to top'),
|
||||||
name: 'queue_new_to_top'
|
name: 'queue_new_to_top'
|
||||||
}));
|
}));
|
||||||
|
@ -123,7 +124,7 @@ Ext.deluge.preferences.Queue = Ext.extend(Ext.form.FormPanel, {
|
||||||
autoHeight: true,
|
autoHeight: true,
|
||||||
labelWidth: 150,
|
labelWidth: 150,
|
||||||
defaultType: 'uxspinner',
|
defaultType: 'uxspinner',
|
||||||
style: 'margin-bottom: 0px; padding-bottom: 0px;',
|
style: 'margin-bottom: 0px; padding-bottom: 0px; margin-top: 0; padding-top: 0;',
|
||||||
});
|
});
|
||||||
optMan.bind('share_ratio_limit', fieldset.add({
|
optMan.bind('share_ratio_limit', fieldset.add({
|
||||||
fieldLabel: _('Share Ratio Limit'),
|
fieldLabel: _('Share Ratio Limit'),
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue