This commit is contained in:
Mirco Wittrien 2020-12-22 17:41:09 +01:00
parent bb4549a85d
commit 6c84a79c88
2 changed files with 6 additions and 6 deletions

View File

@ -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);

View File

@ -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);