viktor-shmigol / electron-windows-badge

Electron Windows Badge plugin to access and modify the badge number of the app icon in windows.
MIT License
81 stars 22 forks source link

How to personalize well the badge ? #8

Closed Aarbel closed 5 years ago

Aarbel commented 5 years ago

Thank you @viktor-shmigol for your work !

What's the best way to personalize the style of the badge ?

Tried to use the options, but the badge becomes blurred with all kind of options. Could yo give us different types of options, and the visual result ? In my case i just tried to make the same badge as Slack app for windows, so little bit smaller and light font.

Thanks a lot for your help !

viktor-shmigol commented 5 years ago

@Aarbel Hello, You could use badge options for it. Please take a look at https://github.com/viktor-shmigol/electron-windows-badge#api

E.g:

    function createWindow () {
        win = new BrowserWindow({width: 800, height: 600});
        const badgeOptions = {fontColor: '#f5e942', color: '#c242f5'};
        new Badge(win, badgeOptions);
    }
Aarbel commented 5 years ago

@viktor-shmigol yes i used them, but the result is everytime ugly

ghost commented 3 years ago

@Aarbel Even I face the same issue. Did u get any solution?