diff --git a/moduleWrappers/powercord/components/settings/sliderInput.js b/moduleWrappers/powercord/components/settings/sliderInput.js new file mode 100644 index 0000000..c244065 --- /dev/null +++ b/moduleWrappers/powercord/components/settings/sliderInput.js @@ -0,0 +1,25 @@ +const { React } = goosemodScope.webpackModules.common; + +import FormItem from './formItem'; + +const OriginalSlider = goosemodScope.webpackModules.findByDisplayName('Slider'); +const Margins = goosemodScope.webpackModules.findByProps('marginTop20', 'marginBottom20'); + +export default class TextInput extends React.PureComponent { + render() { + const title = this.props.children; + delete this.props.children; + + return React.createElement(FormItem, { + title, + note: this.props.note, + required: this.props.required + }, + + React.createElement(OriginalSlider, { + ...this.props, + className: Margins.marginTop20 + (this.props.className ? (' ' + this.props.className) : '') + }) + ); + } +} \ No newline at end of file