Derma Color/Paint

Okay im getting really tied of looking at the “standard” gray derma menu i have so i was wondering if i
could paint/color it? ive looked at these things:

Derma.DefineSkin
Panel.SetSkin
Custom_VGUI

But nothing really worked. So can i just paint/color the currently derma i have and how?. Or do i have to make a whole new vgui for just paint/coloring it?

[lua]local Frame = vgui.Create( “DFrame” )
Frame:SetPos( 50, 50 )
Frame:SetSize( 850, 600 )
Frame:SetTitle( gmod.GetGamemode().Name … " : " … game.GetMap() )
Frame:SetVisible( true )
Frame:SetDraggable( false )
Frame:ShowCloseButton( true )
Frame.Paint = function()
surface.SetDrawColor( 50, 50, 50, 255 )
surface.DrawRect( 0, 0, Frame:GetWide(), Frame:GetTall() )
surface.SetDrawColor( 255, 255, 255, 255 )
surface.DrawOutlinedRect( 0, 0, Frame:GetWide(), Frame:GetTall() )
end
Frame:MakePopup()
[/lua]

For example

Okay thanks, i will try working with that.

Okay, it works but im trying to paint a button and it gets painted but i wanna make so when you hold your
mouse on it its color get lighter and when you click the button it changes color. like the “standard” derma
colors do. Can anybody help me with this? ive looked at this
**[DButton.Paint

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=DButton.Paint)** but it seems to be the same as above.

**[DButton.OnMousePressed

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=DButton.OnMousePressed)**
Look at the examples and explanations in that example.

**[DLabel.OnCursorEntered

http://wiki.garrysmod.com/favicon.ico](http://wiki.garrysmod.com/?title=DLabel.OnCursorEntered)**
Look at that for changing the color of the button when you hover over it. That example kills the player, but you can use the same concept as the example from OnMousePressed. If you need help, please say so.

Thanks it looks like something i can use :).

I don’t really want to make a whole new thread for this so i will post it here.

Is there a invisible color? if so what is the code.

EDIT: Found it ( 0, 0, 0, 0 )

Just an FYI It can be anything;

0, 55, 250, 0
232, 1, 113, 0

As long as the alpha (The last digit (4th), is 0, it will be invisible.