|
|
@ -15,12 +15,13 @@ Ext.define('Rambox.view.preferences.Preferences',{ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
,title: 'Preferences' |
|
|
|
,title: 'Preferences' |
|
|
|
,width: 400 |
|
|
|
,width: 420 |
|
|
|
,modal: true |
|
|
|
,modal: true |
|
|
|
,closable: true |
|
|
|
,closable: true |
|
|
|
,minimizable: false |
|
|
|
,minimizable: false |
|
|
|
,maximizable: false |
|
|
|
,maximizable: false |
|
|
|
,draggable: true |
|
|
|
,draggable: true |
|
|
|
|
|
|
|
,resizable: false |
|
|
|
,buttons: [ |
|
|
|
,buttons: [ |
|
|
|
{ |
|
|
|
{ |
|
|
|
text: 'Cancel' |
|
|
|
text: 'Cancel' |
|
|
@ -62,33 +63,48 @@ Ext.define('Rambox.view.preferences.Preferences',{ |
|
|
|
,hidden: process.platform !== 'win32' |
|
|
|
,hidden: process.platform !== 'win32' |
|
|
|
} |
|
|
|
} |
|
|
|
,{ |
|
|
|
,{ |
|
|
|
xtype: 'checkbox' |
|
|
|
xtype: 'combo' |
|
|
|
,name: 'skip_taskbar' |
|
|
|
,name: 'window_display_behavior' |
|
|
|
,boxLabel: 'Show in Taskbar' |
|
|
|
,fieldLabel: 'Display behaviour' |
|
|
|
,value: config.skip_taskbar |
|
|
|
,labelAlign: 'left' |
|
|
|
,reference: 'skipTaskbar' |
|
|
|
,width: 380 |
|
|
|
|
|
|
|
,labelWidth: 105 |
|
|
|
|
|
|
|
,value: config.window_display_behavior |
|
|
|
|
|
|
|
,displayField: 'label' |
|
|
|
|
|
|
|
,valueField: 'value' |
|
|
|
|
|
|
|
,editable: false |
|
|
|
|
|
|
|
,store: Ext.create('Ext.data.Store', { |
|
|
|
|
|
|
|
fields: ['value', 'label'] |
|
|
|
|
|
|
|
,data: [ |
|
|
|
|
|
|
|
{ 'value': 'show_taskbar', 'label': 'Show in Taskbar' } |
|
|
|
|
|
|
|
,{ 'value': 'show_trayIcon', 'label': 'Show Tray Icon' } |
|
|
|
|
|
|
|
,{ 'value': 'taskbar_tray', 'label': 'Show in Taskbar and Tray Icon' } |
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
}) |
|
|
|
,hidden: process.platform === 'darwin' |
|
|
|
,hidden: process.platform === 'darwin' |
|
|
|
}, |
|
|
|
} |
|
|
|
{ |
|
|
|
,{ |
|
|
|
xtype: 'combo', |
|
|
|
xtype: 'combo' |
|
|
|
name: 'window_close_behavior', |
|
|
|
,name: 'window_close_behavior' |
|
|
|
fieldLabel: 'When closing the main window', |
|
|
|
,fieldLabel: 'When closing the main window' |
|
|
|
labelAlign: 'top', |
|
|
|
,labelAlign: 'left' |
|
|
|
value: config.window_close_behavior, |
|
|
|
,width: 380 |
|
|
|
displayField: 'label', |
|
|
|
,labelWidth: 180 |
|
|
|
valueField: 'value', |
|
|
|
,value: config.window_close_behavior |
|
|
|
editable: false, |
|
|
|
,displayField: 'label' |
|
|
|
store: Ext.create('Ext.data.Store', { |
|
|
|
,valueField: 'value' |
|
|
|
fields: ['value', 'label'], |
|
|
|
,editable: false |
|
|
|
data : [ |
|
|
|
,store: Ext.create('Ext.data.Store', { |
|
|
|
{ 'value': 'keep_in_tray', 'label': 'Keep in tray' }, |
|
|
|
fields: ['value', 'label'] |
|
|
|
{ 'value': 'keep_in_tray_and_taskbar', 'label': 'Keep in tray and taskbar' }, |
|
|
|
,data: [ |
|
|
|
{ 'value': 'quit', 'label': 'Quit' } |
|
|
|
{ 'value': 'keep_in_tray', 'label': 'Keep in tray' } |
|
|
|
|
|
|
|
,{ 'value': 'keep_in_tray_and_taskbar', 'label': 'Keep in tray and taskbar' } |
|
|
|
|
|
|
|
,{ 'value': 'quit', 'label': 'Quit' } |
|
|
|
] |
|
|
|
] |
|
|
|
}), |
|
|
|
}) |
|
|
|
hidden: process.platform === 'darwin' |
|
|
|
,hidden: process.platform === 'darwin' |
|
|
|
}, |
|
|
|
} |
|
|
|
{ |
|
|
|
,{ |
|
|
|
xtype: 'checkbox' |
|
|
|
xtype: 'checkbox' |
|
|
|
,name: 'always_on_top' |
|
|
|
,name: 'always_on_top' |
|
|
|
,boxLabel: 'Always on top' |
|
|
|
,boxLabel: 'Always on top' |
|
|
|