badger 2022.12.6
dotnet add package badger --version 2022.12.6
NuGet\Install-Package badger -Version 2022.12.6
<PackageReference Include="badger" Version="2022.12.6" />
paket add badger --version 2022.12.6
#r "nuget: badger, 2022.12.6"
// Install badger as a Cake Addin #addin nuget:?package=badger&version=2022.12.6 // Install badger as a Cake Tool #tool nuget:?package=badger&version=2022.12.6
<p style="text-align: center"> <img src="Assets/badger.png" title="Badger" alt="Badger"> </p>
Badger
A cross-platform command-line tool that adds labels to your app icon.
Badger is powered by SixLabors.ImageSharp
Installation
macOS
Homebrew
brew tap hex/formulae
brew install badger
Windows
Scoop
scoop bucket add badger https://github.com/hex/Badger
scoop install badger
Options
Option | Description | Default | Format |
---|---|---|---|
--text |
Text to be displayed on the badge | ||
--icon |
Path to the icon file / directory | ||
--font-name |
Name of the font to be used | Arial |
|
--height |
Height as percentage | 20 |
0 - 100 |
--width |
Width as percentage | 100 |
0 - 100 |
--color |
Background color | #4096EE |
|
--opacity |
Opacity | 1 |
0 - 1 |
--text-color |
Text color | #F9F7ED |
|
--text-alignment |
Text alignment | center |
left, center, right |
-r, --angle |
Rotation angle | 0 |
0 - 360 |
-x, --offsetx |
X-axis offset | 0 |
|
-y, --offsety |
Y-axis offset | 0 |
|
--badge-pivot |
Badge pivot point | bottom |
top, left, bottom, right, topLeft, topRight, bottomLeft, bottomRight, center |
--horizontal-padding |
Text horizontal padding | 5 |
|
--vertical-padding |
Text vertical padding | 0 |
|
--horizontal-pivot |
Text horizontal pivot | center |
left, center, right |
--vertical-pivot |
Text vertical pivot | center |
top, center, bottom |
-o, --overwrite |
Replace input icon. WARNING: This will overwrite the input icon | false |
Usage
Examples
<p style="text-align: left"> <img src="Assets/ex1.png" alt="Badger" width="256"> </p>
badger --text ALPHA --icon icon.png --badge-height 25 --angle -45 --horizontal-padding 60 --offsetx 65 --offsety 65
<p style="text-align: left"> <img src="Assets/ex2.png" alt="Badger" width="256"> </p>
badger --text BETA --icon icon.png --color "#FFFD88" --text-color "#C79811" --offsety -25
<p style="text-align: left"> <img src="Assets/ex3.png" alt="Badger" width="256"> </p>
badger --text DEV --icon icon.png --width 50 --color "#363A3D" --text-color "#CDEB8B" --offsety -100 --badge-pivot bottomRight
Usage: badger [options...]
Options:
--text <String> Set badge text (Required)
--icon <String> Icon path.[.png | .jpg | .jpeg | .appiconset] (Required)
--font-name <String> Font name (Default: Arial)
--width <Int32> Badge width in percentage. 0 - 100 (Default: 100)
--height <Int32> Badge height in percentage. 0 - 100 (Default: 20)
--color <String> Set badge background color with a hexadecimal color code (Default: #4096EE)
--opacity <Single> Badge opacity (Default: 1)
--text-color <String> Set badge text color with a hexadecimal color code (Default: #F9F7ED)
--text-alignment <String> Set badge text alignment. left | center | right (Default: center)
-r, --angle <Int32> Set badge rotation (Default: 0)
-x, --offsetx <Int32> Set badge x-axis offset (Default: 0)
-y, --offsety <Int32> Set badge y-axis offset (Default: 0)
--badge-pivot <String> Set badge pivot point. top | left | bottom | right | topLeft | topRight | bottomLeft | bottomRight (Default: bottomLeft)
--horizontal-padding <Int32> Set badge text horizontal padding (Default: 5)
--vertical-padding <Int32> Set badge text vertical padding (Default: 0)
--horizontal-pivot <String> Set badge text horizontal pivot. left | center | right (Default: center)
--vertical-pivot <String> Set badge text vertical pivot. top | center | bottom (Default: center)
-o, --overwrite Replace input icon. WARNING: This will overwrite the input icon. (Optional)
Commands:
help Display help.
version Display version
License
Badger is released under the MIT license. See LICENSE for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- ConsoleAppFramework (>= 4.2.4)
- SixLabors.ImageSharp (>= 2.1.3)
- SixLabors.ImageSharp.Drawing (>= 1.0.0-beta15)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2022.12.6 | 328 | 12/20/2022 |
2022.12.5 | 282 | 12/20/2022 |
2022.12.3 | 138 | 12/16/2022 |
2022.12.2 | 143 | 12/16/2022 |
2022.12.1 | 146 | 12/16/2022 |
2022.12.0 | 142 | 12/16/2022 |
2020.9.3 | 364 | 9/2/2020 |
2020.9.2 | 306 | 9/2/2020 |
2020.9.1 | 284 | 9/2/2020 |
2020.9.0 | 265 | 9/1/2020 |
2020.8.26 | 285 | 8/31/2020 |
2020.8.4 | 331 | 8/31/2020 |
2020.8.0 | 340 | 8/31/2020 |