Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
am_pm = 'PM'
if(dhr==0){dhr=12;am_pm='AM';}
if(dhr<12){dhr=dhr; am_pm='AM';}
if(dhr>12){dhr=(dhr-12);am_pm='PM';}
if(dhr<10){dhr='0'+dhr;}
I figure you would prefer the simply remove the leading zero, so 2pm would be simply "2" and not "02". To accomplish that, remove the line above in red (or comment it out by adding // in front of the line).

I'm afraid, however, that removing the zero will cause the "2" to be shifted over away from the minutes. In that case, you'll have to play with the positioning (left and top coordinates) to get it to line up.

Below are the numbers I used previously. You can try and compare yours with these and see how it works. Always make a backup though...

Code:
	div#hourbox {
		position:relative;
		text-align:right;
		left:-195px; 
		top:0px; 
		font-size:170px;
		line-height:170px;
		color:#FFFFFF;
		letter-spacing: -15px;
		opacity:.4;
		text-shadow: 5px 5px 5px #000000;
	}
	div#minbox {
		position:absolute;
		left:140px; 
		top:10px; 
		font-size:90px;
		color:#FFFFFF;
		opacity:.4;
		text-shadow: 5px 5px 5px #000000;
	}
	div#am_pmbox {
		position:relative;
		text-align:right;
		left:-100px; 
		top:-75px; 
		font-size:50px;
		color:#FFFFFF;
		opacity:.4;
		text-shadow: 5px 5px 5px #000000;
	}
	div#daybox {
		position:relative;
		text-align:center;
		top:-150px;
		left:80px;
		font-size:22px;
		line-height:22px;
		color:#FFFFFF;
		opacity:.5;
		text-shadow: 3px 3px 3px #000000;
		-webkit-transform:rotate(270deg);
	}
	div#monthbox {
		position:absolute;
		text-align:center;
		top:100px;
		left:241px;
		font-size:30px;
		line-height:30px;
		color:#FFFFFF;
		opacity:.5;
		text-shadow: 3px 3px 3px #000000;
		-webkit-transform:rotate(270deg);
	}
	div#datebox {
		position:absolute;
		text-align:center;
		top:38px;
		left:251px;
		font-size:30px;
		line-height:30px;
		color:#FFFFFF;
		opacity:.5;
		text-shadow: 3px 3px 3px #000000;
		-webkit-transform:rotate(270deg);
	}
	div#yearbox {
		position:absolute;
		text-align:center;
		top:68px;
		left:253px;
		font-size:45px;
		line-height:45px;
		color:#FFFFFF;
		opacity:.5;
		text-shadow: 3px 3px 3px #000000;
		-webkit-transform:rotate(270deg);
	}


	/*WEATHER*/
	#WeatherContainer{
		margin: -110px 0 0 0;
		background-color: INVISIBLE;
		color: #FFFF99;
	}

	#TextContainer{
		float: left;
		padding: 0;
		margin: 0 0 0 20px;
		position:absolute;
		text-align:left;
		top:150px;
		left:0px;
		font-family: "American Typewriter Condensed";
		font-size: x-large;
		color:#FFFFFF;
		opacity:.5;
		text-shadow: 3px 3px 3px #000000;
	}

	#city{
		text-transform: capitalize;
		font-weight: bold;
	}

	#TextContainer p{
		padding: 0;
		margin: 0;
	}

	#desc{
//		position:absolute;
//		left:265px; 
//		text-align:center;
//		top: 205px; 
//		Float: right;
//		Z-index:2;
//		color:#FFFFFF;
//		font-style:italic;
//		font-size:12px;
//		font-weight: bold;
//		text-shadow: 2px 2px 2px #000000;
		display: none;
	}
	#weatherIcon{
		position:absolute;
		text-align:left;
		top:150px;
		left:253px;
		height: 64px;
		width: 64px;
		float: right;
		border: none;
		opacity:.7;
		padding: 0 0x 0 10px;
		margin: 0 10px 0 0px;
	}

</style>
 
I figure you would prefer the simply remove the leading zero, so 2pm would be simply "2" and not "02". To accomplish that, remove the line above in red (or comment it out by adding // in front of the line).

I'm afraid, however, that removing the zero will cause the "2" to be shifted over away from the minutes. In that case, you'll have to play with the positioning (left and top coordinates) to get it to line up.

Below are the numbers I used previously. You can try and compare yours with these and see how it works. Always make a backup though...

Code:
	div#hourbox {
		position:relative;
		text-align:right;
		left:-195px; 
		top:0px; 
		font-size:170px;
		line-height:170px;
		color:#FFFFFF;
		letter-spacing: -15px;
		opacity:.4;
		text-shadow: 5px 5px 5px #000000;
	}
	div#minbox {
		position:absolute;
		left:140px; 
		top:10px; 
		font-size:90px;
		color:#FFFFFF;
		opacity:.4;
		text-shadow: 5px 5px 5px #000000;
	}
	div#am_pmbox {
		position:relative;
		text-align:right;
		left:-100px; 
		top:-75px; 
		font-size:50px;
		color:#FFFFFF;
		opacity:.4;
		text-shadow: 5px 5px 5px #000000;
	}
	div#daybox {
		position:relative;
		text-align:center;
		top:-150px;
		left:80px;
		font-size:22px;
		line-height:22px;
		color:#FFFFFF;
		opacity:.5;
		text-shadow: 3px 3px 3px #000000;
		-webkit-transform:rotate(270deg);
	}
	div#monthbox {
		position:absolute;
		text-align:center;
		top:100px;
		left:241px;
		font-size:30px;
		line-height:30px;
		color:#FFFFFF;
		opacity:.5;
		text-shadow: 3px 3px 3px #000000;
		-webkit-transform:rotate(270deg);
	}
	div#datebox {
		position:absolute;
		text-align:center;
		top:38px;
		left:251px;
		font-size:30px;
		line-height:30px;
		color:#FFFFFF;
		opacity:.5;
		text-shadow: 3px 3px 3px #000000;
		-webkit-transform:rotate(270deg);
	}
	div#yearbox {
		position:absolute;
		text-align:center;
		top:68px;
		left:253px;
		font-size:45px;
		line-height:45px;
		color:#FFFFFF;
		opacity:.5;
		text-shadow: 3px 3px 3px #000000;
		-webkit-transform:rotate(270deg);
	}


	/*WEATHER*/
	#WeatherContainer{
		margin: -110px 0 0 0;
		background-color: INVISIBLE;
		color: #FFFF99;
	}

	#TextContainer{
		float: left;
		padding: 0;
		margin: 0 0 0 20px;
		position:absolute;
		text-align:left;
		top:150px;
		left:0px;
		font-family: "American Typewriter Condensed";
		font-size: x-large;
		color:#FFFFFF;
		opacity:.5;
		text-shadow: 3px 3px 3px #000000;
	}

	#city{
		text-transform: capitalize;
		font-weight: bold;
	}

	#TextContainer p{
		padding: 0;
		margin: 0;
	}

	#desc{
//		position:absolute;
//		left:265px; 
//		text-align:center;
//		top: 205px; 
//		Float: right;
//		Z-index:2;
//		color:#FFFFFF;
//		font-style:italic;
//		font-size:12px;
//		font-weight: bold;
//		text-shadow: 2px 2px 2px #000000;
		display: none;
	}
	#weatherIcon{
		position:absolute;
		text-align:left;
		top:150px;
		left:253px;
		height: 64px;
		width: 64px;
		float: right;
		border: none;
		opacity:.7;
		padding: 0 0x 0 10px;
		margin: 0 10px 0 0px;
	}

</style>

Worked, thanks for the help :D

001-50.png
 
Ok, didnt work. I checked the time moved to 11pm and the hours and minutes overlpped. I have applied your settings and great, but, i would like the day, city weather icon back where they were. Any ideas ?

003-22.png
 
how can i hide the "Slide to Unlock" bar?

i did it a few weeks ago with my old ipod touch with lockinfo somehow and i totally forgot how...

ive searched and cannot find a good solution
 
Ok, didnt work. I checked the time moved to 11pm and the hours and minutes overlpped. I have applied your settings and great, but, i would like the day, city weather icon back where they were. Any ideas ?
Without looking into it too deeply, I see my Weather Container margin is set to -110. What about yours?

Code:
	/*WEATHER*/
	#WeatherContainer{
		margin: -110px 0 0 0;
		background-color: INVISIBLE;
		color: #FFFF99;
 
Without looking into it too deeply, I see my Weather Container margin is set to -110. What about yours?

Code:
	/*WEATHER*/
	#WeatherContainer{
		margin: -110px 0 0 0;
		background-color: INVISIBLE;
		color: #FFFF99;

Mines at 50px. I'll change and see
 
I just installed the SlantedLock update in Cydia. Now my lockscreen has the question mark that shows when something doesn't load. It is visible behind my background. Also, I can't get the configuration page to load anymore. It worked before.

Anyone else having this problem?
 
I just installed the SlantedLock update in Cydia. Now my lockscreen has the question mark that shows when something doesn't load. It is visible behind my background. Also, I can't get the configuration page to load anymore. It worked before.

Anyone else having this problem?

Please see post #1 from this thread: https://forums.macrumors.com/threads/1006066/

I documented pretty clearly how to upgrade to SlantedLock v1.5.3, which is now entirely different from the theme in this thread. xD
 
I love this one, but I can't get it to work. I extracted the files to the ThemesXXX folder, respring, and my lockscreen is blank. Could someone help me please?

Put .theme file into /Library/Themes using SSH and enable the theme through Winterboard. Then respring and it should work.
 
Put .theme file into /Library/Themes using SSH and enable the theme through Winterboard. Then respring and it should work.

Thanks!! It works, but I have another problem. The time is wrong, it's 00:53 but it's displaying 12:53 a.m. How to fix this?
 
Thanks!! It works, but I have another problem. The time is wrong, it's 00:53 but it's displaying 12:53 a.m. How to fix this?

:confused: I thought 12 is right, 00 is wrong..

Anyway.. if you prefer 00 then take this red part out

am_pm = 'PM'
if(dhr==0){dhr=12;am_pm='AM';}
if(dhr<12){dhr=dhr; am_pm='AM';}
if(dhr>12){dhr=(dhr-12);am_pm='PM';}
if(dhr<10){dhr='0'+dhr;}
 
does anyone know why i have the theme properly installed except i have the normal lock bar instead of the theme's green arrow one?
 
the slant version of theme is great! only question i have is how do i get the weather working with the slant theme? i tried turning it on except it kinda messed up the formatting...
 
the slant version of theme is great! only question i have is how do i get the weather working with the slant theme? i tried turning it on except it kinda messed up the formatting...


Hi there,

I'm not that good with html/css so hashed this theme together with trial and error mostly, so the css/html is quite messy. I also never intended to use it with weather so I didnt change any of the settings or position for that to make it fit. Feel free to make any changes to it yourself to get it work though.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.