Mega-Mewthree / BetterDiscordPlugins

Plugins and Libraries for BetterDiscord
MIT License
140 stars 513 forks source link

[TeX] Enhancement: custom font color #115

Open AleFunky opened 3 years ago

AleFunky commented 3 years ago

the default orange is a little weird

shivashranz commented 3 years ago

Yes, would love to know if there is a way to change the default text color in the .js file, since I dunno JS.

zwamdurkel commented 2 years ago

Hi, I figured this out as a workaround if you want to change the default color: Requirements: you need to have node.js installed.

  1. clone/download the repository.
  2. change --text-color: rgb(217, 109, 22); in \Plugins\TeX\src\styles.css to the desired color.
  3. run node build.js in \Plugins\TeX\ .

TeX.plugin.js is now a version of the plugin with a different default color. Place it in your plugins folder.

Why this seemingly more difficult than necessary method: the css is stored in base-64 in the plugin. that's why you can't just edit the plugin file directly, unless you manually decode, edit, then encode the css.

Alternatively, use \color{white} before every latex statement.

NOTE: currently the plugin is broken so this is not very useful atm.