Skip to content
This repository was archived by the owner on Jun 9, 2022. It is now read-only.

Commit 3b70d21

Browse files
committed
v2.2.6
1 parent 218501c commit 3b70d21

21 files changed

+336
-466
lines changed

CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
1+
# v2.2.6
2+
Some minor adjustments / changes.
3+
- Repo has been completely redone.
4+
- New README & assets.
5+
- File structure has been redone.
6+
- Now using `@forward` and `@use` instead of `@import`.
7+
- BetterDiscord & Web versions now use an import.
8+
- Some variable changes, you will probably need to reinstall.
9+
110
# v2.2.5
211
Some enhancement updates by making the code more simpler. Removed a decent amount of lines doing this, now lets hope that nothing breaks..
312

413
# v2.2.4
5-
For better maintaibility as well as more support, I have done an even better SCSS recode!!! YAY!!! fuck. Anyways, some other changes are:
14+
Some minor additions and adjustments / changes.
615
- Added support for BetterDiscord, Vizlaity and Web.
716
- Cleaner sorted code.
817
- A bit more cusomtization, as well as made it easier to disable transitions.

README.md

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,43 @@
11
![Banner](./assets/banner.png)
2-
<p align="center">
3-
<a href="#"><img align="center" alt="GitHub repo size" src="https://img.shields.io/github/repo-size/Discord-Theme-Addons/gradientbuttons-v2?color=D577F0&style=for-the-badge&logo=github">
4-
<a href="#"><img align ="center" alt="Version" src="https://img.shields.io/static/v1?label=version&message=2.2.5&color=C279F0&style=for-the-badge&logo=data%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHpFAACAgwAA/FcAAIDoAAB5FgAA8QEAADtfAAAcheDStWoAAAGwSURBVHja7JcxSBxBFIa/Pa%2BQECuFFClNsLWRgGJSpEgn1oJosDIcFpbWKcTC47TKHbEVzpRRsLVOtEkKG2MTxO7QECUH%2BW3mcG7ZvX1j9nLNPVjY2Xn7f/Nm5g1vIkkYbBTYB0aAtB8ioAHMAt%2ByBIvY7AUwZvAbBl5ZwAUj%2BDd2%2B2VxsoIVAFae4NytD%2B6Dew6%2BCNC8tDgVEwYyAQx4%2BSjgZQB4yh2dBe8o/Qt8BZr32S75zyd1zw59Vnyqz7u4rD/az7f2iJG02YVoq3FOEhhJ5RyhtSRGGjivyKtp%2Bp3A/xp5rZN2FhhJlQdAP2bpWsCh016zaFrBVnjVqhe5Yu8ZMAc8ilUQEXAM1F27Aqyk5OkOsOTeZ4DJBK1bYA/4jqSnkm4yIillRO5HumiYmedI%2BmBcuzS4D10watWRdBawcZY9yLobQKs97/ldS/osqeHaB5JOvf6fOKcQKyVslvj0rrnvG5Iu3PsTr/%2Bq6Bb8ccBhvw2Muw0nd3N4F/N5DXxxF4Eh4I3bbC1rRpKOgOn/XICcFIByDyqfrVYevwfeAoOBt4YQi4A/wC6wejcAIWlEHq3bJrMAAAAASUVORK5CYII%3D">
5-
<a href="https://github.com/Discord-Theme-Addons/gradientbuttons-v2/stargazers"><img align="center" alt="Stars" src="https://img.shields.io/github/stars/Discord-Theme-Addons/gradientbuttons-v2?color=8980F0&style=for-the-badge&logo=data%3Aimage/png%3Bbase64%2CiVBORw0KGgoAAAANSUhEUgAAAB4AAAAdCAYAAAC9pNwMAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHpFAACAgwAA/FcAAIDoAAB5FgAA8QEAADtfAAAcheDStWoAAAHISURBVHjavJS/a1NRGIafm7RaaGJ1KR0MQUVNBiOhtKLg6GKXItRJVwc3M%2BpW%2Bg/4Fwid3LRLBydBHARBiqSiqcY2UOgipopBQnxdzpXr5dyb5iQnHxw49/z4nvOe7543kIRjPAFywIrL5sARPAF0TT8P/Bw0QcZR7cNIf3VcirNG4ZT5/mOuvONb8YMINMzxyLfiLNAGpmPjPVPrji/F9y3Q8EA1n4oPgNmEuUNgxofitRQowAng8bCKTwFF4CxQBq4BN4%2BY8wXwCvgAfAb2gG828C3gDHDOgIpAIaGWLvELaAG7QBNoAF8DSV8MeJxxkAEWgfoYoU1gPqzxceANcNkztAEsAO3wr/5tBt55hH4C5o0B/fecusBVT/CPpqQ//o1IircJSW81utiWlItzkt5xAGwBl4ZUugNUbB6eZplFU5djjtAeUAXeu3h1CzjtCG4DJ128eq6PN/eLPHDeBVwd4prD3FUXcGkEz%2BiCC/jiCMAlH%2BAN4JmrYpuBhG0/wRCeSqpE1pUkrSes/S5p0pY/CVqwJNmUdD3loFckPbfsKw8CXo5sfC1pKQUYbzckvYzsvzMI%2BJ7x2LsDAOPttqS6pJpt/u8AK65O%2Bt9ReEMAAAAASUVORK5CYII%3D"></a>
6-
</p>
72

8-
# GradientButtons v2
3+
# GradientButtons (v2)
94
Add some spice to your buttons.. with gradients!
105

116
![Preview](./screenshots/server-menu.gif)
127
![Preview](./screenshots/statuspicker-menu.gif)
138
![Preview](./screenshots/message-menu.gif)
149

15-
# Installation
16-
For Powercord or Vizality installation, go to **Themes -> Open CMD / Powershell / Terminal / Gitbash**, and enter the following:
10+
## Installation
11+
For **[Powercord](http://powercord.dev/)** or **[Vizality](https://vizality.com/)** installation, **locate and head over to your themes folder, open a terminal of choice, and enter the following:**
1712
```
1813
git clone https://github.com/Discord-Theme-Addons/gradientbuttons-v2
1914
```
2015

21-
**For BetterDiscord:**
22-
- [Direct Download](https://betterdiscord.net/ghdl?id=3486)
23-
- [View Source](https://raw.githack.com/Discord-Theme-Addons/gradientbuttons-v2/main/src/support/GradientButtons.theme.css)
16+
**For [BetterDiscord](http://betterdiscord.app/):**
17+
- [Direct Download](https://github.com/Discord-Theme-Addons/gradientbuttons-v2/releases/download/2.2.6/GradientButtons.theme.css)
18+
- [View Source](https://discord-theme-addons.github.io/gradientbuttons-v2/src/support/compiled.css)
2419

25-
**For Browser / Web:**
20+
**For [Stylus](https://github.com/openstyles/stylus):**
2621
1. Install the Stylus extension for [Chrome](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne) / [Firefox](https://addons.mozilla.org/en-US/firefox/addon/styl-us/) / [Opera](https://github.com/openstyles/stylus/wiki/Opera,-Outdated-Stylus).
27-
2. After installing, head over to [this link](https://raw.githack.com/Discord-Theme-Addons/gradientbuttons-v2/main/src/support/GradientButtons.user.css).
22+
2. After installing, head over to [this link](https://discord-theme-addons.github.io/gradientbuttons-v2/src/support/GradientButtons.user.css).
2823
3. Press the "Install Style" button.
2924

30-
# Disabling Transitions
31-
If you dislike the transitions on hover, you have the ability to disable them. On Powercord or Vizality, open `./src/_root.scss`. On BetterDiscord or Web, open the file and locate where `:root` is. Below where it says `/* Transitions */`, paste the following:
25+
## Disabling Transitions
26+
If you dislike the transitions on hover, you can simply just disable them using the variables. Head over to the root and paste the following under `/* Transitions */`.
3227
```css
33-
--font-normal: 500;
34-
--font-hover: var(--font-normal);
35-
--font-size-hover: 14px;
36-
--hover-transition: none;
37-
--transform-normal: none;
38-
--hover-transform: var(--transform-normal);
39-
--setting-hover-transform: var(--transform-normal);
40-
--button-hover-transform: var(--transform-normal);
28+
:root {
29+
/* Transitions */
30+
--button-transition: none;
31+
--font-default: 500;
32+
--font-hover: var(--font-default);
33+
--fontsize-hover: 14px;
34+
--transform-normal: scale(1);
35+
--transform-hover: var(--transform-normal);
36+
--button-transform-hover: var(--transform-normal);
37+
}
4138
```
4239

43-
Here is a basic GIF tutorial on how to do that if you don't understand:
44-
![Tutorial](./screenshots/transition-tutorial.gif)
45-
4640
# Credits
4741
A big thank you to everyone who helped with this!
48-
- **[Hoofer](https://github.com/HooferDevelops)** for the original code, aka Gradient Buttons v1. He never published the code, so I decided to and make it my own (with permission ofc).
49-
- **[botato](https://github.com/bototo2)** for teaching me that I could use #id instead of [id=""].
42+
- **[Hoofer](https://github.com/HooferDevelops)** for the original code, aka Gradient Buttons v1. He didn't publish the code, so I asked if I could with extra stuff.
43+
- **[botato](https://github.com/bototo2)** for letting me know that I can use #id instead of [id=""].

assets/banner.png

-529 KB
Loading

assets/icon.png

-326 KB
Loading

index.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import "./src/base";
1+
@use 'src';

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Gradient Button V2",
33
"description": "Add some spice to your buttons.. with gradients!",
4-
"version": "2.2.5",
4+
"version": "2.2.6",
55
"author": "LuckFire#4800",
66
"theme": "index.scss",
77
"consent": "false",

powercord_manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Gradient Button V2",
33
"description": "Add some spice to your buttons.. with gradients!",
4-
"version": "2.2.5",
4+
"version": "2.2.6",
55
"author": "LuckFire#4800",
66
"theme": "index.scss",
77
"consent": "false",

src/_base.scss

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/_index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@forward 'root';
2+
@forward 'main';

src/_root.scss

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,18 @@
11
:root {
22
/* Gradients */
3-
--default-gradient: 315deg, #495DA4 0%, #7289DA 74%;
4-
--special-gradient: 315deg, #8980F0 0%, #D577F0 74%;
5-
--red-gradient: 315deg, #AA3738 0%, #F04747 74%;
6-
--yellow-gradient: 315deg, #C2831B 0%, #FFB740 74%;
7-
--green-gradient: 315deg, #264D41 0%, #43B581 74%;
8-
--grey-gradient: 315deg, #373A45 0%, #747F8D 74%;
9-
--white-gradient: 315deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 74%;
3+
--gradient-special: 140deg, #8980F0 0%, #D577F0 100%;
4+
--gradient-blurple: 140deg, #5865f2 0%, #2a328a 100%;
5+
--gradient-green: 140deg, #3BA55D 0%, #15662f 100%;
6+
--gradient-yellow: 140deg, #FAA81A 0%, #be8013 100%;
7+
--gradient-red: 140deg, #ed4245 0%, #912b2d 100%;
8+
--gradient-grey: 140deg, #747F8D 0%, #3c424b 100%;
109

1110
/* Transitions */
12-
--font-normal: 500;
13-
--font-hover: bold; // Set to var(--font-normal)
14-
--font-size-hover: 15px; // Set to 14px
15-
--hover-transition: 0.1s linear; // Set to none
16-
--transform-normal: scale(1);
17-
--hover-transform: scale(1.15); // Set to var(--transform-normal)
18-
--setting-hover-transform: scale(1.025); // Set to var(--transform-normal)
19-
--button-hover-transform: scale(1.03); // Set to var(--transform-normal)
20-
}
21-
11+
--button-transition: 0.1s linear;
12+
--font-default: 500;
13+
--font-hover: bold;
14+
--fontsize-hover: 15px;
15+
--transform-normal: scale(1);
16+
--transform-hover: scale(1.15);
17+
--button-transform-hover: scale(1.04);
18+
}

0 commit comments

Comments
 (0)