Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
vr8vpc.png
Hey Lex, everything is so crisp except for the notification bubbles

Try this one instead:
sbbadgebg2x.png
 
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; nb-no) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5)

Fantasigraphic said:
Would be super happy if someone helped me out with a thing, maybe lex can use his super powers.

I saw this awesome widget, and had to have it, know ofcourse its not a 24 hour version, and i suck at html/css. I managed to change it out, so that it shows 16:46 instead of 4:46 etc, the problem is after midnight it says the time is 12:21 instead 00:21. Anyone know whats wrong?

img0267.png


Heres the code that i know needs changing to get proper 24 hour format


// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 :currentHours;


// Pad the minutes and seconds with leading zeros, if required
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;


// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? currentHours + 24 : currentHours;


// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;

If i use that code, i get proper night time, 01:10 etc, but i get wrong day time, 4:16 instead of 16:16 etc

To make 00:21 to look like 12:21 make this edit:

// Pad the minutes and seconds with leading zeros, if required
//currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;

The problem is that the clock shows wrong from 12 in the afternoon to midnight.

It shows 4:49 instead of 16:49. I want 24 hour.

But it shows correct from midnight to 12 in the afternoon.
 
// currentHours = ( currentHours == 0 ) ? currentHours + 24 : currentHours;

Add // as above

Not sure I am :confused: with this one
 
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7)

henrikrox said:
Fantasigraphic said:
henrikrox said:
Would be super happy if someone helped me out with a thing, maybe lex can use his super powers.

I saw this awesome widget, and had to have it, know ofcourse its not a 24 hour version, and i suck at html/css. I managed to change it out, so that it shows 16:46 instead of 4:46 etc, the problem is after midnight it says the time is 12:21 instead 00:21. Anyone know whats wrong?

img0267.png


Heres the code that i know needs changing to get proper 24 hour format


// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 :currentHours;


// Pad the minutes and seconds with leading zeros, if required
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;


// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? currentHours + 24 : currentHours;


// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;

If i use that code, i get proper night time, 01:10 etc, but i get wrong day time, 4:16 instead of 16:16 etc

To make 00:21 to look like 12:21 make this edit:

// Pad the minutes and seconds with leading zeros, if required
//currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;

The problem is that the clock shows wrong from 12 in the afternoon to midnight.

It shows 4:49 instead of 16:49. I want 24 hour.

But it shows correct from midnight to 12 in the afternoon.

So you want it to be 24 hr correct? From 1am to 12:59 it'll be correct in military (24 hr) after 12:59 it should read 1300-0059 (1pm-12:59am). Is this what you want?

Anyways if you want a 24 hr make you line look like this:

//currentHours = (currentHours > 12) ? currentHours - 12 : currentHours;

Sorry doing this from iphone

 
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7)

henrikrox said:
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; nb-no) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5)

Fantasigraphic said:
Would be super happy if someone helped me out with a thing, maybe lex can use his super powers.

I saw this awesome widget, and had to have it, know ofcourse its not a 24 hour version, and i suck at html/css. I managed to change it out, so that it shows 16:46 instead of 4:46 etc, the problem is after midnight it says the time is 12:21 instead 00:21. Anyone know whats wrong?

img0267.png


Heres the code that i know needs changing to get proper 24 hour format


// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 :currentHours;


// Pad the minutes and seconds with leading zeros, if required
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;


// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? currentHours + 24 : currentHours;


// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;

If i use that code, i get proper night time, 01:10 etc, but i get wrong day time, 4:16 instead of 16:16 etc

To make 00:21 to look like 12:21 make this edit:

// Pad the minutes and seconds with leading zeros, if required
//currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;

The problem is that the clock shows wrong from 12 in the afternoon to midnight.

It shows 4:49 instead of 16:49. I want 24 hour.

But it shows correct from midnight to 12 in the afternoon.

So you want it to be 24 hr correct? From 1am to 12:59 it'll be correct in military (24 hr) after 12:59 it should read 1300-0059 (1pm-12:59am). Is this what you want?
 
STravisC post a SS of what you have so people can help you and be more clearly of what doesn't show up.
 
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; nb-no) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5)

Thx fantasigraphic and lex I'll try both suggestions when I get home. The clock actually reads 03:04 now instead of 15:04.

Thanks again. Can't wait to try it out
 
You've got to make the background transparent in photoshop (using the Magic Eraser is an easy way) and then save the image as a PNG and select the "Transparency" or "Save Transparency" option. I'm not 100% sure what the option is called, but it has the word transparency in it haha

Thanks you so very much!!! I was able to do this exactly!!! :D:D
 
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7)



So you want it to be 24 hr correct? From 1am to 12:59 it'll be correct in military (24 hr) after 12:59 it should read 1300-0059 (1pm-12:59am). Is this what you want?

Hi everyone any idea how do i shift the clock the ' | ' divider thingy to the left slightly? cause its kinda overlapping with my minutes :C
 
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7)

guynic said:
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_1 like Mac OS X; en-us) AppleWebKit/532.9 (KHTML, like Gecko) Version/4.0.5 Mobile/8B117 Safari/6531.22.7)



So you want it to be 24 hr correct? From 1am to 12:59 it'll be correct in military (24 hr) after 12:59 it should read 1300-0059 (1pm-12:59am). Is this what you want?

Hi everyone any idea how do i shift the clock the ' | ' divider thingy to the left slightly? cause its kinda overlapping with my minutes :C

Don't think you can. But you can reduce the clocks font size
 
Actually have no idea where the original one is or if there is one, but it doesn't look squished to me?

Hmm ok, np.

Idk if it's just me, but it does seem to look that way. It looks like whoever cropped it free-transformed it and pushed the sides into a 640x960 size instead of just cropping it to fit better.

Then again, like I said, I might just be trippin ;)
 
I'm still trying to find out how to do a Transparent Status Bar without using Winterboard. The only thing inside the theme is Translucent_Base.png. So surely there must be a way to change this inside SSH.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.