Quote:
Originally Posted by CaptainChaos
I am working on a theme that displays the time on the springboard so I would like to remove the time that is displayed on the upper status bar. Is there a plist or something I can edit to make invisible or set it to false maybe?
Also, is there a way to rotate the icons 90 degrees? I am trying to create a landscape theme for my springboard, but the labels don't seem to want to change..ie the names displayed under the apps. I know you can make them invisible, but I would prefer them to show.
|
there is a theme for witherboad in Cydia called Extended Preferences and it has the option to change the clock to whatever you want so if you turn fake time on and leave it blank it makes the clock transparent....and it all is done in the settings app ...i like it its real simple....
i have this widget here that just displays the clock...it was the clock/date widget...all i did was take out the date part of it
PHP Code:
<html>
<head><title>newclock</title>
<base href="Private/"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style>
body {
margin: 0;
padding: 0px 0 0 0;
height: 480px;
width: 320px;
}
</style>
<script type="text/javascript" src="configureMe.js"/>
<script type="text/javascript" src="Wallpaper.js"/>
</head>
<style>
SPAN#clock
{
font-family: Helvetica;
color: #ffffff;
font-size: 30px;
}
SPAN#ampm
{
font-family: Helvetica;
color: #ffffff;
font-size: 15px;
}
</style>
<script type="text/javascript">
function init ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("clock").appendChild ( timeDisplay );
}
function updateClock ( )
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
var currentMinutes = currentTime.getMinutes ( );
var currentSeconds = currentTime.getSeconds ( );
// Pad the minutes and seconds with leading zeros, if required
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
// Choose either "AM" or "PM" as appropriate
var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;
// Compose the string for display
var currentTimeString = currentHours + ":" + currentMinutes;
// Update the time display
document.getElementById("clock").firstChild.nodeValue = currentTimeString;
}
function init2 ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("ampm").appendChild ( timeDisplay );
}
function amPm ( )
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
// Choose either "AM" or "PM" as appropriate
var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;
// Compose the string for display
var currentTimeString = timeOfDay;
// Update the time display
document.getElementById("ampm").firstChild.nodeValue = currentTimeString;
}
function init3 ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("calendar").appendChild ( timeDisplay );
}
</script>
</head>
<table style="position: absolute; top: 30px; left: 0px; width: 320px; height: 461px;" cellspacing="0" cellpadding="0" align="center">
<tr align="center" valign="top" border="0" cellpadding="0">
<td height="10" valign="top">
<span id="clock">
<script language="JavaScript">updateClock(); setInterval('updateClock()', 1000 )</script></span><span id="ampm">
<script language="JavaScript">amPm(); setInterval('amPm()', 1000 )</script>
</span>
</td>
</tr>
</tr>
</table>
<body onload="onLoad()">
</body>
</html>
and here is a plst from the blackberry theme that made the time transparent:
hope this helps:
PHP Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NavigationBarStyle</key>
<string>1</string>
<key>UndockedIconLabelStyle</key>
<string>/*font-family: monospace;*/ font-size: 13px; color: 0000</string>
<key>DockedIconLabelStyle</key>
<string>/*font-family: monospace;*/ font-size: 13px; color: transparent</string>
<key>TimeStyle</key>
<string>/*font-family: monospace;*/ font-size: 16px; color: transparent</string>
</dict>
</plist>