PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Apache (http://forum.ppcgeeks.com/forumdisplay.php?f=14)
-   -   For those looking to skin your dialer (TDial 1.1.0, 12-09-07) (http://forum.ppcgeeks.com/showthread.php?t=7819)

luv2chill 09-04-2007 10:17 AM

Killer work man!

tiermann 09-04-2007 10:34 AM

Quote:

Originally Posted by luv2chill (Post 82306)
Killer work man!

Thanks ;)

Now all I need to do is figure out how to hax0r the mui files to change the fonts it uses hehe.

pierocksmysocks 09-04-2007 11:25 AM

Tiermann the application rocks! Thanks mate! (But next time try to grab a nap every so often so you don't kill yourself alright?)

OMJ 09-04-2007 12:46 PM

Quote:

Originally Posted by CHUFLY29 (Post 82300)
This happened to me after I installed Weather Panel. I just did few soft resets and it worked out fine (I also made sure my system font wasn't set to anything funky). I know... sledge hammer, but it worked for me. :)

well it's definitely casued by WP, but multiple resets did not fix it, lol.

tiermann 09-05-2007 12:04 AM

Minor Updates: (b1.01)
-Changed the appearance of the view dropdown.
-Fixed issues where selecting cancel on the colorDialogs would still change colors.

Updates: (b1.02)
-Changed the method I use for alpha-blending the indialer image onto the backdrop. Fixes a bit of the delay when changing alpha and toggling the carrierlogo. Also uses a lot less cpu.
-The change to the alpha-blending requires that the indialer images be indexed as opposed to RGB. Only important for button set (style) designers.
-Fixed up some of my functions so they're more memory friendly.

Please use the link in my sig for the latest download. It's just easier for me to update the file in one location.
Also easier for anyone looking for the latest version :).
The download is http so should be fine for those having trouble with the ftp too.

tiermann 09-05-2007 08:19 PM

http://img467.imageshack.us/img467/8140/untitledsa4.jpg

Updates: (b1.03)
-Added the option for button background color as well as alpha-blending for all color settings so you can fade them into your background.

trehouse 09-06-2007 08:13 AM

Tiermann, great job!!! Thanks for providing.

tiermann 09-06-2007 11:34 AM

Quote:

Originally Posted by trehouse (Post 83410)
Tiermann, great job!!! Thanks for providing.

You're welcome :)


I had a request for some real resizing as opposed to just squishing or stretching background images that were too big or small. I've added some code to resample the image to fill the background and crop the right side or bottom if there's any excess. That should save some time resizing and cropping in an image editor.

Update: (b1.04)
-When you load a background that's too big or small it'll ask you if you just want to squish it (the old method) or if you want to resample it.
-Also added version number to the titlebar so you don't have to check the exe properties to see which version you have.

tiermann 09-06-2007 10:14 PM

Update: (b1.05)
-Fixed the problem with some images not resampling properly. (In portrait mode if an image was too tall it was not scaling to fill, and if images were too small or big and square they would not fill.)

omegax 09-06-2007 10:51 PM

Do you Know of a way to get VB .net to let us select what part of the pic it crops.

tiermann 09-06-2007 11:27 PM

Code:

Public Function CaptureRectangle(ByVal bmp As Bitmap, ByVal CapRect As Rectangle, ByVal CapRectWidth As Integer, ByVal CapRectHeight As Integer) As Bitmap
        Dim bmpImage As Bitmap = bmp
        Dim bmpCrop As New Bitmap(CapRectWidth, CapRectHeight)
        Dim recCrop As New Rectangle(CapRect.X, CapRect.Y, CapRectWidth, CapRectHeight)
        Dim gphCrop As Graphics = Graphics.FromImage(bmpCrop)
        Dim recDest As New Rectangle(0, 0, CapRectWidth, CapRectHeight)
        Dim attr As New System.Drawing.Imaging.ImageAttributes
        gphCrop.DrawImage(bmpImage, recDest, recCrop.X, recCrop.Y, recCrop.Width, recCrop.Height, GraphicsUnit.Pixel, attr)

        gphCrop.Dispose()
        Return bmpCrop

    End Function

That will return a bitmap cropped out of the original image at the start position and width/height specified. Usage is like...

'Define these to the section you want to crop out of the picture
Dim startX, startY, cWidth, cHeight as Integer

Dim oldbmp as Bitmap = new Bitmap("C:\MyPicture.jpg")
Dim newbmp as Bitmap = captureRectangle(oldbmp, new Rectangle(startX,StartY,cWidth,cHeight), cWidth, cHeight)

tiermann 09-07-2007 08:11 AM

Update: (b1.06)
-Rearranged the menu bar a bit to add options for "Always Stretch", "Always Resample", and "Always Ask". There's also a checkbox on the dialog that pops up so you don't have to choose every time. Saves the setting to registry (HKCU\Software\TierMann\TDialDesigner).

Ruinit 09-07-2007 11:26 AM

I cannot seem to find the program on your ftp? And the link in your sig takes you to an error page.

Thanks

tiermann 09-07-2007 01:07 PM

Sorry. Don't know why, but I think my account is suspended on that server. I'll attach b1.06 for now and try to find someplace to move my page.

Maybe I got too many hits from putting up that WM6 mirror list :P


Edit: The site is back up. Maybe their server just broke for a while.

Newer version is in my sig.

Ruinit 09-07-2007 04:02 PM

Sweet thanks!

Now if I could figure out a way to make the Caller ID larger so my old eyes could see it :) Oh and also ear piece volume .... lol

tiermann 09-07-2007 05:49 PM

Things to come..

http://img511.imageshack.us/img511/8518/untitledxq2.jpg

I made a new button set, but I'll put that out later tonight. I still haven't added the code to generate the "downbuttons" yet since there were no other button sets before. You will have the option to pick all the colors and blending for the down buttons as well.

tiermann 09-08-2007 09:04 AM

Update: (b1.08 )
-All settings except "Style" and Background Image can be saved for next run. (See the File menu)
You can choose to "Save Current Settings" or have it save every time you exit.
I thought this would be a useful addition since the amount of options has increased so much since the beginning.
-TDialDesigner uses a "TDial.ini" file now for settings instead of the registry so you'll have to choose what type of resizing you want for the background images again. I did this for people who like the whole application and settings to be portable for usb keys, etc. Also, if you want to go back to stock settings you can always delete the TDial.ini and restart the app.

PS: I just realized that I forgot to have it load the setting for "Hide Carrier Logo/Text" from the ini, but that's minor. I'll fix for next time.


Big Update: (b1.07)
-New "TahomaDigits" button set included. Look in Options->Styles
-It now generates downbuttons.
-You can pick the colors and alpha of the downbuttons as well.
-All buttons on the dialer preview pictures are clickable now. When the left mousebutton is down over one of the digits it will show you the downbutton image.


Before anyone asks, this is not a bug...
On the progress screen, if you click a button other than the "talk" button, the background for the downbutton is a solid color. This is because the dialer itself uses the same image for those 5 command buttons so I can't have it draw the background on the button (it wouldn't line up with the bg image and they'd all the same cutout). If you wish to have a transparent bg for down buttons on the progress screen, leave the progress bg alpha for downbutton at 0%.

This pic shows the new layout with my mouse down over the 5 button...
http://img365.imageshack.us/img365/6876/untitledbx2.png

Let me know if there are any bugs, like your dialer not coming out how you wanted it to, etc. I changed a lot of code around so I may have missed something.

Ruinit 09-08-2007 01:57 PM

Great work! I like the larger number style. A question though. I want to edit the status box but find that you can not change it without using some kind of picture. Could that be set to a color as well? I hate the blue background this dialer comes with now.

I noticed that you lose the letters with the fatter digits but looks like there is space to run them vertically to the right of the digits? For those that need the letters

Ruinit 09-08-2007 02:24 PM

Sorry but before I put on my first skin. I have a folder called MySkin that I saved. Where do I put that whole folder? Or do I just copy the files you have listed in the first post?

Thanks

Never mind this post copied all files from MySkin into \windows overwriting every thing and it works fine :)

tiermann 09-08-2007 05:08 PM

Quote:

Originally Posted by Ruinit (Post 84519)
Great work! I like the larger number style. A question though. I want to edit the status box but find that you can not change it without using some kind of picture. Could that be set to a color as well? I hate the blue background this dialer comes with now.

The status box is drawn onto the default background so that's why it can't be changed without a new background. There's no real point to alpha-blending if the same image is right behind it ;).

Quote:

Originally Posted by Ruinit (Post 84519)
I noticed that you lose the letters with the fatter digits but looks like there is space to run them vertically to the right of the digits? For those that need the letters

That's the idea of the styles :) That particular one is for those who don't need the letters. I could do one with letters too, or someone else could take a shot at it if they like.


PS: I see you figured it out. All the files go directly into \Windows.

maattan 09-08-2007 05:29 PM

Just tried to run your latest version and get and app error.
The application failed to initialize properly (0x0000135). Click on OK to terminate the application. Is there a runtime or dll that I need?

Ruinit 09-08-2007 05:50 PM

Quote:

Originally Posted by maattan (Post 84591)
Just tried to run your latest version and get and app error.
The application failed to initialize properly (0x0000135). Click on OK to terminate the application. Is there a runtime or dll that I need?

You did unzip all the files to a folder and then run the the app from folder right?

tiermann 09-08-2007 06:04 PM

It requires .Net Framework 2.0 or higher. Other than that, there's no external API calls so it shouldn't require dlls.
The only thing I can think of is a corrupt download. You could try re-downloading.

I just double-checked to make sure it wasn't a bad upload (downloaded the zip from my site, unzipped it, and ran the exe) and ran fine.

rp3319 09-09-2007 04:37 AM

tiermann - very cool. I'll post my end result when I'm done playing with it. I haven't tried moving anything over to the phone yet. thanks!

maattan 09-09-2007 09:26 AM

Reinstalled 2.0 and that fixed it. Great work!

tiermann 09-09-2007 03:17 PM

I'm glad you guys like it and got it working ok. :)

Things to come...
http://img406.imageshack.us/img406/8205/numca5.png
http://img406.imageshack.us/img406/9701/numsf8.png
http://img210.imageshack.us/img210/1347/letterdy6.png

For right now, you can set your button background color and digit color to the same color and alpha and cut/paste these over the buttons in a paint program, but in the next version I'll have TDial Designer support some fancier button sets like these.

tiermann 09-09-2007 08:27 PM

Gettin closer...

http://img462.imageshack.us/img462/6458/sshotke7.png

I'll have this ready later tonight or tomorrow. Thats a screenshot of the designer using a "HotDigits" style that will be included.
I've made some changes to the style format, but the old format will still work. The new format will allow you to add comments to your style as well as your name and email. The new format will have less pictures to edit too, so should make things easier for button style developers.

glitchbit 09-09-2007 11:42 PM

I am surprised I am not seeing any glossy buttons...

I guess unless you can assign two different wallpapers it would not work out.

But the program looks to be very useful!

tiermann 09-10-2007 12:27 AM

1 Attachment(s)
You "can" assign 2 different wallpapers, but just not with the today settings or "set as wallpaper" commands. They have to be included in a theme (.tsk) file. I'll post my tsk file with this as an example of setting up one a tsk with 2 different wallpapers for portrait/landscape.

Unzip the tsk file from the zip. Rename the tsk to cab and check out the setup.xml. The 2 other files are just renamed gif files.

Result looks like...
http://img464.imageshack.us/img464/9310/sshotsx2.png

You can also set multiple wallpapers with WisbarAdv Desktop.

Glossy/Glass buttons will be the next thing I add once I get the fancy digits taken care of :)

tiermann 09-10-2007 02:02 AM

Updates: (b1.09)
-Added a help menu. Not much there yet, but lets you see a few things.
-Changed the button style format. Only needs 28 images now. You can also add digits with more than 3 colors :P. You can not change the digit color and digit alpha of styles in the new format (YET) but they do look a lot nicer.
-Added a few variables so people can add comments and info to their button style. Info shows up in the status bar when the style is loaded and is also availabe from Help->About Style. (Check out the styles\HotDigits\style.txt for an example.)
-Added HotDigits style :P
-Fixed a bug where landscape alpha settings weren't loading on next run.


Things to do:

-Add the ability to change the alpha and hue of digits in the new style format.
-Add an optional glossy/glass overlay to buttons, depending on the style and user preferences.

As always. The latest version is availabe at http://www.tiermann.zendurl.com/pc.php .
The link is also in my signature.


PS: An extra note for those looking to make a button style. All the images in the new format are RGB (not indexed) except for the indialer_ps and _ls files. That hasn't changed from the old format.

tiermann 09-10-2007 05:33 AM

This is gettin easier now...

http://img359.imageshack.us/img359/2310/sshotgk3.png

Soon (sometime tomorrow) you'll be able to add gloss to any of the button styles. As you can see in that picture I'm using it with the default BasicDigits style and all colors are still selectable and noticeable.

tiermann 09-10-2007 08:22 AM

Updates: (b1.1.0)
-You can now add a glossy overlay to your skin with any button style. Under "Options->Gloss" choose "Basic Gloss". It's set to "None" by default and doesn't save with the rest of your options yet.
-Sped up the initial loading time. Should start up quicker now.
-Fixed a bug where it would try to save your skin again even though a skin with that name already existed.

http://img474.imageshack.us/img474/4062/untitledsn9.png

As you can see, it even makes the default look nice ;).

You can add your own glosses to the list simply by placing a transparent/lucent PNG in the styles folder. It will show up after a restart of TDialDesigner. It doesn't have to be any particular size because it should scale it. I'm not gauranteeing pretty results, but it'll atleast give it a try for you, hehe.

The "down" command buttons on the progress screens (besides talk and end) will have a solid backcolor when using a gloss, just like they do when setting alpha higher than 0 for them. It's for the same reason too, because the command buttons all share the same image. Not much I can do about that until I figure out some keys in the registry or something to change the dialer to use 5 seperate images.

Trident 09-10-2007 08:33 AM

Nice. I noticed you have v1.1 out with the gloss option.
A small request. Once a background image is selected, there doesn't seem to be a way to get rid of it other than selecting another image. Could you add a "default" or undo option if we don't like the results of the image but don't want to lose the other changes we've made?

rp3319 09-10-2007 10:19 AM

I copied all the files over to the windows directory on my pda with the active sync explorer, but it isn't loading after the soft-reset. I looked on my device and the files seem to be correct. After upgrading to WM6, I loaded up the "Sprint" dialer that uses blue fonts for the buttons. Do I need to revert back to Helmi's stock ROM dialer for this to work? Otherwise, it's the same style dialer... thx!!!

Ruinit 09-10-2007 03:26 PM

Tiermann,

Dude you do some good work.. Loving it simple to use and looking better all the time! Thanks !!

Ruinit 09-10-2007 03:35 PM

Playing with it now. Maybe a bug or maybe designed that way but you can't open an existing skin I've created and saved? Also if you click gloss first you can't use any other styles. But if you select the style like "hot" and then chose gloss it allows the font to be gloss.

rp3319 09-10-2007 04:52 PM

I figured it out... removed the other dialer and my new skin is working after the soft reset! Very cool!!!
btw - copying the files over with active sync worked fine too. no need for resco...

tiermann 09-10-2007 06:05 PM

Quote:

Originally Posted by Trident (Post 85211)
Nice. I noticed you have v1.1 out with the gloss option.
A small request. Once a background image is selected, there doesn't seem to be a way to get rid of it other than selecting another image. Could you add a "default" or undo option if we don't like the results of the image but don't want to lose the other changes we've made?

Just an option that will go back to the default background images you mean?
I could do that for next version.

Quote:

Originally Posted by ruinit
But if you select the style like "hot" and then chose gloss it allows the font to be gloss.

Yes, that's a bug right now, sorry. For some reason it's not refreshing after a style change. Doing anything like changing a color or even checking/unchecking the "hide carrier" will update the preview with the new style though. I'll have to fix that.
Found it and fixed it. Will be in next version.

omegax 09-10-2007 06:08 PM

Screen Needs to refresh when selecting new dialpad fonts. You took a simple idea and made it awesome. Bravo!

tiermann 09-10-2007 06:52 PM

Update: (b1.1.1)
-Fixed bug where changing style wouldn't update the preview images.
-Added option under "Options->Background" to revert to the default background for the current style.


All times are GMT -4. The time now is 03:59 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0