Skip to content

Instantly share code, notes, and snippets.

@dacap
Last active August 29, 2015 14:15
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 dacap/06b2af2839c31bdab3fb to your computer and use it in GitHub Desktop.
Save dacap/06b2af2839c31bdab3fb to your computer and use it in GitHub Desktop.
tab-text-color: #000000;
tab-background {
slice: sheet.png 0 0 16 16;
}
tab-close-icon {
slice: sheet.png 16 0 16 16;
}
tab {
layer {
image: tab-background;
repeat: x;
}
layer {
x: left;
y: middle;
color: tab-text-color;
}
/* show close icon only if there is enough space */
layer (tab.width > tab-close-icon.width) {
id: close-icon; /* ID to ask for hit-testing */
image: tab-close-icon:
x: right;
y: middle;
margin-right: 8;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment