stuff
This commit is contained in:
parent
bb4549a85d
commit
6c84a79c88
|
@ -89,7 +89,7 @@ module.exports = (_ => {
|
||||||
},
|
},
|
||||||
DOWNLOADABLE: {
|
DOWNLOADABLE: {
|
||||||
colorClass: "BRAND",
|
colorClass: "BRAND",
|
||||||
backgroundColor: "BRAND",
|
backgroundColor: "var(--bdfdb-blurple)",
|
||||||
icon: "DOWNLOAD",
|
icon: "DOWNLOAD",
|
||||||
text: "Download"
|
text: "Download"
|
||||||
}
|
}
|
||||||
|
@ -330,7 +330,7 @@ module.exports = (_ => {
|
||||||
text: buttonConfig.text,
|
text: buttonConfig.text,
|
||||||
children: BDFDB.ReactUtils.createElement("div", {
|
children: BDFDB.ReactUtils.createElement("div", {
|
||||||
className: BDFDB.disCNS._repobutton + BDFDB.disCN._repocontrolsbutton,
|
className: BDFDB.disCNS._repobutton + BDFDB.disCN._repocontrolsbutton,
|
||||||
style: {backgroundColor: BDFDB.DiscordConstants.Colors[buttonConfig.backgroundColor]},
|
style: {backgroundColor: BDFDB.DiscordConstants.Colors[buttonConfig.backgroundColor] || buttonConfig.backgroundColor},
|
||||||
onClick: _ => {
|
onClick: _ => {
|
||||||
_this.downloadPlugin(this.props.plugin);
|
_this.downloadPlugin(this.props.plugin);
|
||||||
if (list && list.props.rnmStart) BDFDB.TimeUtils.timeout(_ => {
|
if (list && list.props.rnmStart) BDFDB.TimeUtils.timeout(_ => {
|
||||||
|
@ -368,7 +368,7 @@ module.exports = (_ => {
|
||||||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
|
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
|
||||||
size: BDFDB.LibraryComponents.Button.Sizes.MIN,
|
size: BDFDB.LibraryComponents.Button.Sizes.MIN,
|
||||||
color: BDFDB.LibraryComponents.Button.Colors[buttonConfig.colorClass],
|
color: BDFDB.LibraryComponents.Button.Colors[buttonConfig.colorClass],
|
||||||
style: {backgroundColor: BDFDB.DiscordConstants.Colors[buttonConfig.backgroundColor]},
|
style: {backgroundColor: BDFDB.DiscordConstants.Colors[buttonConfig.backgroundColor] || buttonConfig.backgroundColor},
|
||||||
children: buttonConfig.text,
|
children: buttonConfig.text,
|
||||||
onClick: (e, instance) => {
|
onClick: (e, instance) => {
|
||||||
_this.downloadPlugin(this.props.plugin);
|
_this.downloadPlugin(this.props.plugin);
|
||||||
|
|
|
@ -89,7 +89,7 @@ module.exports = (_ => {
|
||||||
},
|
},
|
||||||
DOWNLOADABLE: {
|
DOWNLOADABLE: {
|
||||||
colorClass: "BRAND",
|
colorClass: "BRAND",
|
||||||
backgroundColor: "BRAND",
|
backgroundColor: "var(--bdfdb-blurple)",
|
||||||
icon: "DOWNLOAD",
|
icon: "DOWNLOAD",
|
||||||
text: "Download"
|
text: "Download"
|
||||||
}
|
}
|
||||||
|
@ -622,7 +622,7 @@ module.exports = (_ => {
|
||||||
text: buttonConfig.text,
|
text: buttonConfig.text,
|
||||||
children: BDFDB.ReactUtils.createElement("div", {
|
children: BDFDB.ReactUtils.createElement("div", {
|
||||||
className: BDFDB.disCNS._repobutton + BDFDB.disCN._repocontrolsbutton,
|
className: BDFDB.disCNS._repobutton + BDFDB.disCN._repocontrolsbutton,
|
||||||
style: {backgroundColor: BDFDB.DiscordConstants.Colors[buttonConfig.backgroundColor]},
|
style: {backgroundColor: BDFDB.DiscordConstants.Colors[buttonConfig.backgroundColor] || buttonConfig.backgroundColor},
|
||||||
onClick: _ => {
|
onClick: _ => {
|
||||||
_this.downloadTheme(this.props.theme);
|
_this.downloadTheme(this.props.theme);
|
||||||
if (list && list.props.rnmStart) BDFDB.TimeUtils.timeout(_ => {
|
if (list && list.props.rnmStart) BDFDB.TimeUtils.timeout(_ => {
|
||||||
|
@ -660,7 +660,7 @@ module.exports = (_ => {
|
||||||
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
|
BDFDB.ReactUtils.createElement(BDFDB.LibraryComponents.Button, {
|
||||||
size: BDFDB.LibraryComponents.Button.Sizes.MIN,
|
size: BDFDB.LibraryComponents.Button.Sizes.MIN,
|
||||||
color: BDFDB.LibraryComponents.Button.Colors[buttonConfig.colorClass],
|
color: BDFDB.LibraryComponents.Button.Colors[buttonConfig.colorClass],
|
||||||
style: {backgroundColor: BDFDB.DiscordConstants.Colors[buttonConfig.backgroundColor]},
|
style: {backgroundColor: BDFDB.DiscordConstants.Colors[buttonConfig.backgroundColor] || buttonConfig.backgroundColor},
|
||||||
children: buttonConfig.text,
|
children: buttonConfig.text,
|
||||||
onClick: (e, instance) => {
|
onClick: (e, instance) => {
|
||||||
_this.downloadTheme(this.props.theme);
|
_this.downloadTheme(this.props.theme);
|
||||||
|
|
Loading…
Reference in New Issue