nodegui-plugin-style-tweaker
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

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.

TypeScript example:

//...
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

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.

Readme

Keywords

none

Package Sidebar

Install

npm i nodegui-plugin-style-tweaker

Weekly Downloads

7

Version

0.3.1

License

MIT

Unpacked Size

15.3 kB

Total Files

14

Last publish

Collaborators

  • sedwards2009