convert to squared style

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

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({