https://github.com/sedwards2009/nodegui-plugin-style-tweaker
Plugin for tweaking the values of a QStyle with help from QProxyStyle
https://github.com/sedwards2009/nodegui-plugin-style-tweaker
nodegui plugin
Last synced: 3 months ago
JSON representation
Plugin for tweaking the values of a QStyle with help from QProxyStyle
- Host: GitHub
- URL: https://github.com/sedwards2009/nodegui-plugin-style-tweaker
- Owner: sedwards2009
- License: mit
- Created: 2022-02-28T22:03:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-28T22:43:15.000Z (about 3 years ago)
- Last Synced: 2025-08-24T14:38:55.259Z (5 months ago)
- Topics: nodegui, plugin
- Language: C++
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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
# 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.