All Projects β†’ viktor-shmigol β†’ electron-windows-badge

viktor-shmigol / electron-windows-badge

Licence: MIT license
Electron Windows Badge plugin to access and modify the badge number of the app icon in windows.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to electron-windows-badge

Badge42
πŸš€ Dynamically generated 42 badge for your git readmes.
Stars: ✭ 103 (+45.07%)
Mutual labels:  badge
Ci Buildstats
Little widget to display AppVeyor, TravisCI, CircleCI, GitHub Actions or Azure Pipelines build history charts and other SVG badges.
Stars: ✭ 134 (+88.73%)
Mutual labels:  badge
Contrast Swatch
πŸ…°οΈ Image microservice for color contrast information
Stars: ✭ 210 (+195.77%)
Mutual labels:  badge
Tdbadgedcell
TDBadgedCell is a table view cell class that adds a badge, similar to the badges in Apple's own apps
Stars: ✭ 1,444 (+1933.8%)
Mutual labels:  badge
Console Badge
🎨 Create simple badges in the browser console
Stars: ✭ 130 (+83.1%)
Mutual labels:  badge
Badges
🎴 Standard and acceptable badges list
Stars: ✭ 165 (+132.39%)
Mutual labels:  badge
Uitabbaritem Custombadge
UITabBarItem+CustomBadge is a workaround to change the aspect of IOS UIBadgeView
Stars: ✭ 84 (+18.31%)
Mutual labels:  badge
BadgesGenerator
A Swift playground to automatically generate personalized conference badges.
Stars: ✭ 36 (-49.3%)
Mutual labels:  badge
Github Actions Badge
πŸ›‘ Shields.io Badge for your GitHub Actions
Stars: ✭ 131 (+84.51%)
Mutual labels:  badge
Shields
Concise, consistent, and legible badges in SVG and raster format
Stars: ✭ 15,716 (+22035.21%)
Mutual labels:  badge
Badger
Badge for R Package
Stars: ✭ 114 (+60.56%)
Mutual labels:  badge
Php badge
This is an identification tag based on SVG, It can quickly generate various labels and status identifiers
Stars: ✭ 101 (+42.25%)
Mutual labels:  badge
Fastlane Plugin Badge
The fastlane plugin for badge
Stars: ✭ 174 (+145.07%)
Mutual labels:  badge
Qualinsight Plugins Sonarqube Badges
Plugin for SonarQube that generates badges displaying information about a project's or view's quality.
Stars: ✭ 108 (+52.11%)
Mutual labels:  badge
Bgabadgeview Android
Android 徽章控仢
Stars: ✭ 2,561 (+3507.04%)
Mutual labels:  badge
Materialbadgetextview
As the name describes, this is an Android library that you can use to show new messages badge and new features badge.
Stars: ✭ 1,331 (+1774.65%)
Mutual labels:  badge
Google Play Badge Svg
Hosting for localized versions of Google Play badges in SVG format.
Stars: ✭ 137 (+92.96%)
Mutual labels:  badge
octocov
octocov is a toolkit for collecting code metrics (code coverage, code to test ratio and test execution time).
Stars: ✭ 191 (+169.01%)
Mutual labels:  badge
Teaset
A UI library for react native, provides 20+ pure JS(ES6) components, focusing on content display and action control.
Stars: ✭ 2,845 (+3907.04%)
Mutual labels:  badge
Flutter app badger
Support to update the app badge on the launcher (both for Android and iOS)
Stars: ✭ 191 (+169.01%)
Mutual labels:  badge

Electron Windows Badge

Electron Windows Badge plugin to access and modify the badge number of the app icon in windows.

demo

Installation

$ npm i electron-windows-badge --save

Usage

1) Require electron-windows-badge in your main process:
    const Badge = require('electron-windows-badge');

2) Initialize new object of badge while creating window:
    function createWindow () {
        win = new BrowserWindow({width: 800, height: 600});
        const badgeOptions = {}
        new Badge(win, badgeOptions);
    }

3) To update the badge you just need to call this(you must do it in render process):
    ipcRenderer.sendSync('update-badge', 1);

4) To remove badge just call this(you must do it in render process):
    ipcRenderer.sendSync('update-badge', null);

API

Badge options

Option Name Default Value Description
fontColor 'white' Font color
font '24px arial' Font style
color 'red' The color of badge
fit true Be sure that your number will be fit into badge
decimals 0 Numbers after dot (For float numbers)
radius 8 The radius of badge

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].