UNPKG

@dark-engine/platform-desktop

Version:

Dark renderer to desktop platforms like Windows, Linux, macOS via Nodegui and Qt

21 lines (20 loc) 749 B
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); exports.QDarkProgressDialog = exports.ProgressDialog = void 0; const nodegui_1 = require('@nodegui/nodegui'); const core_1 = require('@dark-engine/core'); const factory_1 = require('../factory'); const ProgressDialog = (0, core_1.component)(props => (0, factory_1.qProgressDialog)(props), { displayName: 'ProgressDialog', }); exports.ProgressDialog = ProgressDialog; class QDarkProgressDialog extends nodegui_1.QProgressDialog { setOpen(value) { value ? this.show() : this.close(); } setProgressRange(value) { this.setRange(value.minimum, value.maximum); } } exports.QDarkProgressDialog = QDarkProgressDialog; //# sourceMappingURL=progress-dialog.js.map