convert to squared style

This commit is contained in:
rlx 2016-01-13 13:50:03 +05:30
parent 5b1e2e58e9
commit ee0c514d01
10 changed files with 35 additions and 4 deletions

View File

@ -13,9 +13,11 @@ oml.ui.deleteItemsDialog = function() {
that = oml.ui.confirmDialog({
buttons: [
Ox.Button({
style: 'squared',
title: Ox._('No, Keep {0}', [itemsName])
}),
Ox.Button({
style: 'squared',
title: Ox._('Yes, Delete {0}', [itemsName])
})
],

View File

@ -7,9 +7,11 @@ oml.ui.deleteListDialog = function() {
that = oml.ui.confirmDialog({
buttons: [
Ox.Button({
style: 'squared',
title: Ox._('No, Keep List')
}),
Ox.Button({
style: 'squared',
title: Ox._('Yes, Delete List')
})
],

View File

@ -21,6 +21,7 @@ oml.ui.errorDialog = function() {
function getButtons() {
return (ui.enableDebugMenu ? [
Ox.Button({
style: 'squared',
title: Ox._('View Error Logs...')
})
.bindEvent({
@ -33,6 +34,7 @@ oml.ui.errorDialog = function() {
] : []).concat([
Ox.Button({
id: 'close',
style: 'squared',
title: Ox._('Close')
})
.bindEvent({

View File

@ -8,6 +8,7 @@ oml.ui.findDialog = function() {
buttons: [
Ox.Button({
id: 'done',
style: 'squared',
title: Ox._('Done')
})
.bindEvent({
@ -33,6 +34,7 @@ oml.ui.findDialog = function() {
}),
$updateCheckbox = Ox.Checkbox({
style: 'squared',
title: Ox._('Update Results in the Background'),
value: oml.user.ui.updateResults
})

View File

@ -9,6 +9,7 @@ oml.ui.listDialog = function() {
buttons: [].concat(list && !Ox.endsWith(list, ':') ? [
Ox.Button({
id: 'duplicate',
style: 'squared',
title: Ox._('Duplicate List...')
})
.bindEvent({
@ -20,6 +21,7 @@ oml.ui.listDialog = function() {
] : []).concat(Ox.startsWith(list, ':') && list != '' ? [
Ox.Button({
id: 'delete',
style: 'squared',
title: Ox._('Delete List...')
})
.bindEvent({
@ -32,6 +34,7 @@ oml.ui.listDialog = function() {
{},
Ox.Button({
id: 'done',
style: 'squared',
title: Ox._('Done')
})
.bindEvent({

View File

@ -9,6 +9,7 @@ oml.ui.namesDialog = function() {
changeOnKeypress: true,
clear: true,
placeholder: Ox._('Find'),
style: 'squared',
width: 192
})
.css({float: 'right', margin: '4px'})
@ -110,6 +111,7 @@ oml.ui.namesDialog = function() {
that = Ox.Dialog({
buttons: [
Ox.Button({
style: 'squared',
title: Ox._('Sort Titles...')
}).bindEvent({
click: function() {
@ -123,6 +125,7 @@ oml.ui.namesDialog = function() {
$findButton,
Ox.Button({
title: Ox._('Done'),
style: 'squared',
width: 48
}).bindEvent({
click: function() {

View File

@ -189,6 +189,7 @@ oml.ui.peersPanel = function() {
readonly: true,
label: Ox._('Your Public Key'),
labelWidth: 128,
style: 'squared',
value: oml.user.id,
width: 480
})
@ -201,6 +202,7 @@ oml.ui.peersPanel = function() {
readonly: true,
label: Ox._('Download Link'),
labelWidth: 128,
style: 'squared',
value: 'https://openmedialibrary.com/#download',
width: 480
})
@ -223,6 +225,7 @@ oml.ui.peersPanel = function() {
$nickname = Ox.Input({
label: Ox._('Nickname'),
labelWidth: 128,
style: 'squared',
value: user.nickname,
width: 480
})
@ -253,6 +256,7 @@ oml.ui.peersPanel = function() {
$id = Ox.Input({
label: Ox._('Public Key'),
labelWidth: 128,
style: 'squared',
width: 480
})
.bindEvent({
@ -292,6 +296,7 @@ oml.ui.peersPanel = function() {
readonly: true,
label: Ox._('Username'),
labelWidth: 128,
style: 'squared',
value: user.username,
width: 480
})
@ -304,6 +309,7 @@ oml.ui.peersPanel = function() {
readonly: true,
label: Ox._('Public Key'),
labelWidth: 128,
style: 'squared',
value: user.id,
width: 480
})
@ -316,6 +322,7 @@ oml.ui.peersPanel = function() {
readonly: true,
label: Ox._('Contact'),
labelWidth: 128,
style: 'squared',
value: user.contact || '',
width: 480
})
@ -328,9 +335,10 @@ oml.ui.peersPanel = function() {
Ox.Label({
textAlign: 'center',
style: 'squared',
title: user.peered ? Ox._('Remove Peer')
: user.pending == 'received' ? Ox._('Peering Request')
: user.pending == 'sent' ? Ox._('Cancel Request')
: user.pending == 'received' ? Ox._('Accept Peering Request')
: user.pending == 'sent' ? Ox._('Cancel Peering Request')
: Ox._('Send Peering Request'),
width: 480
})
@ -343,6 +351,7 @@ oml.ui.peersPanel = function() {
label: Ox._('Message'),
labelWidth: 128,
placeholder: Ox._('none'),
style: 'squared',
width: 480
})
.css({
@ -357,6 +366,7 @@ oml.ui.peersPanel = function() {
: ['send']
).map(function(id, index) {
return Ox.Button({
style: 'squared',
title: Ox.getObjectById(buttons, id).title
})
.css({

View File

@ -5,9 +5,11 @@ oml.ui.resetUIDialog = function(data) {
var that = oml.ui.confirmDialog({
buttons: [
Ox.Button({
style: 'squared',
title: Ox._('No, Don\'t Reset')
}),
Ox.Button({
style: 'squared',
title: Ox._('Yes, Reset')
})
],

View File

@ -9,6 +9,7 @@ oml.ui.titlesDialog = function() {
changeOnKeypress: true,
clear: true,
placeholder: Ox._('Find'),
style: 'squared',
width: 192
})
.css({float: 'right', margin: '4px'})
@ -94,6 +95,7 @@ oml.ui.titlesDialog = function() {
$findButton = Ox.Button({
disabled: true,
style: 'squared',
title: Ox._('Find'),
width: 48
}).bindEvent({
@ -116,6 +118,7 @@ oml.ui.titlesDialog = function() {
that = Ox.Dialog({
buttons: [
Ox.Button({
style: 'squared',
title: Ox._('Sort Names...')
}).bindEvent({
click: function() {
@ -128,6 +131,7 @@ oml.ui.titlesDialog = function() {
{},
$findButton,
Ox.Button({
style: 'squared',
title: Ox._('Done'),
width: 48
}).bindEvent({

View File

@ -6,6 +6,7 @@ oml.ui.welcomeDialog = function() {
buttons: [
Ox.Button({
id: 'close',
style: 'squared',
title: Ox._('Close')
})
.bindEvent({
@ -15,8 +16,8 @@ oml.ui.welcomeDialog = function() {
})
],
content: 'Welcome! To get started, you may want to set your '
+ 'library path, import some media, start your node, chose a '
+ 'username and add a few peers.',
+ 'library path, import some media, choose a username '
+ 'and add a few peers.',
title: Ox._('Welcome to Open Media Library')
});