stuff
This commit is contained in:
parent
66930c3eb7
commit
226bf56531
|
@ -5749,9 +5749,9 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins || {}, cleanUps: BDFDB && BDFDB
|
||||||
align: LibraryComponents.Flex.Align.CENTER,
|
align: LibraryComponents.Flex.Align.CENTER,
|
||||||
children: [
|
children: [
|
||||||
BDFDB.ReactUtils.createElement(LibraryComponents.Flex.Child, {
|
BDFDB.ReactUtils.createElement(LibraryComponents.Flex.Child, {
|
||||||
children: BDFDB.ReactUtils.createElement("label", {
|
children: BDFDB.ReactUtils.createElement(LibraryComponents.SettingsLabel, {
|
||||||
className: this.props.mini ? BDFDB.disCN.titlemini : BDFDB.disCN.titledefault,
|
mini: this.props.mini,
|
||||||
children: this.props.label
|
label: this.props.label
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
(BDFDB.ArrayUtils.is(this.props.labelchildren) ? this.props.labelchildren : Array.of(this.props.labelchildren)).filter(n => BDFDB.ReactUtils.isValidElement(n)),
|
(BDFDB.ArrayUtils.is(this.props.labelchildren) ? this.props.labelchildren : Array.of(this.props.labelchildren)).filter(n => BDFDB.ReactUtils.isValidElement(n)),
|
||||||
|
@ -5779,6 +5779,14 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins || {}, cleanUps: BDFDB && BDFDB
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} : undefined;
|
} : undefined;
|
||||||
|
LibraryComponents.SettingsLabel = reactInitialized ? class BDFDB_SettingsLabel extends LibraryModules.React.Component {
|
||||||
|
render() {
|
||||||
|
return BDFDB.ReactUtils.createElement("label", {
|
||||||
|
className: [this.props.mini ? BDFDB.disCN.titlemini : BDFDB.disCN.titledefault, BDFDB.disCN.cursordefault].filter(n => n).join(" "),
|
||||||
|
children: this.props.label
|
||||||
|
});
|
||||||
|
}
|
||||||
|
} : undefined;
|
||||||
LibraryComponents.SettingsSwitch = reactInitialized ? class BDFDB_SettingsSwitch extends LibraryModules.React.Component {
|
LibraryComponents.SettingsSwitch = reactInitialized ? class BDFDB_SettingsSwitch extends LibraryModules.React.Component {
|
||||||
saveSettings(value) {
|
saveSettings(value) {
|
||||||
if (typeof this.props.onChange == "function") this.props.onChange(value, this);
|
if (typeof this.props.onChange == "function") this.props.onChange(value, this);
|
||||||
|
@ -5809,6 +5817,11 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins || {}, cleanUps: BDFDB && BDFDB
|
||||||
if (typeof this.props.onChange == "function") this.props.onChange(!this.props.value, this);
|
if (typeof this.props.onChange == "function") this.props.onChange(!this.props.value, this);
|
||||||
this.props.value = !this.props.value;
|
this.props.value = !this.props.value;
|
||||||
BDFDB.ReactUtils.forceUpdate(this);
|
BDFDB.ReactUtils.forceUpdate(this);
|
||||||
|
if (!this.patched) {
|
||||||
|
this.patched = true;
|
||||||
|
let switchele = BDFDB.ReactUtils.findDOMNode(this);
|
||||||
|
if (switchele && BDFDB.DOMUtils.getParent(BDFDB.dotCNS.itemlayer + BDFDB.dotCN.popout, switchele)) switchele.addEventListener("click", this.handleChange.bind(this));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
return BDFDB.ReactUtils.createElement(NativeSubComponents.Switch, Object.assign({}, this.props, {onChange: this.handleChange.bind(this)}));
|
return BDFDB.ReactUtils.createElement(NativeSubComponents.Switch, Object.assign({}, this.props, {onChange: this.handleChange.bind(this)}));
|
||||||
|
@ -6270,12 +6283,18 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins || {}, cleanUps: BDFDB && BDFDB
|
||||||
${BDFDB.dotCN.popoutcontainer} {
|
${BDFDB.dotCN.popoutcontainer} {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
${BDFDB.dotCN.favbuttoncontainer} {
|
${BDFDB.dotCN.favbuttoncontainer} {
|
||||||
display: flex !important;
|
display: flex !important;
|
||||||
position: relative !important;
|
position: relative !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
${BDFDB.dotCN.cursordefault} {
|
||||||
|
cursor: default !important;
|
||||||
|
}
|
||||||
|
${BDFDB.dotCN.cursorpointer} {
|
||||||
|
cursor: pointer !important;
|
||||||
|
}
|
||||||
|
|
||||||
${BDFDB.dotCN.selectwrap} > [class*="css-"][class*="-container"] > [class*="css-"][class*="-menu"] {
|
${BDFDB.dotCN.selectwrap} > [class*="css-"][class*="-container"] > [class*="css-"][class*="-menu"] {
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
|
@ -6484,10 +6503,6 @@ var BDFDB = {myPlugins: BDFDB && BDFDB.myPlugins || {}, cleanUps: BDFDB && BDFDB
|
||||||
position: relative !important;
|
position: relative !important;
|
||||||
width: auto !important;
|
width: auto !important;
|
||||||
}
|
}
|
||||||
.BDFDB-modal ${BDFDB.dotCN.title + BDFDB.notCN.cursorpointer},
|
|
||||||
.BDFDB-settings ${BDFDB.dotCN.title + BDFDB.notCN.cursorpointer} {
|
|
||||||
cursor: default !important;
|
|
||||||
}
|
|
||||||
.BDFDB-modal .BDFDB-settings-inner .BDFDB-containertext,
|
.BDFDB-modal .BDFDB-settings-inner .BDFDB-containertext,
|
||||||
.BDFDB-settings .BDFDB-settings-inner .BDFDB-containertext {
|
.BDFDB-settings .BDFDB-settings-inner .BDFDB-containertext {
|
||||||
margin-left: -18px;
|
margin-left: -18px;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue