mirror of
https://github.com/Equicord/Equicord.git
synced 2025-01-31 03:33:36 -05:00
[feat] Add an option to disable the glide plugin theme system (#113)
* Feat: Added an option to disable all recoloring * Fixes --------- Co-authored-by: thororen <78185467+thororen1234@users.noreply.github.com>
This commit is contained in:
parent
5a01fde437
commit
341d04b643
1 changed files with 17 additions and 10 deletions
|
@ -142,6 +142,11 @@ const settings = definePluginSettings({
|
||||||
default: "0.2",
|
default: "0.2",
|
||||||
onChange: injectCSS
|
onChange: injectCSS
|
||||||
},
|
},
|
||||||
|
colorsEnabled: {
|
||||||
|
type: OptionType.BOOLEAN,
|
||||||
|
description: "Whether or not to enable theming",
|
||||||
|
onChange: () => injectCSS()
|
||||||
|
},
|
||||||
ColorPreset: {
|
ColorPreset: {
|
||||||
type: OptionType.SELECT,
|
type: OptionType.SELECT,
|
||||||
description: "Some pre-made color presets (more soon hopefully)",
|
description: "Some pre-made color presets (more soon hopefully)",
|
||||||
|
@ -318,6 +323,7 @@ function getCSS(fontName) {
|
||||||
{
|
{
|
||||||
--animspeed: ${Settings.plugins.Glide.animationSpeed + "s"};
|
--animspeed: ${Settings.plugins.Glide.animationSpeed + "s"};
|
||||||
--font-primary: ${(fontName.length > 0 ? fontName : "Nunito")};
|
--font-primary: ${(fontName.length > 0 ? fontName : "Nunito")};
|
||||||
|
${Settings.plugins.Glide.colorsEnabled ? `
|
||||||
--accent: #${Settings.plugins.Glide.Accent};
|
--accent: #${Settings.plugins.Glide.Accent};
|
||||||
--bgcol: #${Settings.plugins.Glide.Primary};
|
--bgcol: #${Settings.plugins.Glide.Primary};
|
||||||
--text: #${Settings.plugins.Glide.Text};
|
--text: #${Settings.plugins.Glide.Text};
|
||||||
|
@ -325,6 +331,7 @@ function getCSS(fontName) {
|
||||||
--mutedtext: ${mute(Settings.plugins.Glide.Text, 20)};
|
--mutedtext: ${mute(Settings.plugins.Glide.Text, 20)};
|
||||||
--mutedbrand: ${mute(Settings.plugins.Glide.Brand, 10)};
|
--mutedbrand: ${mute(Settings.plugins.Glide.Brand, 10)};
|
||||||
--mutedaccent: ${mute(Settings.plugins.Glide.Accent, 10)};
|
--mutedaccent: ${mute(Settings.plugins.Glide.Accent, 10)};
|
||||||
|
` : ""}
|
||||||
}
|
}
|
||||||
:root
|
:root
|
||||||
{
|
{
|
||||||
|
@ -341,7 +348,7 @@ function getCSS(fontName) {
|
||||||
|
|
||||||
|
|
||||||
/*COLOR ASSIGNING (most of these probably effect more than whats commented)*/
|
/*COLOR ASSIGNING (most of these probably effect more than whats commented)*/
|
||||||
|
${Settings.plugins.Glide.colorsEnabled ? `
|
||||||
/*accent based*/
|
/*accent based*/
|
||||||
|
|
||||||
/*buttons*/
|
/*buttons*/
|
||||||
|
@ -546,7 +553,7 @@ function getCSS(fontName) {
|
||||||
.unread_d8bfb3
|
.unread_d8bfb3
|
||||||
{
|
{
|
||||||
background-color: var(--text) !important;
|
background-color: var(--text) !important;
|
||||||
}
|
}` : ""}
|
||||||
|
|
||||||
/*ROUNDING (rounding)*/
|
/*ROUNDING (rounding)*/
|
||||||
|
|
||||||
|
@ -642,7 +649,7 @@ function getCSS(fontName) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Hide icon on file uploading status*/
|
/*Hide icon on file uploading status*/
|
||||||
.icon_b52bef
|
.icon_f46c86
|
||||||
{
|
{
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue