0.3.1 • Published 1 year ago

nodegui-plugin-font-icon v0.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

nodegui-plugin-font-icon

Use icon fonts inside QIcon with NodeGui.

TypeScript example:

//...
import { createFontIcon } from 'nodegui-plugin-font-icon';
//...

// Load in our custom icon font
const extraicons = path.join(__dirname, "../resources/extraicons.ttf");
QFontDatabase.addApplicationFont(extraicons);

//...

const button = new QPushButton();
const icon = createFontIcon(font, "\uEA09");  // Pocketknife icon
button.setIcon(icon);
button.setText('Font Icon');

//...

Install via NPM:

npm install nodegui-plugin-font-icon

For the API see src/index.ts

For a complete demo see src/demo.ts

Maintainer

Simon Edwards simon@simonzone.com

License

MIT

Release Process (for maintainers)

  • Make sure the version in package.json is correct.
  • Tag the version with git (format: v1.2.3).
  • Push the tag to origin.
  • Wait for GitHub Action to build and release to NPM.
0.3.1

1 year ago

0.2.3

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.1

2 years ago

0.2.2

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.10

2 years ago

0.2.0

2 years ago

0.1.16

2 years ago

0.1.8

2 years ago

0.1.17

2 years ago

0.1.7

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.9

2 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.2

3 years ago

0.1.0

3 years ago