Browse Source

Uppercase font glyph literals to make them less ambiguous.

pull/3202/head
TheGoddessInari 6 years ago
parent
commit
c7c7ce7dab
No known key found for this signature in database
GPG Key ID: 1209B1B7632D69A
  1. 2
      app.js
  2. 2
      app/Application.js
  3. 16
      app/ux/WebView.js
  4. 30
      app/view/main/Main.js
  5. 2
      app/view/main/MainController.js

2
app.js

@ -64,7 +64,7 @@ ipc.on('autoUpdater:update-downloaded', function(e, releaseNotes, releaseName, r
}
,'->'
,{
glyph: 'xf00d@FontAwesome'
glyph: 'XF00D@FontAwesome'
,baseCls: ''
,style: 'cursor:pointer;'
,handler: function(btn) { Ext.cq1('app-main').removeDocked(btn.up('toolbar'), true); }

2
app/Application.js

@ -111,7 +111,7 @@ Ext.define('Rambox.Application', {
}
,'->'
,{
glyph: 'xf00d@FontAwesome'
glyph: 'XF00D@FontAwesome'
,baseCls: ''
,style: 'cursor:pointer;'
,handler: function(btn) { Ext.cq1('app-main').removeDocked(btn.up('toolbar'), true); }

16
app/ux/WebView.js

@ -71,14 +71,14 @@ Ext.define('Rambox.ux.WebView',{
,items: [
{
text: 'Back'
,glyph: 'xf053@FontAwesome'
,glyph: 'XF053@FontAwesome'
,flex: 1
,scope: me
,handler: me.goBack
}
,{
text: 'Forward'
,glyph: 'xf054@FontAwesome'
,glyph: 'XF054@FontAwesome'
,iconAlign: 'right'
,flex: 1
,scope: me
@ -91,33 +91,33 @@ Ext.define('Rambox.ux.WebView',{
,'-'
,{
text: 'Zoom In'
,glyph: 'xf00e@FontAwesome'
,glyph: 'XF00E@FontAwesome'
,scope: me
,handler: me.zoomIn
}
,{
text: 'Zoom Out'
,glyph: 'xf010@FontAwesome'
,glyph: 'XF010@FontAwesome'
,scope: me
,handler: me.zoomOut
}
,{
text: 'Reset Zoom'
,glyph: 'xf002@FontAwesome'
,glyph: 'XF002@FontAwesome'
,scope: me
,handler: me.resetZoom
}
,'-'
,{
text: locale['app.webview[0]']
,glyph: 'xf021@FontAwesome'
,glyph: 'XF021@FontAwesome'
,scope: me
,handler: me.reloadService
}
,'-'
,{
text: locale['app.webview[3]']
,glyph: 'xf121@FontAwesome'
,glyph: 'XF121@FontAwesome'
,scope: me
,handler: me.toggleDevTools
}
@ -200,7 +200,7 @@ Ext.define('Rambox.ux.WebView',{
}
,{
xtype: 'button'
,glyph: 'xf00d@FontAwesome'
,glyph: 'XF00D@FontAwesome'
,scale: 'small'
,ui: 'decline'
,padding: 0

30
app/view/main/Main.js

@ -142,7 +142,7 @@ Ext.define('Rambox.view.main.Main', {
,tools: [
{
xtype: 'button'
,glyph: 'xf1f8@FontAwesome'
,glyph: 'XF1F8@FontAwesome'
,baseCls: ''
,tooltip: locale['app.main[10]']
,handler: 'removeAllServices'
@ -170,14 +170,14 @@ Ext.define('Rambox.view.main.Main', {
,align: 'right'
,items: [
{
glyph: 0xf1f7
glyph: 0xF1F7
,tooltip: locale['app.main[11]']
,getClass: function( value, metaData, record, rowIndex, colIndex, store, view ){
if ( record.get('notifications') ) return 'x-hidden';
}
}
,{
glyph: 0xf026
glyph: 0xF026
,tooltip: locale['app.main[12]']
,getClass: function( value, metaData, record, rowIndex, colIndex, store, view ){
if ( !record.get('muted') ) return 'x-hidden';
@ -191,13 +191,13 @@ Ext.define('Rambox.view.main.Main', {
,align: 'center'
,items: [
{
glyph: 0xf013
glyph: 0xF013
,tooltip: locale['app.main[13]']
,handler: 'configureService'
,getClass: function(){ return 'x-hidden-display'; }
}
,{
glyph: 0xf1f8
glyph: 0xF1F8
,tooltip: locale['app.main[14]']
,handler: 'removeService'
,getClass: function(){ return 'x-hidden-display'; }
@ -236,7 +236,7 @@ Ext.define('Rambox.view.main.Main', {
,overflowHandler: 'menu'
,items: [
{
glyph: 'xf1f7@FontAwesome'
glyph: 'XF1F7@FontAwesome'
,text: locale['app.main[16]']+': '+(JSON.parse(localStorage.getItem('dontDisturb')) ? locale['app.window[20]'] : locale['app.window[21]'])
,tooltip: locale['app.main[17]']+'<br/><b>'+locale['app.main[18]']+': Alt+F1</b>'
,enableToggle: true
@ -246,7 +246,7 @@ Ext.define('Rambox.view.main.Main', {
,pressed: JSON.parse(localStorage.getItem('dontDisturb'))
}
,{
glyph: 'xf023@FontAwesome'
glyph: 'XF023@FontAwesome'
,text: locale['app.main[19]']
,tooltip: locale['app.main[20]']+'<br/><b>'+locale['app.main[18]']+': Alt+F2</b>'
,handler: 'lockRambox'
@ -255,7 +255,7 @@ Ext.define('Rambox.view.main.Main', {
,'->'
,{
text: 'Backup'
,glyph: 'xf0c7@FontAwesome'
,glyph: 'XF0C7@FontAwesome'
,id: 'backupBtn'
,tooltip: 'Backup services to disk'
,scope: Rambox.ux.FileBackup
@ -263,7 +263,7 @@ Ext.define('Rambox.view.main.Main', {
}
,{
text: 'Restore'
,glyph: 'xf115@FontAwesome'
,glyph: 'XF115@FontAwesome'
,id: 'restoreBtn'
,tooltip: 'Restore services from disk'
,scope: Rambox.ux.FileBackup
@ -271,7 +271,7 @@ Ext.define('Rambox.view.main.Main', {
}
,{
tooltip: locale['preferences[0]']
,glyph: 'xf013@FontAwesome'
,glyph: 'XF013@FontAwesome'
,handler: 'openPreferences'
}
]
@ -287,14 +287,14 @@ Ext.define('Rambox.view.main.Main', {
}
,{
text: locale['app.main[25]']
,glyph: 'xf21e@FontAwesome'
,glyph: 'XF21E@FontAwesome'
,href: 'https://www.gofundme.com/rambox-os'
}
]
/* TODO: Translation
,{
text: 'Translation'
,glyph: 'xf0ac@FontAwesome'
,glyph: 'XF0AC@FontAwesome'
,href: 'https://crowdin.com/project/rambox/invite'
}
]*/
@ -314,15 +314,15 @@ Ext.define('Rambox.view.main.Main', {
,pressed: true
}
,{
glyph: 'xf082@FontAwesome'
glyph: 'XF082@FontAwesome'
,href: 'https://www.facebook.com/TheGoddessInari'
}
,{
glyph: 'xf099@FontAwesome'
glyph: 'XF099@FontAwesome'
,href: 'https://www.twitter.com/TheGoddessInari'
}
,{
glyph: 'xf09b@FontAwesome'
glyph: 'XF09B@FontAwesome'
,href: 'https://www.github.com/TheGoddessInari/rambox'
}
]

2
app/view/main/MainController.js

@ -443,7 +443,7 @@ Ext.define('Rambox.view.main.MainController', {
,{
xtype: 'button'
,text: locale['app.window[27]']
,glyph: 'xf13e@FontAwesome'
,glyph: 'XF13E@FontAwesome'
,width: 256
,scale: 'large'
,handler: validateFn

Loading…
Cancel
Save