DO NOT DEAL WITH THIS MEMBER
Jul 25, 2015 10:33 AM
(This post was last modified: Aug 4, 2015 05:09 AM by Naywyn.)
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
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
Beautiful! It looks amazing! I'll take a crack at justifying the text and adding icons :). Great job Aero!
DO NOT DEAL WITH THIS MEMBER
This looks great, I'm definatly using this for my next program.
Thanks for the great release, keep it up :)
It looks good, Real close to the real image. Keep up the good work
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:
- Your Helpers.RoundRect() method is long and messy, it could be greatly improved by using a GraphicsPath
- 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.
- Dispose of any objects that implement IDisposable, such as fonts, brushes, and pens. Disposing of these objects will save you some RAM.
- 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.
- 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.
- 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!
Theme looks nice. I'd defo implement
Il est vraiment magnifique ton thème !!
Je le mets dans ma galerie à thèmes lol
Damn that looks sexy !!!!
DO NOT DEAL WITH THIS MEMBER
Looks nice, you did a pretty good job. 10/10 would fk. Love the horizontal tabcontrol
DO NOT DEAL WITH THIS MEMBER
(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:
- Your Helpers.RoundRect() method is long and messy, it could be greatly improved by using a GraphicsPath
- 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.
- Dispose of any objects that implement IDisposable, such as fonts, brushes, and pens. Disposing of these objects will save you some RAM.
- 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.
- 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.
- 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. :)
This is fucking awesome. I love it!
looks very nice :) more pls :)
Awesome theme buddy... ;) Keep coding & keep sharing ;)
BTC - bc1q3efew3yzfwhdz290dafykaw0a2w56g2j69g2c6
ETH - 0xf1c873217032468990D3313da6509D1b813c4671
USDT - 0xf1c873217032468990D3313da6509D1b813c4671
PP - [email protected]
Nice theme thanks for sharing,
keep making nice themes 👍.
Great theme man 🙂 Thanks for share
|