Skip to content

Instantly share code, notes, and snippets.

@sammarks
Created July 28, 2011 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sammarks/1110897 to your computer and use it in GitHub Desktop.
Save sammarks/1110897 to your computer and use it in GitHub Desktop.
JSGUI Button Styling so far - Looking pretty nice and customizable.
var settings = {
padding: '5px',
backgroundBrush: {
type: 'gradient',
stops: [
{ color: "#EEEEEE", percent: "0" },
{ color: "#CCCCCC", percent: "100" }
]
},
borderBrush: {
type: 'solid',
color: '#999999'
},
foregroundBrush: {
type: 'solid',
color: '#000000'
},
borderThickness: '1px',
fontSize: "15px",
cursor: "pointer",
hoverStyle: {
backgroundBrush: {
type: 'gradient',
stops: [
{ color: "#EEEEEE", percent: '100' },
{ color: "#CCCCCC", percent: '0' }
]
},
borderBrush: {
type: 'solid',
color: "#666666"
}
},
activeStyle: {
backgroundBrush: {
type: 'gradient',
stops: [
{ color: "#DDDDDD", percent: '100' },
{ color: "#BBBBBB", percent: '0' }
]
},
borderBrush: {
type: 'solid',
color: '#333333'
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment