Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Devdocs Desktop | 2,993 | 2 years ago | 81 | mit | JavaScript | |||||
🗂 A full-featured desktop app for DevDocs.io. | ||||||||||
Predawn | 1,843 | 5 years ago | 17 | mit | CSS | |||||
Predawn is a dark interface and syntax theme for Sublime Text and Atom. | ||||||||||
Macos Enterprise Privileges | 1,122 | 23 days ago | 28 | apache-2.0 | Objective-C | |||||
For Mac users in an Enterprise environment, this app gives the User control over administration of their machine by elevating their level of access to Administrator privileges on macOS. Users can set the time frame using Preferences to perform specific tasks such as install or remove an application. | ||||||||||
Dockprogress | 1,114 | 20 days ago | 7 | December 01, 2020 | 3 | mit | Swift | |||
Show progress in your app's Dock icon | ||||||||||
Yaru Colors | 473 | 2 years ago | 15 | gpl-3.0 | CSS | |||||
A fork of Ubuntu's Yaru theme - in different colors | ||||||||||
Dotfiles | 416 | 3 | 2 | 6 years ago | 12 | April 03, 2015 | 5 | other | Shell | |
[DEPRECATED] The first JavaScript-based dotfiles powered by Grunt. | ||||||||||
Flat.icns | 404 | 5 years ago | 91 | Shell | ||||||
A flat icon set for OS X | ||||||||||
Afloatx | 272 | a month ago | 11 | Objective-C | ||||||
An alternative to Afloat that lives in the dock icon menu | ||||||||||
Sublime Text Icon | 152 | 7 years ago | 3 | |||||||
A replacement icon for Sublime Text 2 and Sublime Text 3 | ||||||||||
Winc | 149 | a month ago | 8 | mit | Go | |||||
Common library for Go GUI apps on Windows |
Show progress in your app's Dock icon
macOS 10.15+
Add https://github.com/sindresorhus/DockProgress
in the Swift Package Manager tab in Xcode.
Latest version: 4.2.2
import DockProgress
foo.onUpdate = { progress in
DockProgress.progress = progress
}
Progress
instance
import Foundation
import DockProgress
let progress = Progress(totalUnitCount: 1)
progress?.becomeCurrent(withPendingUnitCount: 1)
DockProgress.progressInstance = progress
The given Progress
instance is weakly stored. It's up to you to retain it.
It comes with five styles. PR welcome for more.
Check out the example app in the Xcode project.
You can also draw a custom progress with .custom(drawHandler: (_ rect: CGRect) -> Void)
.
import DockProgress
DockProgress.style = .bar
This is the default.
import DockProgress
DockProgress.style = .squircle(color: .white.withAlphaComponent(0.5))
By default, it should perfectly fit a macOS 11 and later icon, but there is an inset
parameter if you need to make any adjustments.
import DockProgress
DockProgress.style = .circle(radius: 55, color: .systemBlue)
import DockProgress
DockProgress.style = .badge(color: .systemBlue, badgeValue: { getDownloadCount() })
Large badgeValue
numbers will be written in kilo short notation, for example, 1012
1k
.
Note: The badgeValue
is not meant to be used as a numeric percentage. It's for things like count of downloads, number of files being converted, etc.
import DockProgress
DockProgress.style = .pie(color: .systemBlue)