diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-02 01:56:59 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2010-12-02 03:48:54 -0800 |
commit | f79c810d4bccd40bc7abd095a0306d6626a8db8f (patch) | |
tree | 6d335f31903e3f828db8e6c47fb6e667abf6904a | |
parent | 958ded7e72adfd81ecf4db8565429c40fbe02b40 (diff) |
Use high-resolution icons for purpose badges.
-rw-r--r-- | MobileCydia.app/Purposes/commercial.png | bin | 789 -> 2379 bytes | |||
-rw-r--r-- | MobileCydia.app/Purposes/console.png | bin | 3264 -> 1225 bytes | |||
-rw-r--r-- | MobileCydia.app/Purposes/daemon.png | bin | 3467 -> 2133 bytes | |||
-rw-r--r-- | MobileCydia.app/Purposes/extension.png | bin | 3423 -> 1596 bytes | |||
-rw-r--r-- | MobileCydia.app/Purposes/library.png | bin | 3580 -> 2277 bytes | |||
-rw-r--r-- | MobileCydia.app/Purposes/uikit.png | bin | 880 -> 2214 bytes | |||
-rw-r--r-- | MobileCydia.app/Purposes/x.png | bin | 3425 -> 1846 bytes | |||
-rw-r--r-- | MobileCydia.mm | 14 |
8 files changed, 9 insertions, 5 deletions
diff --git a/MobileCydia.app/Purposes/commercial.png b/MobileCydia.app/Purposes/commercial.png Binary files differindex ba66d4b..9c411cc 100644 --- a/MobileCydia.app/Purposes/commercial.png +++ b/MobileCydia.app/Purposes/commercial.png diff --git a/MobileCydia.app/Purposes/console.png b/MobileCydia.app/Purposes/console.png Binary files differindex 48f7e88..08d1869 100644 --- a/MobileCydia.app/Purposes/console.png +++ b/MobileCydia.app/Purposes/console.png diff --git a/MobileCydia.app/Purposes/daemon.png b/MobileCydia.app/Purposes/daemon.png Binary files differindex 4593ee8..896c9be 100644 --- a/MobileCydia.app/Purposes/daemon.png +++ b/MobileCydia.app/Purposes/daemon.png diff --git a/MobileCydia.app/Purposes/extension.png b/MobileCydia.app/Purposes/extension.png Binary files differindex e7025b4..59e051b 100644 --- a/MobileCydia.app/Purposes/extension.png +++ b/MobileCydia.app/Purposes/extension.png diff --git a/MobileCydia.app/Purposes/library.png b/MobileCydia.app/Purposes/library.png Binary files differindex 3bcbc04..e275e06 100644 --- a/MobileCydia.app/Purposes/library.png +++ b/MobileCydia.app/Purposes/library.png diff --git a/MobileCydia.app/Purposes/uikit.png b/MobileCydia.app/Purposes/uikit.png Binary files differindex 2141d72..694107f 100644 --- a/MobileCydia.app/Purposes/uikit.png +++ b/MobileCydia.app/Purposes/uikit.png diff --git a/MobileCydia.app/Purposes/x.png b/MobileCydia.app/Purposes/x.png Binary files differindex 0b24b74..2feac90 100644 --- a/MobileCydia.app/Purposes/x.png +++ b/MobileCydia.app/Purposes/x.png diff --git a/MobileCydia.mm b/MobileCydia.mm index f113a80..7b4b70f 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -4912,12 +4912,16 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } if (badge_ != nil) { - CGSize size = [badge_ size]; + CGRect rect; + rect.size = [badge_ size]; + + rect.size.width /= 2; + rect.size.height /= 2; + + rect.origin.x = 36 - rect.size.width / 2; + rect.origin.y = 36 - rect.size.height / 2; - [badge_ drawAtPoint:CGPointMake( - 36 - size.width / 2, - 36 - size.height / 2 - )]; + [badge_ drawInRect:rect]; } if (highlighted) |