FryGUI

BlitzMax Forums/BlitzMax Programming/FryGUI

Hi fry. I had an idea, whereby you create a Skin than is neutral (greyscale) then by simple changing the colour of all the gadgets you can change the colour of the entire gui without loading a new skin.

I created this function in frygui.bmx:
Function fry_SetGuiColour(col:String="FFFFFF", txtcol:String="000000")
	
	For Local g:fry_TGadget = EachIn fry_GUI.gPanels
		g.HexColour(col)
		g.HexTextColour(txtcol)
	Next 
	
	For Local e:fry_TGadget = EachIn fry_GUI.gExtras
		e.HexColour(col)
		e.HexTextColour(txtcol)
	Next 
	
End Function


Now when I set a new colour scheme with fry_SetGuiColour("00FFFF", "FF00FF") it changes the panel colours as expected but the text and the other gadgets (buttons, combos etc) stay the same...



Any idea why only the panels change?