One of the marginally less-enjoyable bits of making GUI components: reverse-engineering suitable metrics.