Hack Forums
[.NET] Firefox Theme [10 controls - VB / C#] [Update 29/07 (2)] - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] Firefox Theme [10 controls - VB / C#] [Update 29/07 (2)] (/showthread.php?tid=4921618)

Pages: Pages 1 2 3 4


Firefox Theme [10 controls - VB / C#] [Update 29/07 (2)] - Naywyn - Jul 25, 2015

Hello HF, SharpSource requested someone to create a firefox settings theme, so I made it. Here is my new theme : Firefox. There are properties to turn checkboxes texts to bold, and to disable controls. Credits are in the pastebin link.
It's one of my biggest theme. Request thread

Updates



29/07 (2)
  • Textboxes may be correctly disabled in designer.

  • FirefoxNumericUpDown control has been added.

  • NumericUpDown can be disabled.

  • Textboxes forecolor is now updated when disabled.



29/07 (1)
  • Pens and brushes are now disposed.

  • TabControl text drawing is now aligned.

  • TabControl is now supporting images.

  • FirefoxH1 is now inheriting of Label.

  • High quality drawing on FirefoxMainTabControl.

  • Radiobuttons can't be unchecked.

  • When a Radiobutton is checked, the other one in the parent are automaticaly unchecked.



Preview



[Image: xcd0Llh.png]
[Image: rxwyR39.png]
[Image: jzPgjVY.png]

ImageList TabControl



- Add an ImageList from the toolbox to your projet.
- Add all images that you want in ImageList.
- Click on your FirefoxMainTabControl, and link your ImageList to it.
- Go in the wanted tabpage properties.
- Modify the ImageIndex property.
- Profit.

This is the website I'm using in the preview of the theme : http://www.iconsdb.com/
Download the images in 32x32px.
Custom color : D6D6D6.

Link



VB.NET
Pastebin

C# ( thanks a lot LaPanthere )
Pastebin


* - WhyWork - Jul 25, 2015

Beautiful! It looks amazing! I'll take a crack at justifying the text and adding icons :). Great job Aero!


* - LilDurk - Jul 25, 2015

This looks great, I'm definatly using this for my next program.
Thanks for the great release, keep it up :)


* - Geekie - Jul 25, 2015

It looks good, Real close to the real image. Keep up the good work


* - Hawk HF - Jul 25, 2015

Excellent. Your work is always improving.

The visual quality of your themes are excellent, but I think you should take some time to work on your code.

From what I can see, your Helpers module consists mostly of snippets from other users here, including me. I see it in your controls as well. I appreciate that you're giving credits, but I honestly believe you're at the point in GDI where you should be able to code your own methods and functions.

I noticed a few things that you might want to fix:
  1. Your Helpers.RoundRect() method is long and messy, it could be greatly improved by using a GraphicsPath

  2. Declarations inside the paint event are a bad habit. Basically, every time you paint your control, you're redeclaring those objects. Place your declarations in the class scope and assign their values where you need them.

  3. Dispose of any objects that implement IDisposable, such as fonts, brushes, and pens. Disposing of these objects will save you some RAM.

  4. I noticed you had two separate controls for your headers. One inherits from Control while the other inherits from Label. Inheriting from Label is probably your best option here. I don't think you really need two separate controls.

  5. I see you've made an extra property called Enable in your controls. A better option would be to overload the Enabled property. This way you don't have two very similar properties.

  6. In your tab control, you're setting the backcolor of your tabs in the OnPaint() event. This is processor intensive. Use the OnControlAdded() method instead.



These are just a few things I found while skimming through your source.
Hopefully you take some time to improve upon some of these areas.

Good work and keep it up!


* - +Haze - Jul 25, 2015

Theme looks nice. I'd defo implement


* - MrHacker.Pcsq - Jul 25, 2015

Il est vraiment magnifique ton thème !!
Je le mets dans ma galerie à thèmes lol


* - Konstantinos - Jul 25, 2015

Damn that looks sexy !!!!


* - SIM-1847363 - Jul 25, 2015

Looks nice, you did a pretty good job. 10/10 would fk. Love the horizontal tabcontrol


* - Naywyn - Jul 25, 2015

(Jul 25, 2015 12:30 PM)Hawk HF Wrote:  Excellent. Your work is always improving.

The visual quality of your themes are excellent, but I think you should take some time to work on your code.

From what I can see, your Helpers module consists mostly of snippets from other users here, including me. I see it in your controls as well. I appreciate that you're giving credits, but I honestly believe you're at the point in GDI where you should be able to code your own methods and functions.

I noticed a few things that you might want to fix:
  1. Your Helpers.RoundRect() method is long and messy, it could be greatly improved by using a GraphicsPath

  2. Declarations inside the paint event are a bad habit. Basically, every time you paint your control, you're redeclaring those objects. Place your declarations in the class scope and assign their values where you need them.

  3. Dispose of any objects that implement IDisposable, such as fonts, brushes, and pens. Disposing of these objects will save you some RAM.

  4. I noticed you had two separate controls for your headers. One inherits from Control while the other inherits from Label. Inheriting from Label is probably your best option here. I don't think you really need two separate controls.

  5. I see you've made an extra property called Enable in your controls. A better option would be to overload the Enabled property. This way you don't have two very similar properties.

  6. In your tab control, you're setting the backcolor of your tabs in the OnPaint() event. This is processor intensive. Use the OnControlAdded() method instead.



These are just a few things I found while skimming through your source.
Hopefully you take some time to improve upon some of these areas.

Good work and keep it up!

Thanks mate for all these advices, indeed, I'll try to work more on my code. As for the " roundrect " function I'll need to learn how to use graphic paths. Otherwise, I'm glad you like it. :)


* - Delirium™ - Jul 25, 2015

This is fucking awesome. I love it!


* - clyy - Jul 25, 2015

looks very nice :) more pls :)


* - SaketSaket - Jul 26, 2015

Awesome theme buddy... ;) Keep coding & keep sharing ;)


* - Adderall - Jul 26, 2015

Nice theme thanks for sharing,
keep making nice themes 👍.


* - iLogic™ - Jul 26, 2015

Great theme man 🙂 Thanks for share