KO
|
EN
gitlite — search
Search
#python
#java
#python3
#arduino
#golang
#machine-learning
#rust
#html
#flask
#javascript
#seismology
#nodejs
MacBezel
★ 10
Open GitHub ↗
Mimic the macOS bezel OSD
Download README (.md)
Explore Similar Repositories
World_CO2_Emissions_Forecasting
:
Forecast of World's CO2 Emissions using ARIMA and LSTM Models
miniature-GPT
:
Pytorch implementation of GPT (Generative Pretrained Transformer)
Aveon
:
No description available.
Live-Cyber-Threat-Map
:
No description available.
MTEF-py
:
解析MathType公式,转换为Latex。Decode MathType data to Latex.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
MacBezel
?
Download (.md)
<h1 align="center">MacBezel</h1> <p align="center">Mimic the macOS bezel</p> <p align="center"><img src=".github/screenshot.png" alt="Screenshot" width="450"></p> ## Installation Add the following to your `dependencies` in `Package.swift`: ```swift .package(url: "https://github.com/dimitarnestorov/MacBezel", .upToNextMinor(from: "0.1.0")), ``` ## Usage ```swift import MacBezel Bezel.show(NSImage(named: "done")!, options: [.text: "Done"]) ``` ### Using SF Symbols ```swift import MacBezel let image = NSImage(systemSymbolName: "lock", accessibilityDescription: nil)! .withSymbolConfiguration(.init(pointSize: 500, weight: .medium, scale: .large))! .resizeForBezel() Bezel.show(image, options: [.text: "Locked"]) ``` ## Icon spec Icons should be 174 x 174 points. Icons that will be displayed with the text option should position their content in a 115 x 115 points padded 29.5 points from the left and 43 points from the bottom. For best results use a vector image and set "Render As" to "Template Image". If you want to use an SF Symbol or another icon library MacBezel comes with an extension to `NSImage`: ```swift /// Returns a new NSImage appropriately resized for MacBezel func resizeForBezel() -> NSImage ``` ## Playground [Open with Xcode](https://open-with-xcode.vercel.app/?repo=https%3A%2F%2Fgithub.com%2Fdimitarnestorov%2FMacBezel) (switch the destination to "My Mac")