# nodegui-plugin-style-tweaker

> NodeGui plugin to tweaker a QStyle via proxy

Latest version **0.4.1** (published 2026-02-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install nodegui-plugin-style-tweaker
pnpm add nodegui-plugin-style-tweaker
yarn add nodegui-plugin-style-tweaker
bun add nodegui-plugin-style-tweaker
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.1 |
| Published | 2026-02-14 |
| First published | 2022-08-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 15 KB |
| Known vulnerabilities | 0 (+12 in 1 direct dependencies) |
| Install scripts | yes |
| Author | Simon Edwards |
| Maintainers | sedwards2009 |

## Links

- npm: https://www.npmjs.com/package/nodegui-plugin-style-tweaker
- npm.io page: https://npm.io/package/nodegui-plugin-style-tweaker

## Dependencies (4)

- [tar](https://npm.io/package/tar.md) ^6.0.1
- [node-addon-api](https://npm.io/package/node-addon-api.md) ^8.5.0
- [@nodegui/nodegui](https://npm.io/package/@nodegui/nodegui.md) ^0.74.0
- [@nodegui/artifact-installer](https://npm.io/package/@nodegui/artifact-installer.md) ^1.1.0

## Recent versions

- 0.4.1 (latest) — 2026-02-14
- 0.3.1 — 2022-12-28
- 0.2.1 — 2022-08-17

## README

# nodegui-plugin-style-tweaker

A `QStyle` which acts as a proxy on top of another style and makes it possible to tweak pixel metrics and style hints returned by the base style.


[NodeGui](https://github.com/nodegui/nodegui).

TypeScript example:

```typescript
//...
import {  } from 'nodegui-plugin-style-tweaker';

//...

const style = new StyleTweaker("Windows");
style.setPixelMetric(QStylePixelMetric.PM_SmallIconSize, 20);
st.setStyleHint(0 /* QStyle::SH_EtchDisabledText */, 0);

QApplication.setStyle(style);

```


Install via NPM:

```
npm install nodegui-plugin-style-tweaker
```

For the API see [src/index.ts](src/index.ts)

For a complete demo see [src/demo.ts](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.

---
_Source: https://npm.io/package/nodegui-plugin-style-tweaker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
