stuff
This commit is contained in:
parent
3235508792
commit
fec881d4a5
|
@ -979,6 +979,11 @@ input[REPLACE_CLASS_input][REPLACE_CLASS_inputerror] {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[REPLACE_CLASS_guildswrapper] [style*="--folder-color"] [REPLACE_CLASS_guildfolderexpandedbackground] {
|
||||||
|
background: var(--folder-color) !important;
|
||||||
|
opacity: 0.2 !important;
|
||||||
|
}
|
||||||
|
|
||||||
[REPLACE_CLASS_svgiconwrapper] {
|
[REPLACE_CLASS_svgiconwrapper] {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
|
@ -261,7 +261,7 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
|
|
||||||
processFolderItemWrapper (e) {
|
processFolderItemWrapper (e) {
|
||||||
if (!e.instance.props.folderNode) return;
|
if (!e.instance.props.folderNode && e.returnvalue.props.style["--folder-color"]) return;
|
||||||
let folderColor = this.settings.general.addFolderColor && BDFDB.LibraryStores.ExpandedGuildFolderStore.isFolderExpanded(e.instance.props.folderNode.id) && (BDFDB.ColorUtils.convert(e.instance.props.folderNode.color, "HEX") || BDFDB.ColorUtils.convert(BDFDB.DiscordConstants.Colors.BRAND, "RGB"));
|
let folderColor = this.settings.general.addFolderColor && BDFDB.LibraryStores.ExpandedGuildFolderStore.isFolderExpanded(e.instance.props.folderNode.id) && (BDFDB.ColorUtils.convert(e.instance.props.folderNode.color, "HEX") || BDFDB.ColorUtils.convert(BDFDB.DiscordConstants.Colors.BRAND, "RGB"));
|
||||||
if (folderColor) e.returnvalue = BDFDB.ReactUtils.createElement("div", {
|
if (folderColor) e.returnvalue = BDFDB.ReactUtils.createElement("div", {
|
||||||
style: {"--folder-color": folderColor},
|
style: {"--folder-color": folderColor},
|
||||||
|
@ -536,10 +536,6 @@ module.exports = (_ => {
|
||||||
width: auto;
|
width: auto;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
}
|
}
|
||||||
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCN.guildswrapper} [style*="--folder-color"] ${BDFDB.dotCN.guildfolderexpandedbackground} {
|
|
||||||
background: var(--folder-color) !important;
|
|
||||||
opacity: 0.2 !important;
|
|
||||||
}
|
|
||||||
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfolderwrapper} [role="group"] {
|
${BDFDB.dotCNS._displayserversaschannelsstyled + BDFDB.dotCNS.guildswrapper + BDFDB.dotCN.guildfolderwrapper} [role="group"] {
|
||||||
height: auto !important;
|
height: auto !important;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue