-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6752e8
commit e16f7c6
Showing
1,885 changed files
with
304,458 additions
and
1,829 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/** | ||
* @name Assassin Brotherhood | ||
* @version 6.3.0 | ||
* @description Highly customizable and beautiful theme for BetterDiscord. | ||
* @source https://github.com/ClearVision/ClearVision-v6 | ||
* @website https://clearvision.github.io | ||
* @invite 7pNUC9C | ||
*/ | ||
|
||
@import url('https://jakek34959.github.io/CV-Assassin-Brotherhood/main.css'); | ||
|
||
:root { | ||
--main-color: #379B6E; | ||
--hover-color: #1F583F; | ||
--success-color: #251835; | ||
--danger-color: #431313; | ||
--url-color: #57F8A0; | ||
--background-image: url("https://live.staticflickr.com/65535/53271980123_6e5674788f_k.jpg");; | ||
--background-shading: 0%; | ||
--background-position: center; | ||
--background-size: cover; | ||
--background-repeat: no-repeat; | ||
--background-attachment: fixed; | ||
--background-brightness: 100%; | ||
--background-contrast: 100%; | ||
--background-saturation: 100%; | ||
--background-grayscale: 0%; | ||
--background-invert: 0%; | ||
--background-blur: 0px; | ||
--background-overlay: rgba(0,0,0,0.6); | ||
--user-popout-image: var(--background-image); | ||
--user-popout-position: 100% 10%; | ||
--user-popout-size: contain; | ||
--user-popout-repeat: no-repeat; | ||
--user-popout-attachment: local; | ||
--user-popout-brightness: 100%; | ||
--user-popout-contrast: 100%; | ||
--user-popout-saturation: 100%; | ||
--user-popout-grayscale: 0%; | ||
--user-popout-invert: 0%; | ||
--user-popout-blur: 1px; | ||
--user-modal-image: var(--background-image); | ||
--user-modal-position: 50% -20%; | ||
--user-modal-size: 70%; | ||
--user-modal-repeat: no-repeat; | ||
--user-modal-attachment: fixed; | ||
--user-modal-brightness: 100%; | ||
--user-modal-contrast: 100%; | ||
--user-modal-saturation: 100%; | ||
--user-modal-grayscale: 0%; | ||
--user-modal-invert: 0%; | ||
--user-modal-blur: 3px; | ||
--home-icon: url('https://i.imgur.com/gu9ybte.png'); | ||
--home-position: top center; | ||
--home-size: 40px; | ||
--channel-unread: var(--main-color); | ||
--channel-color: rgba(255,255,255,0.3); | ||
--muted-color: rgba(255,255,255,0.1); | ||
--online-color: #51B202; | ||
--idle-color: #FBE84D; | ||
--dnd-color: #EA3724; | ||
--streaming-color: #63D8FB; | ||
--offline-color: #808080; | ||
--channels-width: 220px; | ||
--members-width: 240px; | ||
--backdrop-overlay: rgba(0,0,0,0.8); | ||
--backdrop-image: var(--background-image); | ||
--backdrop-position: var(--background-position); | ||
--backdrop-size: var(--background-size); | ||
--backdrop-repeat: var(--background-repeat); | ||
--backdrop-attachment: var(--background-attachment); | ||
--backdrop-brightness: var(--background-brightness); | ||
--backdrop-contrast: var(--background-contrast); | ||
--backdrop-saturation: var(--background-saturation); | ||
--backdrop-invert: var(--background-invert); | ||
--backdrop-grayscale: var(--background-grayscale); | ||
--backdrop-sepia: var(--background-sepia); | ||
--backdrop-blur: var(--background-blur); | ||
--bd-blue: var(--main-color); | ||
--bd-blue-hover: var(--hover-color); | ||
--bd-blue-active: var(--hover-color); | ||
} | ||
|
||
/* Any custom CSS below here */ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
const fs = require('fs'); | ||
const css = require('css'); | ||
const { bgurls } = require('./Backgroundsurls'); // Import the bgurls array from Backgroundsurls.js | ||
|
||
let lastChoice = ''; | ||
|
||
function changebackground() { | ||
let pick = bgurls[Math.floor(Math.random() * bgurls.length)]; | ||
|
||
// Ensure that the new pick is different from the last choice | ||
while (pick === lastChoice) { | ||
pick = bgurls[Math.floor(Math.random() * bgurls.length)]; | ||
} | ||
console.log(pick); // Use console.log to print pick | ||
|
||
lastChoice = pick; | ||
|
||
const cssFilePath = 'AssassinBrotherhood.theme.css'; | ||
const cssContent = fs.readFileSync(cssFilePath, 'utf8'); | ||
|
||
const ast = css.parse(cssContent); | ||
const newBackgroundImageUrl = `url("${pick}");`; | ||
|
||
ast.stylesheet.rules.forEach((rule) => { | ||
if (rule.type === 'rule') { | ||
rule.declarations.forEach((declaration) => { | ||
if (declaration.property === '--background-image') { | ||
declaration.value = newBackgroundImageUrl; | ||
} | ||
}); | ||
} | ||
}); | ||
|
||
const modifiedCss = css.stringify(ast); | ||
|
||
fs.writeFile(cssFilePath, modifiedCss, (err) => { | ||
if (err) { | ||
console.error(err); | ||
} | ||
}); | ||
} | ||
|
||
// Use setInterval without the while loop | ||
setInterval(changebackground, 5000); |
Binary file not shown.
Oops, something went wrong.