• Stars
    star
    163
  • Rank 231,141 (Top 5 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 13 years ago
  • Updated over 11 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Cool, glassy iOS buttons with only one color to set.

CoolButtons

CoolButtons is a subclass of UIButton that draws glassy iOS style buttons, all using CoreGraphics and no images.

Button Comparison

Usage

Add the QuartzCore.framework to your project:

# It should be around here somewhere
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/System/Library/Frameworks/QuartzCore.framework

Add the CoolButton.m/.h to your project, create an instance of a CoolButton, then set the buttonColor like so.

[myCoolButton setButtonColor:[UIColor blueColor]];

CoolButton takes care of the rest and draws appropriately shaded drop shadows, gradient, inner shadow, and borders.

Todo

  • Fix the border to be an inner glow for more accuracy to the Apple buttons
  • Add additional button customization to turn on/off the various design elements

Copyright

Copyright (c) 2011 Jess Martin. See LICENSE for details.

More Repositories

1

taskpaper-tmbundle

TextMate bundle for viewing and editing Taskpaper files.
21
star
2

mumblr

Micro-blogging application, powered by WebNative.
TypeScript
18
star
3

noosphere-simulator

Simulator of a Noosphere environment, for learning purposes.
Svelte
7
star
4

standoff-explainer

An explainer for how standoff-based markup works.
Svelte
6
star
5

todo.kanban

Simple kanban view of a markdown-formatted todo file.
Svelte
5
star
6

spotify-new-releases

🎢 Timeline view of new albums by your Spotify-followed artists. 🎢
Ruby
4
star
7

writings

Writings by Jess Martin.
HTML
3
star
8

obsidian-dxos-plugin

Sync Obsidian vault markdown files with DXOS's ECHO data store.
TypeScript
2
star
9

standoff-doc-prototype

TypeScript
2
star
10

habesha-stories

Habeshastories.com
2
star
11

relevance-style

Style experiments for thinkrelevance.com
2
star
12

talks

A collection of all of the talks I've given.
2
star
13

clock-dashboard

A simple Clock + Dashboard built on DXOS.
TypeScript
2
star
14

jessmartdotin-gatsby

Personal website, built in GatsbyJS.
JavaScript
2
star
15

retsly-ruby

A convenient Ruby wrapper for the Rets.ly API.
Ruby
1
star
16

dotfiles

My dotfiles
Shell
1
star
17

mumblr-generator

Generate a simple blog from a set of markdown files stored in IPFS.
CSS
1
star
18

language-popularity

Language Popularity
JavaScript
1
star
19

BasicWebserver

Simple Java web server, from scratch, created during a Livestream.
Java
1
star
20

fission-todo-app

A todo app with storage backed by Fission's IPFS layer.
JavaScript
1
star
21

togo_to_swaziland

Modification of the togo theme for Posterous by Cory Watilo.
1
star
22

medium-mashup

An Innovation Game where you invent a new tool to solve a specific persona's problem using randomly selected mediums and notations.
Svelte
1
star
23

journal

Experimental interface for a new kind of interactive journal.
CSS
1
star
24

neo4j-hack

JavaScript
1
star
25

write-together-meteor

A Google Docs clone implemented using Meteor.
JavaScript
1
star