Difference between revisions of "Patch Email Change Default Font for Replies-Forwards from Navy to Black"

From WebOS Internals
Jump to navigation Jump to search
(Updated for webOS 1.3.1)
(reorganized so that we don't have to find line numbers each time there's an update to the OS.)
 
Line 1: Line 1:
 
{{template:patch}}
 
{{template:patch}}
It bothered me how all my replies/forwards showed up in navy blue font, so I figured out a way to make the font black.  The fix is pretty easy actually.
 
  
Access Linux, and then edit the following file:
+
By default, replies and forwards in the Mail app use a navy blue font colour. This is easily remedied by a single edit.
/usr/palm/applications/com.palm.app.email/app/models/Email.js
 
  
==webOS 1.3.1==
+
==Procedure==
Change the word "navy" on '''line 492''' to "black"
+
[[Portal:Accessing_Linux|Access Linux]], and then issue the following commands:
  
==webOS 1.2.0==
+
Switch to the root user before beginning:
 +
sudo su
 +
You will be prompted for your user password.
  
Change the word "navy" on '''line 461''' to "black"
+
Mount root read/write with:
 +
mount -o remount,rw /
  
==webOS 1.1.0==
+
Edit the Email.js file:
 +
vi /usr/palm/applications/com.palm.app.email/app/models/Email.js
  
Change the word "navy" on '''line 441''' to "black"
+
Once the file is open in vi, type
 +
/navy
 +
and press return. This will search the file for the occurrence of the word "navy". Enter insert mode by pressing the "i" key and change the word "navy" to "black"
  
==webOS 1.0.3==
+
Press Escape to exit insert mode, then write and quit the file with
 
+
:wq
Change the word "navy" on '''line 423''' to "black"
+
followed by pressing return. Don't forget to remount root read only with:
 
+
mount -o remount,ro /
==Contributor(s)==
 
*jdoelger
 

Latest revision as of 07:07, 15 November 2009


By default, replies and forwards in the Mail app use a navy blue font colour. This is easily remedied by a single edit.

Procedure

Access Linux, and then issue the following commands:

Switch to the root user before beginning:

sudo su

You will be prompted for your user password.

Mount root read/write with:

mount -o remount,rw /

Edit the Email.js file:

vi /usr/palm/applications/com.palm.app.email/app/models/Email.js

Once the file is open in vi, type

/navy

and press return. This will search the file for the occurrence of the word "navy". Enter insert mode by pressing the "i" key and change the word "navy" to "black".

Press Escape to exit insert mode, then write and quit the file with

:wq

followed by pressing return. Don't forget to remount root read only with:

mount -o remount,ro /