09/15/2010, 10:51 AM
|
#1 (permalink) |
|
Member
![]() Join Date: Sep 2009
Location: Canada
Posts: 1,488
Likes Received: 311
Thanks: 64
Thanked 660 Times in 214 Posts
|
So, according to the Palm Developer site, app developers can easily change their apps to a Dark theme with some simple CSS code.
The webOS Community | Palm Developer Center Blog You can see this in Preware and Govnah and other apps that give this setting. Would it be possible then, to turn on the Dark Theme for the entire WebOS? Meaning that Contacts and Email and other apps used the dark theme as well If this is possible, please tell me how. I am using a darker theme as is, but it would be awesome to convert these elements to match, if all it took was some simple CSS coding. |
11/23/2010, 12:20 PM
|
#4 (permalink) |
|
Member
![]() Join Date: Jan 2007
Location: in the dark recesses of the earth, awaiting "The Rise of the L@@T"
Posts: 3,991
Likes Received: 184
Thanks: 2,996
Thanked 1,967 Times in 1,402 Posts
|
i believe it has to be turned on in each app
__________________
NEWBIES Check These Threads First WebOS FAQ Export Contacts Backup-Restore Patches/Apps follow me on twitter or Catch me at LOOT ATTN: If You like my Patches or Themes please feel free to DONATE |
11/23/2010, 12:27 PM
|
#5 (permalink) |
|
Member
![]() Join Date: May 2010
Location: NorCal
Posts: 1,762
Likes Received: 79
Thanks: 51
Thanked 279 Times in 200 Posts
|
I looked at the link in the first post. Is it as simple as adding the line "theme":"dark" to each appinfo.jsn file?
Edit: Just tried that. Didn't work even after luna restart. Hmm... Last edited by jsgraphicart; 11/23/2010 at 12:52 PM. |
11/23/2010, 12:56 PM
|
#6 (permalink) | |
|
Member
![]() Join Date: Jan 2007
Location: in the dark recesses of the earth, awaiting "The Rise of the L@@T"
Posts: 3,991
Likes Received: 184
Thanks: 2,996
Thanked 1,967 Times in 1,402 Posts
|
Quote:
Creating a Dark Themed App Here is the sure-fire way to make your app palm-dark. This is a two-step process: First, edit appinfo.json: Code:
// File: appinfo.json
{
...,
"theme":"dark",
...
}
Next, change index.html to set the body css class to "palm-dark". Feel free to add this line just above the </html> line if it there is not yet a body tag in this file. Like so: Code:
<!-- File: index.html --> <html> ... <body class="palm-dark"></body> </html> Code:
$$('body')[0].addClassName('palm-dark');
//or
this.controller.document.getElementsByTagName("body")[0].addClassName('palm-dark');
Code:
<div class="palm-page-header multi-line">
<div class="palm-page-header-wrapper">
<div class="title left">
My Dark App
</div>
</div>
</div>
Code Snippets - WebOS101
__________________
NEWBIES Check These Threads First WebOS FAQ Export Contacts Backup-Restore Patches/Apps follow me on twitter or Catch me at LOOT ATTN: If You like my Patches or Themes please feel free to DONATE |
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



