├── .github
├── FUNDING.yml
└── ISSUE_TEMPLATE
│ ├── bug_report.md
│ ├── config.yml
│ ├── feature_request.md
│ └── other-issue.md
├── .gitignore
├── .gitlab-ci.yml
├── .stylelintrc.json
├── Base
├── base.m.css
├── buttons.m.css
├── font.m.css
├── modules.m.css
├── selection.m.css
├── tooltips.m.css
└── variables.m.css
├── BetterDiscord
└── Customa.theme.css
├── CONTRIBUTING.md
├── Chat
├── betterFileTypes.m.css
├── customEditIcon.m.css
├── customEditText.m.css
├── messageDividers.m.css
├── moreCompactCozyChat.m.css
└── typingOnRight.m.css
├── Emoji
├── emoteZoom.m.css
└── jumboMoji.m.css
├── LICENSE.md
├── Misc
├── customMuteDeafenIcon.css
├── customSettingsModal.m.css
├── rainbow.m.css
├── splash.m.css
└── squareAvatars.m.css
├── README.md
├── Sidebar
├── channelDivider.m.css
├── classicChannelSelect.m.css
├── classicStatusIndicator.m.css
├── coloredChannelIcons.m.css
├── folderNames.m.css
├── wrapperChannel.m.css
├── wrapperGuild.m.css
└── wrapperMember.m.css
├── Titlebar
├── cakeOSTitlebar.m.css
└── customWordmark.m.css
├── WIP
└── betterJumpLinks.m.css
├── Webkit
├── advancedScrollbar.m.css
├── customPlaceholder.m.css
└── placeholderRemover.m.css
├── gulpfile.js
├── package.json
├── powercord-to-usercss.js
├── powercord-to-usercss.json
├── powercord_manifest.json
└── yarn.lock
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: customa
4 | patreon: customa
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/bug_report.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Bug report
3 | about: Create a report to help us improve
4 | title: ''
5 | labels: ''
6 | assignees: ghostlydilemma
7 |
8 | ---
9 |
10 | **Issue in:** *Option/Menu*
11 |
12 | Steps to reproduce: *Explain Steps to reproduce*
13 |
14 | Injector used: *Powercord/BetterDiscord/(no Support: EnhancedDiscord/BetterDiscordv2)*
15 |
16 | Customa Configuration: *Hastebin/Pastebin Link*
17 |
18 | Screenshot: *Image/Video URL*
19 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: false
2 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/feature_request.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Feature request
3 | about: Suggest an idea for this project
4 | title: ''
5 | labels: ''
6 | assignees: ghostlydilemma
7 |
8 | ---
9 |
10 | **Feature Request for**: *Feature*
11 |
12 | Description: *Description here*
13 |
14 | Location: *Where in the application should this happen?*
15 |
16 | Why do you think this needs a new feature? *Explain your idea*
17 |
18 | Screenshot/Mock: *Image/Video URL*
19 |
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/other-issue.md:
--------------------------------------------------------------------------------
1 | ---
2 | name: Other issue
3 | about: In case you have something you want to discuss, which is neither of the other
4 | ones
5 | title: ''
6 | labels: ''
7 | assignees: ''
8 |
9 | ---
10 |
11 |
12 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea/
2 | dist/
3 | node_modules/
4 | .vscode
--------------------------------------------------------------------------------
/.gitlab-ci.yml:
--------------------------------------------------------------------------------
1 | image: node:10.15.3-slim
2 |
3 | pages:
4 | stage: deploy
5 | script:
6 | - npm install
7 | - npm run minify
8 | - mv dist public
9 | - node powercord-to-usercss.js
10 | - mv customa.user.css public
11 | artifacts:
12 | paths:
13 | - public
14 | only:
15 | - main
16 |
--------------------------------------------------------------------------------
/.stylelintrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "rules": {
3 | "color-no-invalid-hex": true,
4 | "color-hex-length": "long",
5 | "color-hex-case": "lower",
6 | "font-family-no-duplicate-names": true,
7 | "font-family-no-missing-generic-family-keyword": true,
8 | "function-calc-no-invalid": true,
9 | "function-calc-no-unspaced-operator": true,
10 | "function-linear-gradient-no-nonstandard-direction": true,
11 | "string-no-newline": true,
12 | "unit-no-unknown": true,
13 | "keyframe-declaration-no-important": true,
14 | "declaration-block-no-duplicate-properties": true,
15 | "block-no-empty": true,
16 | "selector-pseudo-class-no-unknown": true,
17 | "selector-pseudo-element-no-unknown": true,
18 | "comment-no-empty": true,
19 | "no-descending-specificity": [
20 | true,
21 | {
22 | "ignore": "selectors-within-list"
23 | }
24 | ],
25 | "no-invalid-double-slash-comments": true,
26 | "color-named": "never",
27 | "function-url-no-scheme-relative": true,
28 | "shorthand-property-no-redundant-values": true,
29 | "property-disallowed-list": [
30 | "float",
31 | "clear"
32 | ],
33 | "declaration-block-no-redundant-longhand-properties": true,
34 | "no-unknown-animations": true,
35 | "font-family-name-quotes": "always-where-recommended",
36 | "font-weight-notation": "numeric",
37 | "function-comma-space-before": "never",
38 | "function-comma-space-after": "always",
39 | "function-name-case": "lower",
40 | "function-parentheses-newline-inside": "never-multi-line",
41 | "function-parentheses-space-inside": "never",
42 | "function-url-quotes": "always",
43 | "function-whitespace-after": "always",
44 | "number-leading-zero": "never",
45 | "number-no-trailing-zeros": true,
46 | "string-quotes": "double",
47 | "length-zero-no-unit": true,
48 | "unit-case": "lower",
49 | "value-keyword-case": "lower",
50 | "value-list-comma-newline-after": "never-multi-line",
51 | "value-list-comma-newline-before": "never-multi-line",
52 | "value-list-comma-space-after": "always",
53 | "value-list-comma-space-before": "never",
54 | "property-case": "lower",
55 | "declaration-bang-space-after": "never",
56 | "declaration-bang-space-before": "never",
57 | "declaration-colon-newline-after": "always-multi-line",
58 | "declaration-colon-space-after": "always",
59 | "declaration-colon-space-before": "never",
60 | "declaration-empty-line-before": "never",
61 | "declaration-block-semicolon-newline-after": "always",
62 | "declaration-block-semicolon-newline-before": "never-multi-line",
63 | "declaration-block-semicolon-space-before": "never",
64 | "declaration-block-trailing-semicolon": "always",
65 | "block-closing-brace-empty-line-before": "never",
66 | "block-closing-brace-newline-after": "always",
67 | "block-closing-brace-newline-before": "always",
68 | "block-opening-brace-newline-after": "always",
69 | "block-opening-brace-space-before": "always",
70 | "selector-attribute-brackets-space-inside": "never",
71 | "selector-attribute-operator-space-after": "never",
72 | "selector-attribute-operator-space-before": "never",
73 | "selector-attribute-quotes": "always",
74 | "selector-combinator-space-after": "always",
75 | "selector-combinator-space-before": "always",
76 | "selector-descendant-combinator-no-non-space": null,
77 | "selector-pseudo-class-case": "lower",
78 | "selector-pseudo-class-parentheses-space-inside": "never",
79 | "selector-pseudo-element-case": "lower",
80 | "selector-pseudo-element-colon-notation": "double",
81 | "selector-type-case": "lower",
82 | "rule-empty-line-before": [
83 | "always",
84 | {
85 | "except": [
86 | "first-nested"
87 | ],
88 | "ignore": [
89 | "after-comment"
90 | ]
91 | }
92 | ],
93 | "selector-list-comma-space-after": "always-single-line",
94 | "selector-list-comma-space-before": "never",
95 | "comment-whitespace-inside": "always",
96 | "indentation": 2,
97 | "linebreaks": "unix",
98 | "max-line-length": 180,
99 | "no-missing-end-of-source-newline": true
100 | }
101 | }
102 |
--------------------------------------------------------------------------------
/Base/buttons.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModButtons: " \2022 Buttons ~ Customa Devs (Base \2192 buttons.m.css)\A"!important;
3 | /* stylelint-disable declaration-colon-newline-after */
4 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
5 | --INTVarButtons: "\A\A Button - Module"
6 | "\A \2022 --ColBTNBlack \2192 Allowed Values: RGB Values (pref. x, y, z)"
7 | "\A \2022 --ColBTNBrand \2192 Allowed Values: RGB Values (pref. x, y, z)"
8 | "\A \2022 --ColBTNGreen \2192 Allowed Values: RGB Values (pref. x, y, z)"
9 | "\A \2022 --ColBTNGrey \2192 Allowed Values: RGB Values (pref. x, y, z)"
10 | "\A \2022 --ColBTNLink \2192 Allowed Values: RGB Values (pref. x, y, z)"
11 | "\A \2022 --ColBTNPrimary \2192 Allowed Values: RGB Values (pref. x, y, z)"
12 | "\A \2022 --ColBTNRed \2192 Allowed Values: RGB Values (pref. x, y, z)"
13 | "\A \2022 --ColBTNWhite \2192 Allowed Values: RGB Values (pref. x, y, z)"
14 | "\A \2022 --ColBTNYellow \2192 Allowed Values: RGB Values (pref. x, y, z)"
15 | "\A\A \2022 --ColBTNContrastFix \2192 Allowed Values: CSS Color Codes"
16 | "\A \2022 --ColBTNOwnContrastBright \2192 Allowed Values: CSS Color Codes"
17 | "\A \2022 --ColBTNOwnContrastDark \2192 Allowed Values: CSS Color Codes"!important;
18 | /* stylelint-enable */
19 | --ColBTNBlack: 0, 0, 0;
20 | --ColBTNBrand: 216, 27, 96;
21 | --ColBTNGreen: 3, 165, 16;
22 | --ColBTNGrey: 140, 143, 146;
23 | --ColBTNLink: 0, 150, 207;
24 | --ColBTNPrimary: 22, 22, 22;
25 | --ColBTNRed: 244, 67, 54;
26 | --ColBTNWhite: 255, 255, 255;
27 | --ColBTNYellow: 253, 216, 53;
28 |
29 | --ColBTNContrastFix: #ffffff;
30 | --ColBTNOwnContrastBright: #000000;
31 | --ColBTNOwnContrastDark: #ffffff;
32 | }
33 |
34 | .lookFilled-1Gx00P.colorYellow-2JqYwt {
35 | background-color: rgb(var(--ColBTNYellow))!important;
36 | color: var(--ColBTNOwnContrastBright)!important;
37 | }
38 |
39 | .lookFilled-1Gx00P.colorBlack-1jwPVL {
40 | background-color: rgb(var(--ColBTNBlack));
41 | color: var(--ColBTNOwnContrastDark)!important;
42 | }
43 |
44 | .lookFilled-1Gx00P.colorGreen-29iAKY {
45 | background-color: rgb(var(--ColBTNGreen))!important;
46 | color: var(--ColBTNOwnContrastDark)!important;
47 | }
48 |
49 | .lookFilled-1Gx00P.colorGrey-2DXtkV {
50 | background-color: rgb(var(--ColBTNGrey))!important;
51 | color: var(--ColBTNOwnContrastDark)!important;
52 | }
53 |
54 | .lookFilled-1Gx00P.colorLink-35jkBc {
55 | background-color: rgb(var(--ColBTNLink))!important;
56 | color: var(--ColBTNOwnContrastDark)!important;
57 | }
58 |
59 | .lookFilled-1Gx00P.colorPrimary-3b3xI6 {
60 | background-color: rgb(var(--ColBTNPrimary))!important;
61 | color: var(--ColBTNContrastFix)!important;
62 | }
63 |
64 | .lookFilled-1Gx00P.colorRed-1TFJan {
65 | background-color: rgb(var(--ColBTNRed))!important;
66 | color: var(--ColBTNOwnContrastDark)!important;
67 | }
68 |
69 | .lookFilled-1Gx00P.colorWhite-rEQuAQ {
70 | background-color: rgb(var(--ColBTNWhite))!important;
71 | color: var(--ColBTNOwnContrastBright)!important;
72 | }
73 |
74 | .lookFilled-1Gx00P.colorBrand-3pXr91 {
75 | background-color: rgb(var(--ColBTNBrand))!important;
76 | color: var(--ColBTNOwnContrastDark)!important;
77 | }
78 |
79 | .lookOutlined-3sRXeN.colorYellow-2JqYwt {
80 | border-color: rgb(var(--ColBTNYellow))!important;
81 | color: var(--ColBTNContrastFix)!important;
82 | background: rgba(var(--ColBTNYellow), .1);
83 | }
84 |
85 | .lookOutlined-3sRXeN.colorBlack-1jwPVL {
86 | border-color: rgb(var(--ColBTNBlack))!important;
87 | color: var(--ColBTNContrastFix)!important;
88 | background: rgba(var(--ColBTNBlack), .1);
89 | }
90 |
91 | .lookOutlined-3sRXeN.colorGreen-29iAKY {
92 | border-color: rgb(var(--ColBTNGreen))!important;
93 | color: rgb(var(--ColBTNGreen))!important;
94 | background: rgba(var(--ColBTNGreen), .1);
95 | }
96 |
97 | .lookOutlined-3sRXeN.colorGrey-2DXtkV {
98 | border-color: rgb(var(--ColBTNGrey))!important;
99 | color: rgb(var(--ColBTNGrey))!important;
100 | background: rgba(var(--ColBTNGrey), .1);
101 | }
102 |
103 | .lookOutlined-3sRXeN.colorLink-35jkBc {
104 | border-color: rgb(var(--ColBTNLink))!important;
105 | color: rgb(var(--ColBTNLink))!important;
106 | background: rgba(var(--ColBTNLink), .1);
107 | }
108 |
109 | .lookOutlined-3sRXeN.colorPrimary-3b3xI6 {
110 | border-color: var(--ColBTNContrastFix)!important;
111 | color: var(--ColBTNContrastFix)!important;
112 | background: rgba(var(--ColBTNPrimary), .1);
113 | }
114 |
115 | .lookOutlined-3sRXeN.colorRed-1TFJan {
116 | border-color: rgb(var(--ColBTNRed))!important;
117 | color: rgb(var(--ColBTNRed))!important;
118 | background: rgba(var(--ColBTNRed), .1);
119 | }
120 |
121 | .lookOutlined-3sRXeN.colorWhite-rEQuAQ {
122 | border-color: rgb(var(--ColBTNWhite))!important;
123 | color: var(--ColBTNContrastFix)!important;
124 | background: rgba(var(--ColBTNWhite), .1)!important;
125 | }
126 |
127 | .lookOutlined-3sRXeN.colorBrand-3pXr91 {
128 | border-color: rgb(var(--ColBTNBrand))!important;
129 | color: rgb(var(--ColBTNBrand))!important;
130 | background: rgba(var(--ColBTNBrand), .1)!important;
131 | }
132 |
133 | .lookGhost-2Fn_0-.colorYellow-2JqYwt {
134 | background-color: rgba(var(--ColBTNYellow), .1);
135 | color: var(--ColBTNContrastFix)!important;
136 | }
137 |
138 | .lookGhost-2Fn_0-.colorBlack-1jwPVL {
139 | background-color: rgba(var(--ColBTNBlack), .1)!important;
140 | color: var(--ColBTNContrastFix)!important;
141 | }
142 |
143 | .lookGhost-2Fn_0-.colorGreen-29iAKY {
144 | background-color: rgba(var(--ColBTNGreen), .1)!important;
145 | color: rgb(var(--ColBTNGreen))!important;
146 | }
147 |
148 | .lookGhost-2Fn_0-.colorGrey-2DXtkV {
149 | background-color: rgba(var(--ColBTNGrey), .1)!important;
150 | color: rgb(var(--ColBTNGrey))!important;
151 | }
152 |
153 | .lookGhost-2Fn_0-.colorLink-35jkBc {
154 | background-color: rgba(var(--ColBTNLink), .1)!important;
155 | color: rgb(var(--ColBTNLink))!important;
156 | }
157 |
158 | .lookGhost-2Fn_0-.colorPrimary-3b3xI6 {
159 | background-color: rgba(var(--ColBTNPrimary), .1)!important;
160 | color: var(--ColBTNContrastFix)!important;
161 | }
162 |
163 | .lookGhost-2Fn_0-.colorRed-1TFJan {
164 | background-color: rgba(var(--ColBTNRed), .1)!important;
165 | color: rgb(var(--ColBTNRed))!important;
166 | }
167 |
168 | .lookGhost-2Fn_0-.colorWhite-rEQuAQ {
169 | background-color: rgba(var(--ColBTNWhite), .1)!important;
170 | color: var(--ColBTNContrastFix)!important;
171 | }
172 |
173 | .lookGhost-2Fn_0-.colorBrand-3pXr91 {
174 | background-color: rgba(var(--ColBTNBrand), .1)!important;
175 | color: rgb(var(--ColBTNBrand))!important;
176 | }
177 |
178 | .lookInverted-2D7oAl.colorYellow-2JqYwt {
179 | background-color: var(--ColBTNOwnContrastBright)!important;
180 | color: rgb(var(--ColBTNYellow));
181 | }
182 |
183 | .lookInverted-2D7oAl.colorBlack-1jwPVL {
184 | background-color: var(--ColBTNContrastFix)!important;
185 | color: rgb(var(--ColBTNBlack))!important;
186 | }
187 |
188 | .lookInverted-2D7oAl.colorGreen-29iAKY {
189 | background-color: var(--ColBTNContrastFix)!important;
190 | color: rgb(var(--ColBTNGreen))!important;
191 | }
192 |
193 | .lookInverted-2D7oAl.colorGrey-2DXtkV {
194 | background-color: var(--ColBTNContrastFix)!important;
195 | color: rgb(var(--ColBTNGrey))!important;
196 | }
197 |
198 | .lookInverted-2D7oAl.colorLink-35jkBc {
199 | background-color: var(--ColBTNContrastFix)!important;
200 | color: rgb(var(--ColBTNLink))!important;
201 | }
202 |
203 | .lookInverted-2D7oAl.colorPrimary-3b3xI6 {
204 | background-color: var(--ColBTNContrastFix)!important;
205 | color: rgb(var(--ColBTNPrimary))!important;
206 | }
207 |
208 | .lookInverted-2D7oAl.colorRed-1TFJan {
209 | background-color: var(--ColBTNContrastFix)!important;
210 | color: rgb(var(--ColBTNRed))!important;
211 | }
212 |
213 | .lookInverted-2D7oAl.colorWhite-rEQuAQ {
214 | background-color: var(--ColBTNOwnContrastBright)!important;
215 | color: rgb(var(--ColBTNWhite))!important;
216 | }
217 |
218 | .lookInverted-2D7oAl.colorBrand-3pXr91 {
219 | background-color: var(--ColBTNContrastFix)!important;
220 | color: rgb(var(--ColBTNBrand))!important;
221 | }
222 |
223 | .lookLink-9FtZy-.colorYellow-2JqYwt {
224 | color: rgb(var(--ColBTNYellow))!important;
225 | }
226 |
227 | .lookLink-9FtZy-.colorBlack-1jwPVL {
228 | color: rgb(var(--ColBTNBlack))!important;
229 | }
230 |
231 | .lookLink-9FtZy-.colorGreen-29iAKY {
232 | color: rgb(var(--ColBTNGreen))!important;
233 | }
234 |
235 | .lookLink-9FtZy-.colorGrey-2DXtkV {
236 | color: rgb(var(--ColBTNGrey))!important;
237 | }
238 |
239 | .lookLink-9FtZy-.colorLink-35jkBc {
240 | color: rgb(var(--ColBTNLink))!important;
241 | }
242 |
243 | .lookLink-9FtZy-.colorPrimary-3b3xI6 {
244 | color: var(--ColBTNContrastFix)!important;
245 | }
246 |
247 | .lookLink-9FtZy-.colorRed-1TFJan {
248 | color: rgb(var(--ColBTNRed))!important;
249 | }
250 |
251 | .lookLink-9FtZy-.colorWhite-rEQuAQ {
252 | color: rgb(var(--ColBTNWhite))!important;
253 | }
254 |
255 | .lookLink-9FtZy-.colorBrand-3pXr91 {
256 | color: rgb(var(--ColBTNBrand))!important;
257 | }
258 |
259 | .lookFilled-1Gx00P:hover, .lookGhost-2Fn_0-:hover, .lookOutlined-3sRXeN:hover {
260 | filter: brightness(.85);
261 | }
262 |
263 | .lookFilled-1Gx00P, .lookGhost-2Fn_0-, .lookOutlined-3sRXeN {
264 | transition: filter 200ms;
265 | }
266 |
--------------------------------------------------------------------------------
/Base/font.m.css:
--------------------------------------------------------------------------------
1 | @import url("https://customa.gitlab.io/Customa-Discord/Base/selection.m.css");
2 |
3 | :root {
4 | --INTModFont: " \2022 Fonts ~ Customa Devs (Base \2192 font.m.css)\A"!important;
5 | /* stylelint-disable declaration-colon-newline-after */
6 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
7 | --INTVarFont: "\A\A Font - Module"
8 | "\A \2022 --FontFamily \2192 Allowed Values: Installed Fonts/Webfonts (pref. Sans-Serif)"
9 | "\A \2022 --FontMonoFamily \2192 Allowed Values: Installed Fonts/Webfonts (pref. Monospace)"!important;
10 | /* stylelint-enable */
11 | --FontFamily: "Lato", sans-serif;
12 | --FontMonoFamily: "Fira Code", "Fira Mono", monospace;
13 | }
14 |
15 | /* Set all Fonts to the defined one */
16 | * {
17 | font-family: var(--FontFamily)!important;
18 | font-variant: normal!important;
19 | }
20 |
21 | .fa, .fab, .fad, .fal, .far, .fas {
22 | font-family: "Font Awesome 5 Pro", sans-serif!important;
23 | }
24 |
25 | /* set font for message box */
26 | ::-webkit-input-placeholder { /* stylelint-disable-line no-descending-specificity */
27 | font-family: var(--FontFamily);
28 | }
29 |
30 | .fileNameLink-9GuxCo /* File name for File Uploads */ {
31 | font-size: 15px!important;
32 | }
33 |
34 | code.inline, code.inline span /* Inline Code Block */, .ace_editor * /* Settings Code Editor */, .inlineCode-2ngu6Y span /* Inline Codeblock Textarea */,
35 | .codeLine-14BKbG span, .codeBlockText-11zCaP span /* Normal Codeblock Textarea */, .message-2qnXI6 .messageContent-2qWWxC pre code.hljs * /* Codeblocks */,
36 | code.codeView-1JPDeA /* Inline Files Preview */, .CodeMirror-code * /* Powercord CustomCSS Code Editor */ {
37 | font-family: var(--FontMonoFamily)!important;
38 | }
39 |
40 | @font-face {
41 | font-family: Whitney;
42 | font-weight: 400;
43 | src: url("/assets/e8acd7d9bf6207f99350ca9f9e23b168.woff") format("woff");
44 | }
45 | @font-face {
46 | font-family: Whitney;
47 | font-weight: 500;
48 | src: url("/assets/3bdef1251a424500c1b3a78dea9b7e57.woff") format("woff");
49 | }
50 |
--------------------------------------------------------------------------------
/Base/modules.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 |
3 | /* DO NOT EDIT */
4 |
5 | /* Base */
6 | --INTModBase: "";
7 | --INTModButtons: "";
8 | --INTModFont: "";
9 | --INTModModules: " \2022 Modules - Customa Devs (Base \2192 modules.m.css)\A"!important;
10 | --INTModSelection: "";
11 | --INTModTooltips: "";
12 | --INTModVariables: "";
13 |
14 | /* Chat */
15 | --INTModBetterFileTypes: "";
16 | --INTModCustomEditIcon: "";
17 | --INTModCustomEditText: "";
18 | --INTModMessageDividers: "";
19 | --INTModMoreCompactCozyChat: "";
20 | --INTModTypingOnRight: "";
21 |
22 | /* Emoji */
23 | --INTModEmoteZoom: "";
24 | --INTModJumboMoji: "";
25 |
26 | /* Misc */
27 | --INTModCustomSettingsModal: "";
28 | --INTModCustomMuteDeafenIcon: "";
29 | --INTModRainbow: "";
30 | --INTModSquareAvatars: "";
31 |
32 | /* Sidebar */
33 | --INTModChannelDivider: "";
34 | --INTModClassicChannelSelect: "";
35 | --INTModClassicStatusIndicator: "";
36 | --INTModColoredChannelIcon: "";
37 | --INTModFolderNames: "";
38 | --INTModWrapperChannel: "";
39 | --INTModWrapperGuild: "";
40 | --INTModWrapperMember: "";
41 |
42 | /* Titlebar */
43 | --INTModCakeOSTitlebar: "";
44 | --INTModCustomWordmark: "";
45 |
46 | /* Webkit */
47 | --INTModAdvancedScrollbar: "";
48 | --INTModPlaceholderRemover: "";
49 | --INTModCustomPlaceholder: "";
50 | }
51 |
52 | .background-1QDuV2::after {
53 | /* stylelint-disable declaration-colon-newline-after */
54 | /* Has been done since multiline content is not according to spec but R E A D A B I L I T Y */
55 | content: "Base:\A "
56 | var(--INTModBase)
57 | var(--INTModButtons)
58 | var(--INTModFont)
59 | var(--INTModModules)
60 | var(--INTModSelection)
61 | var(--INTModTooltips)
62 | var(--INTModVariables) "\A"
63 | "Chat:\A"
64 | var(--INTModBetterFileTypes)
65 | var(--INTModCustomEditIcon)
66 | var(--INTModCustomEditText)
67 | var(--INTModMessageDividers)
68 | var(--INTModMoreCompactCozyChat)
69 | var(--INTModTypingOnRight) "\A"
70 | "Emoji:\A"
71 | var(--INTModJumboMoji)
72 | var(--INTModEmoteZoom) "\A"
73 | "Misc:\A"
74 | var(--INTModCustomSettingsModal)
75 | var(--INTModCustomMuteDeafenIcon)
76 | var(--INTModRainbow)
77 | var(--INTModSquareAvatars) "\A"
78 | "Sidebar:\A"
79 | var(--INTModChannelDivider)
80 | var(--INTModClassicChannelSelect)
81 | var(--INTModClassicStatusIndicator)
82 | var(--INTModColoredChannelIcon)
83 | var(--INTModFolderNames)
84 | var(--INTModWrapperChannel)
85 | var(--INTModWrapperGuild)
86 | var(--INTModWrapperMember) "\A"
87 | "Titlebar:\A"
88 | var(--INTModCakeOSTitlebar)
89 | var(--INTModCustomWordmark) "\A"
90 | "Webkit:\A"
91 | var(--INTModAdvancedScrollbar)
92 | var(--INTModCustomPlaceholder)
93 | var(--INTModPlaceholderRemover);
94 | /* stylelint-enable */
95 | padding: 3%;
96 | margin-bottom: 2%;
97 | background-color: var(--ColBackground1);
98 | color: var(--text-normal);
99 | display: block;
100 | white-space: pre;
101 | line-height: 1.1;
102 | border-radius: 0 0 3px 3px;
103 | }
104 |
--------------------------------------------------------------------------------
/Base/selection.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --ColTextSelection: rgba(255, 255, 255, .2);
3 | --INTModSelection: " \2022 Selection ~ Customa Devs (Base \2192 selection.m.css)\A"!important;
4 | --INTVarSelection: "\A\A Selection - Module\A \2022 --ColTextSelection \2192 Allowed Values: Color (pref. rgba(x,x,x,0.2))"!important;
5 | }
6 |
7 | ::selection {
8 | background: var(--ColTextSelection)!important;
9 | }
10 |
--------------------------------------------------------------------------------
/Base/tooltips.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --ColBackgroundTooltip: #ffffff; /* Color */
3 | --ColTextTooltip: var(--ColBackground1); /* Background-Color */
4 | --INTModTooltips: " \2022 Tooltips ~ Customa Devs (Base \2192 tooltips.m.css)\A"!important;
5 | /* stylelint-disable declaration-colon-newline-after */
6 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
7 | --INTVarTooltips: "\A\A Tooltips - Module"
8 | "\A \2022 --ColBackgroundTooltip \2192 Allowed Values: Color (pref. #xxxxxx)"
9 | "\A \2022 --ColTextTooltip \2192 Allowed Values: Color (pref. #xxxxxx)"!important;
10 | /* stylelint-enable */
11 | }
12 |
13 | .tooltipPrimary-1d1ph4 /* Tooltips */, .mediaBarWrapper-3D7r67 .bubble-3qRl2J /* Media Time Bubbles */ {
14 | background-color: var(--ColBackgroundTooltip)!important;
15 | color: var(--ColTextTooltip)!important;
16 | }
17 |
18 | .tooltipPrimary-1d1ph4 .tooltipContent-bqVLWK .row-1c01mR * {
19 | color: var(--ColTextTooltip)!important;
20 | }
21 |
22 | .tooltipPrimary-1d1ph4 .tooltipPointer-3ZfirK {
23 | border-top-color: var(--ColBackgroundTooltip)!important;
24 | }
25 |
--------------------------------------------------------------------------------
/Base/variables.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModVariables: " \2022 Variables ~ Customa Devs (Base \2192 variables.m.css)\A"!important;
3 |
4 | /* Base */
5 | --INTVarBase: "";
6 | --INTVarButtons: "";
7 | --INTVarFont: "";
8 | --INTVarSelection: "";
9 | --INTVarTooltips: "";
10 |
11 | /* Chat */
12 | --INTVarBetterFileTypes: "";
13 | --INTVarCustomEditIcon: "";
14 | --INTVarCustomEditText: "";
15 | --INTVarMoreCompactCozyChat: "";
16 |
17 | /* Emoji */
18 | --INTVarEmoteZoom: "";
19 | --INTVarJumboMoji: "";
20 |
21 | /* Misc */
22 | --INTVarCustomSettingsModal: "";
23 | --INTVarCustomMuteDeafenIcon: "";
24 | --INTVarRainbow: "";
25 |
26 | /* Sidebar */
27 | --INTVarColoredChannelIcon: "";
28 | --INTVarWrapperChannel: "";
29 | --INTVarWrapperGuild: "";
30 | --INTVarWrapperMember: "";
31 |
32 | /* Titlebar */
33 | --INTVarCakeOSTitlebar: "";
34 | --INTVarCustomWordmark: "";
35 |
36 | /* Webkit */
37 | --INTVarCustomPlaceholder: "";
38 | }
39 |
40 | #bd-customcss-attach-controls {
41 | border-bottom-left-radius: 0;
42 | border-bottom-right-radius: 0;
43 | }
44 |
45 | #bd-customcss-attach-controls::after, .powercord-account::after {
46 | white-space: pre-line;
47 | display: block;
48 | /* stylelint-disable declaration-colon-newline-after */
49 | /* Has been done since multiline content is not according to spec but R E A D A B I L I T Y */
50 | content: "Customa-Variables\A\A"
51 | "BASE"
52 | var(--INTVarBase)
53 | var(--INTVarButtons)
54 | var(--INTVarFont)
55 | var(--INTVarSelection)
56 | var(--INTVarTooltips) "\A\A\A"
57 | "CHAT"
58 | var(--INTVarBetterFileTypes)
59 | var(--INTVarCustomEditIcon)
60 | var(--INTVarCustomEditText)
61 | var(--INTVarMoreCompactCozyChat) "\A\A\A"
62 | "EMOJI"
63 | var(--INTVarEmoteZoom)
64 | var(--INTVarJumboMoji) "\A\A\A"
65 | "MISC"
66 | var(--INTVarCustomSettingsModal)
67 | var(--INTVarCustomMuteDeafenIcon)
68 | var(--INTVarRainbow) "\A\A\A"
69 | "SIDEBAR"
70 | var(--INTVarColoredChannelIcon)
71 | var(--INTVarWrapperChannel)
72 | var(--INTVarWrapperGuild)
73 | var(--INTVarWrapperMember) "\A\A\A"
74 | "TITLEBAR"
75 | var(--INTVarCakeOSTitlebar)
76 | var(--INTVarCustomWordmark) "\A\A\A"
77 | "WEBKIT"
78 | var(--INTVarCustomPlaceholder);
79 | /* stylelint-enable */
80 | margin: 1.5% -2.3% 0;
81 | padding: 3%;
82 | line-height: 1.1;
83 | color: #ffffff;
84 | }
85 |
--------------------------------------------------------------------------------
/BetterDiscord/Customa.theme.css:
--------------------------------------------------------------------------------
1 | /**
2 | * @name Customa
3 | * @version 1.0.0
4 | * @description The most customizable Discord theme
5 | * @author The Customa Project
6 | * @invite GsPuw88
7 | * @website https://customa.github.io/
8 | */
9 |
10 | @import url('https://customa.gitlab.io/Customa-Discord/Base/base.m.css');
11 |
12 | /* ------------------------------------------------------------------- */
13 |
14 | /* Imports go here. */
15 |
16 | /*
17 | @import url("https://customa.gitlab.io/Customa-Discord/CATEGORY/MODULE");
18 | */
19 |
20 | /* ------------------------------------------------------------------- */
21 |
22 | /* Change variables here. */
23 |
24 | :root {
25 | /*
26 | --option: "setting";
27 | --colorOption: #123456;
28 | */
29 | }
30 |
31 | /* ------------------------------------------------------------------- */
32 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing
2 |
3 | When contributing to this repository, it is recommended that the changes are discussed beforehand. This can either be done with an issue here or by joining our [Discord server](http://invite.gg/Customa).
4 | Issues can both be created on the Discord server and here, the templates are the same on both platforms.
5 |
6 | Please note that we have a code of conduct, please follow it in all your interactions with the project.
7 |
8 | ## Pull Request Process
9 |
10 | 1. Ensure that you follow our code styling standards. We use [Stylelint](https://stylelint.io/) with pretty strict settings. Make sure that your development environment supports stylelint, otherwise your Pull Request will be denied.
11 | 2. Since Customa consists of a few small themes we decided to have a versioning system for each of them which can be seen on every commit message.
12 | Most of the time consulting a team member will clear up a bit of confusion regarding versioning.
We use a version numbering system somewhat similar to [SemVer](https://semver.org/) but slightly adjusted to fit our needs a bit better:
13 |
REWRITE.MAJOR.MINOR.PATCH
14 |
15 | 1. REWRITE: Complete rewrite of the module
16 | 2. MAJOR: Since compatibility is no concern, this mostly refers to commit size (Major commit rewriting/adding a substantial part of a module)
17 | 3. MINOR: Since compatibility is no concern, this mostly refers to commit size (Minor commit rewriting/adding a small part of a module)
18 | 4. PATCH: For very small changes
19 |
20 | ## Code of Conduct
21 |
22 | ### Our Pledge
23 |
24 | In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
25 |
26 | ### Our Standards
27 |
28 | Examples of behavior that contributes to creating a positive environment include:
29 |
30 | - Using welcoming and inclusive language
31 | - Being respectful of differing viewpoints and experiences
32 | - Gracefully accepting constructive criticism
33 | - Focusing on what is best for the community
34 | - Showing empathy towards other community members
35 |
36 | Examples of unacceptable behavior by participants include:
37 |
38 | - The use of sexualized language or imagery and unwelcome sexual attention or advances
39 | - Trolling, insulting/derogatory comments, and personal or political attacks
40 | - Public or private harassment
41 | - Publishing others' private information, such as a physical or electronic address, without explicit permission
42 | - Other conduct which could reasonably be considered inappropriate in a professional setting
43 |
44 | ### Our Responsibilities
45 |
46 | Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
47 |
48 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
49 |
50 | ### Scope
51 |
52 | This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
53 | Enforcement
54 |
55 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team in our [Discord server](http://invite.gg/Customa). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
56 |
57 | Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
58 |
59 | ### Attribution
60 |
61 | This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at http://contributor-covenant.org/version/1/4
62 |
--------------------------------------------------------------------------------
/Chat/betterFileTypes.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModBetterFileTypes: " \2022 Better File Types ~ Customa Devs (Chat \2192 betterFileTypes.m.css)\A"!important;
3 | /* stylelint-disable declaration-colon-newline-after */
4 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
5 | --INTVarBetterFileTypes: "\A\A Better File Types - Module"
6 | "\A \2022 --ColFileVideo \2192 Allowed Values: Color"
7 | "\A \2022 --ColFileAudio \2192 Allowed Values: Color"
8 | "\A \2022 --ColFilePDF \2192 Allowed Values: Color"
9 | "\A \2022 --ColFileAfterEffects \2192 Allowed Values: Color"
10 | "\A \2022 --ColFileSketch \2192 Allowed Values: Color"
11 | "\A \2022 --ColFileIllustrator \2192 Allowed Values: Color"
12 | "\A \2022 --ColFileArchive \2192 Allowed Values: Color"
13 | "\A \2022 --ColFileDocument \2192 Allowed Values: Color"
14 | "\A \2022 --ColFileSpreadsheet \2192 Allowed Values: Color"!important;
15 | /* stylelint-enable */
16 | --ColFileVideo: #672168;
17 | --ColFileAudio: #672168;
18 | --ColFilePDF: #ff0000;
19 | --ColFileAfterEffects: #d392ff;
20 | --ColFileSketch: #fdaf00;
21 | --ColFileIllustrator: #f47318;
22 | --ColFileArchive: #ffe48b;
23 | --ColFileDocument: #2a5496;
24 | --ColFileSpreadsheet: #107941;
25 | }
26 |
27 | /* General */
28 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr {
29 | background-size: 80%;
30 | }
31 |
32 | .icon-1kp3fr {
33 | display: none;
34 | }
35 |
36 | .attachmentInner-3vEpKt {
37 | margin: 4px 0 4px 38px;
38 | position: relative;
39 | overflow: visible;
40 | }
41 |
42 | .icon-1kp3fr + .attachmentInner-3vEpKt::before, .audioMetadata-3zOuGv::before {
43 | font-family: Customa-Misc, sans-serif;
44 | font-size: 32px;
45 | color: var(--ColFont);
46 | display: flex;
47 | justify-content: center;
48 | align-content: center;
49 | position: absolute;
50 | left: -38px;
51 | width: 30px;
52 | height: 40px;
53 | }
54 |
55 | /* Upload Area */
56 | .uploadArea-3QgLtW .inner-3nWsbo .icons-1w691d .wrapOne-14G98n .icon-kyxXVr::before {
57 | content: "\e931";
58 | }
59 |
60 | .uploadArea-3QgLtW .inner-3nWsbo .icons-1w691d .wrapTwo-mQGI3R .icon-kyxXVr::before {
61 | content: "\e928";
62 | }
63 |
64 | .uploadArea-3QgLtW .inner-3nWsbo .icons-1w691d .wrapThree-1CNQ42 .icon-kyxXVr::before {
65 | content: "\e92c";
66 | }
67 |
68 | .uploadArea-3QgLtW .inner-3nWsbo .icons-1w691d [class*="wrap"] .icon-kyxXVr {
69 | font-family: Customa-Misc, sans-serif!important;
70 | font-size: 100px;
71 | padding: 20px;
72 | color: var(--ColFont);
73 | opacity: 1;
74 | display: block;
75 | background-image: none;
76 | }
77 |
78 | .uploadArea-3QgLtW .inner-3nWsbo .icons-1w691d [class*="wrap"] .icon-kyxXVr::after {
79 | content: "";
80 | background-color: var(--ColBackground1);
81 | width: 77px;
82 | height: 94px;
83 | display: block;
84 | position: absolute;
85 | top: 25px;
86 | z-index: -1;
87 | border-radius: 10px;
88 | border-top-right-radius: 40px 50px;
89 | }
90 |
91 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr:not(.image-2yrs5j) {
92 | font-family: Customa-Misc, sans-serif!important;
93 | background-image: none!important;
94 | color: var(--ColFont);
95 | font-size: 90px;
96 | text-align: center;
97 | display: flex;
98 | justify-content: center;
99 | align-items: center;
100 | position: relative;
101 | }
102 |
103 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr:not(.image-2yrs5j)::before {
104 | z-index: 1;
105 | }
106 |
107 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr:not(.image-2yrs5j)::after {
108 | content: "";
109 | background-color: var(--ColBackground1);
110 | width: 32px;
111 | height: 32px;
112 | position: absolute;
113 | right: 27px;
114 | top: 34px;
115 | z-index: 0;
116 | transform: rotate(-45deg);
117 | }
118 |
119 | /* Document */
120 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.document-2cvI0u::before, [src="/assets/9f358f466473586417baee7bacfba5ca.svg"] + .attachmentInner-3vEpKt::before {
121 | content: "\e92e";
122 | color: var(--ColFileDocument);
123 | }
124 |
125 | /* Video */
126 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.video-27RLEH::before {
127 | content: "\e930";
128 | color: var(--ColFileVideo);
129 | }
130 |
131 | /* Audio */
132 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.audio-14DQXq::before, .audioMetadata-3zOuGv::before {
133 | content: "\e927";
134 | color: var(--ColFileAudio);
135 | }
136 |
137 | .metadataContent-3c_ZXw {
138 | margin-left: 30px;
139 | }
140 |
141 | .audioMetadata-3zOuGv::before {
142 | left: 0;
143 | font-size: 26px;
144 | background: none;
145 | margin-left: 10px;
146 | margin-top: 6px;
147 | }
148 |
149 | /* PDF */
150 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.acrobat-3K1PC6::before, [src="/assets/f167b4196f02faf2dc2e7eb266a24275.svg"] + .attachmentInner-3vEpKt::before {
151 | content: "\e92a";
152 | color: var(--ColFilePDF);
153 | }
154 |
155 | /* After Effects */
156 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.ae-1Y5Jq3::before, [src="/assets/982bd8aedd89b0607f492d1175b3b3a5.svg"] + .attachmentInner-3vEpKt::before {
157 | content: "\e925";
158 | color: var(--ColFileAfterEffects);
159 | }
160 |
161 | /* Sketch */
162 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.sketch-ZMuo7D::before, [src="/assets/f812168e543235a62b9f6deb2b094948.svg"] + .attachmentInner-3vEpKt::before {
163 | content: "\e92c";
164 | color: var(--ColFileSketch);
165 | }
166 |
167 | /* Illustrator */
168 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.ai-11KAaB::before, [src="/assets/03ad68e1f4d47f2671d629cfeac048ef.svg"] + .attachmentInner-3vEpKt::before {
169 | content: "\e929";
170 | color: var(--ColFileIllustrator);
171 | }
172 |
173 | /* Archive */
174 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.archive-2hqXug::before, [src="/assets/73d212e3701483c36a4660b28ac15b62.svg"] + .attachmentInner-3vEpKt::before {
175 | content: "\e926";
176 | color: var(--ColFileArchive);
177 | }
178 |
179 | /* Code */
180 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.code-aoB-kL::before, [src="/assets/481aa700fab464f2332ca9b5f4eb6ba4.svg"] + .attachmentInner-3vEpKt::before {
181 | content: "\e928";
182 | }
183 |
184 | /* Spreadsheet */
185 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.spreadsheet-1QuSej::before, [src="/assets/85f7a4063578f6e0e2c73f60bca0fcce.svg"] + .attachmentInner-3vEpKt::before {
186 | content: "\e92d";
187 | color: var(--ColFileSpreadsheet);
188 | }
189 |
190 | /* Webcode */
191 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.webcode-22GGLX::before, [src="/assets/a11e895b46cde503a094dd31641060a6.svg"] + .attachmentInner-3vEpKt::before {
192 | content: "\e931";
193 | }
194 |
195 | /* Unknown */
196 | .uploadModal-2ifh8j .inner-3nWsbo .file-34mY5K .icon-kyxXVr.unknown-3TPTMr::before, [src="/assets/985ea67d2edab4424c62009886f12e44.svg"] + .attachmentInner-3vEpKt::before {
197 | content: "\e92f";
198 | }
199 |
--------------------------------------------------------------------------------
/Chat/customEditIcon.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModCustomEditIcon: " \2022 Custom Edit Icon ~ Customa Devs (Chat \2192 customEditIcon.m.css)\A"!important;
3 | --INTVarCustomEditIcon: "\A\A Custom Edit Icon - Module \A \2022 --ContentEditIcon \2192 Allowed Values: url(TO_ICON)"!important;
4 | --ContentEditIcon: url("https://customa.gitlab.io/Customa-Misc/Discord/Assets/Dark/ApplicationIcons/Edit.svg");
5 | }
6 |
7 | .edited-3sfAzf {
8 | font-size: 0;
9 | width: 13px!important;
10 | height: 13px!important;
11 | display: inline-block;
12 | background-image: var(--ContentEditIcon)!important;
13 | background-size: 100%;
14 | opacity: .5;
15 | line-height: 23px;
16 | margin-left: 5px;
17 | }
18 |
--------------------------------------------------------------------------------
/Chat/customEditText.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModCustomEditText: " \2022 Custom Edit Text ~ Customa Devs (Chat \2192 customEditText.m.css)\A"!important;
3 | --INTVarCustomEditText: "\A\A Custom Edit Text - Module \A \2022 --ContentEditText \2192 Allowed Values: Text"!important;
4 | --ContentEditText: "OwO, what was that";
5 | }
6 |
7 | .edited-3sfAzf {
8 | visibility: hidden;
9 | font-size: 0;
10 | }
11 |
12 | .edited-3sfAzf::after {
13 | visibility: visible!important;
14 | font-size: .625rem;
15 | width: fit-content!important;
16 | content: var(--ContentEditText)!important;
17 | margin-left: 5px;
18 | }
19 |
--------------------------------------------------------------------------------
/Chat/messageDividers.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | /* Do not change anything here unless you know what you are doing */
3 | --INTModMessageDividers: " \2022 Message Dividers ~ Customa Devs (Chat \2192 messageDividers.m.css)\A"!important;
4 | }
5 |
6 | .message-2qnXI6 + .groupStart-23k01U {
7 | padding-top: 6px;
8 | }
9 |
10 | .message-2qnXI6 + .groupStart-23k01U::before {
11 | content: "";
12 | display: block;
13 | position: absolute;
14 | height: 1px;
15 | width: 95%;
16 | left: 2.5%;
17 | background: var(--background-modifier-accent);
18 | top: -.5px;
19 | }
20 |
--------------------------------------------------------------------------------
/Chat/moreCompactCozyChat.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModMoreCompactCozyChat: " \2022 more compact cozy chat ~ rai (Chat \2192 morecompactcozychat.m.css)\A"!important;
3 | /* stylelint-disable declaration-colon-newline-after */
4 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
5 | --INTVarMoreCompactCozyChat: "\A\A more compact cozy chat - Module"
6 | "\A \2022 --ColSeparator \2192 Allowed Values: Color"
7 | "\A \2022 --SizeSeparator \2192 Allowed Values: Size (pref. 1px)"
8 | "\A \2022 --SizeDateDivider \2192 Allowed Values: Size (0px to disable, pref. 1px)"!important;
9 | /* stylelint-enable */
10 | --SizeSeparator: 1px;
11 | --ColSeparator: #262a33;
12 | --SizeDateDivider: 0;
13 | }
14 |
15 | /* lower padding, disable margin and add a 2px border on top to make it easier to differenciate messages */
16 | .message-2qnXI6 + .cozyMessage-3V1Y8y.groupStart-23k01U {
17 | margin-top: 2px;
18 | border-top: var(--SizeSeparator) solid var(--ColSeparator);
19 | }
20 |
21 | .cozyMessage-3V1Y8y:not(.groupStart-23k01U) {
22 | padding-top: 0;
23 | padding-bottom: 0;
24 | }
25 |
26 | /* disable/enable the dividing part of the date separator */
27 | .divider-3_HH5L.hasContent-1_DUdQ.divider-JfaTT5.hasContent-1cNJDh {
28 | border-width: var(--SizeDateDivider);
29 | }
30 |
--------------------------------------------------------------------------------
/Chat/typingOnRight.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModTypingOnRight: " \2022 Typing on Right ~ Customa Devs (Chat \2192 typingOnRight.m.css)\A"!important;
3 | }
4 |
5 | .typing-2GQL18 {
6 | right: 10px;
7 | left: unset;
8 | }
9 |
--------------------------------------------------------------------------------
/Emoji/emoteZoom.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --ScaleEmojiHovered: 5;
3 | --TransitionDuration: 200ms;
4 | --TransitionDelay: 2000ms;
5 | --INTModEmoteZoom: " \2022 Emote Zoom ~ Customa Devs (Emoji \2192 emoteZoom.m.css)\A"!important;
6 | /* stylelint-disable declaration-colon-newline-after */
7 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
8 | --INTVarEmoteZoom: "\A\A Emote Zoom - Module"
9 | "\A \2022 --ScaleEmojiHovered \2192 Allowed Values: Int (pref. 5)"
10 | "\A \2022 --TransitionDuration \2192 Allowed Values: Time (pref. 200ms)"
11 | "\A \2022 --TransitionDelay \2192 Allowed Values: Time (pref. 2000ms)"!important;
12 | /* stylelint-enable */
13 | }
14 |
15 | .emoji {
16 | transition: all var(--TransitionDuration) var(--TransitionDelay) ease-in-out;
17 | cursor: zoom-in;
18 | z-index: 2;
19 | }
20 |
21 | .emoji:hover {
22 | transform: scale(var(--ScaleEmojiHovered));
23 | z-index: 99;
24 | }
25 |
26 | .zalgo-jN1Ica.compact-T3H92H .contents-2mQqc9 {
27 | overflow: visible;
28 | }
29 |
--------------------------------------------------------------------------------
/Emoji/jumboMoji.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModJumboMoji: " \2022 Jumbo Emojis ~ Customa Devs (Emoji \2192 jumboMoji.m.css)\A"!important;
3 | --INTVarJumboMoji: "\A\A Jumbo Emoji - Module \A \2022 --SizeEmote \2192 Allowed Values: XYpx (pref. 50px)"!important;
4 | --SizeEmote: 50px;
5 | }
6 |
7 | .emoji.jumboable {
8 | width: var(--SizeEmote)!important;
9 | height: var(--SizeEmote)!important;
10 | }
11 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 3, 29 June 2007
3 |
4 | Copyright (C) 2007 Free Software Foundation, Inc.
5 | Everyone is permitted to copy and distribute verbatim copies
6 | of this license document, but changing it is not allowed.
7 |
8 | Preamble
9 |
10 | The GNU General Public License is a free, copyleft license for
11 | software and other kinds of works.
12 |
13 | The licenses for most software and other practical works are designed
14 | to take away your freedom to share and change the works. By contrast,
15 | the GNU General Public License is intended to guarantee your freedom to
16 | share and change all versions of a program--to make sure it remains free
17 | software for all its users. We, the Free Software Foundation, use the
18 | GNU General Public License for most of our software; it applies also to
19 | any other work released this way by its authors. You can apply it to
20 | your programs, too.
21 |
22 | When we speak of free software, we are referring to freedom, not
23 | price. Our General Public Licenses are designed to make sure that you
24 | have the freedom to distribute copies of free software (and charge for
25 | them if you wish), that you receive source code or can get it if you
26 | want it, that you can change the software or use pieces of it in new
27 | free programs, and that you know you can do these things.
28 |
29 | To protect your rights, we need to prevent others from denying you
30 | these rights or asking you to surrender the rights. Therefore, you have
31 | certain responsibilities if you distribute copies of the software, or if
32 | you modify it: responsibilities to respect the freedom of others.
33 |
34 | For example, if you distribute copies of such a program, whether
35 | gratis or for a fee, you must pass on to the recipients the same
36 | freedoms that you received. You must make sure that they, too, receive
37 | or can get the source code. And you must show them these terms so they
38 | know their rights.
39 |
40 | Developers that use the GNU GPL protect your rights with two steps:
41 | (1) assert copyright on the software, and (2) offer you this License
42 | giving you legal permission to copy, distribute and/or modify it.
43 |
44 | For the developers' and authors' protection, the GPL clearly explains
45 | that there is no warranty for this free software. For both users' and
46 | authors' sake, the GPL requires that modified versions be marked as
47 | changed, so that their problems will not be attributed erroneously to
48 | authors of previous versions.
49 |
50 | Some devices are designed to deny users access to install or run
51 | modified versions of the software inside them, although the manufacturer
52 | can do so. This is fundamentally incompatible with the aim of
53 | protecting users' freedom to change the software. The systematic
54 | pattern of such abuse occurs in the area of products for individuals to
55 | use, which is precisely where it is most unacceptable. Therefore, we
56 | have designed this version of the GPL to prohibit the practice for those
57 | products. If such problems arise substantially in other domains, we
58 | stand ready to extend this provision to those domains in future versions
59 | of the GPL, as needed to protect the freedom of users.
60 |
61 | Finally, every program is threatened constantly by software patents.
62 | States should not allow patents to restrict development and use of
63 | software on general-purpose computers, but in those that do, we wish to
64 | avoid the special danger that patents applied to a free program could
65 | make it effectively proprietary. To prevent this, the GPL assures that
66 | patents cannot be used to render the program non-free.
67 |
68 | The precise terms and conditions for copying, distribution and
69 | modification follow.
70 |
71 | TERMS AND CONDITIONS
72 |
73 | 0. Definitions.
74 |
75 | "This License" refers to version 3 of the GNU General Public License.
76 |
77 | "Copyright" also means copyright-like laws that apply to other kinds of
78 | works, such as semiconductor masks.
79 |
80 | "The Program" refers to any copyrightable work licensed under this
81 | License. Each licensee is addressed as "you". "Licensees" and
82 | "recipients" may be individuals or organizations.
83 |
84 | To "modify" a work means to copy from or adapt all or part of the work
85 | in a fashion requiring copyright permission, other than the making of an
86 | exact copy. The resulting work is called a "modified version" of the
87 | earlier work or a work "based on" the earlier work.
88 |
89 | A "covered work" means either the unmodified Program or a work based
90 | on the Program.
91 |
92 | To "propagate" a work means to do anything with it that, without
93 | permission, would make you directly or secondarily liable for
94 | infringement under applicable copyright law, except executing it on a
95 | computer or modifying a private copy. Propagation includes copying,
96 | distribution (with or without modification), making available to the
97 | public, and in some countries other activities as well.
98 |
99 | To "convey" a work means any kind of propagation that enables other
100 | parties to make or receive copies. Mere interaction with a user through
101 | a computer network, with no transfer of a copy, is not conveying.
102 |
103 | An interactive user interface displays "Appropriate Legal Notices"
104 | to the extent that it includes a convenient and prominently visible
105 | feature that (1) displays an appropriate copyright notice, and (2)
106 | tells the user that there is no warranty for the work (except to the
107 | extent that warranties are provided), that licensees may convey the
108 | work under this License, and how to view a copy of this License. If
109 | the interface presents a list of user commands or options, such as a
110 | menu, a prominent item in the list meets this criterion.
111 |
112 | 1. Source Code.
113 |
114 | The "source code" for a work means the preferred form of the work
115 | for making modifications to it. "Object code" means any non-source
116 | form of a work.
117 |
118 | A "Standard Interface" means an interface that either is an official
119 | standard defined by a recognized standards body, or, in the case of
120 | interfaces specified for a particular programming language, one that
121 | is widely used among developers working in that language.
122 |
123 | The "System Libraries" of an executable work include anything, other
124 | than the work as a whole, that (a) is included in the normal form of
125 | packaging a Major Component, but which is not part of that Major
126 | Component, and (b) serves only to enable use of the work with that
127 | Major Component, or to implement a Standard Interface for which an
128 | implementation is available to the public in source code form. A
129 | "Major Component", in this context, means a major essential component
130 | (kernel, window system, and so on) of the specific operating system
131 | (if any) on which the executable work runs, or a compiler used to
132 | produce the work, or an object code interpreter used to run it.
133 |
134 | The "Corresponding Source" for a work in object code form means all
135 | the source code needed to generate, install, and (for an executable
136 | work) run the object code and to modify the work, including scripts to
137 | control those activities. However, it does not include the work's
138 | System Libraries, or general-purpose tools or generally available free
139 | programs which are used unmodified in performing those activities but
140 | which are not part of the work. For example, Corresponding Source
141 | includes interface definition files associated with source files for
142 | the work, and the source code for shared libraries and dynamically
143 | linked subprograms that the work is specifically designed to require,
144 | such as by intimate data communication or control flow between those
145 | subprograms and other parts of the work.
146 |
147 | The Corresponding Source need not include anything that users
148 | can regenerate automatically from other parts of the Corresponding
149 | Source.
150 |
151 | The Corresponding Source for a work in source code form is that
152 | same work.
153 |
154 | 2. Basic Permissions.
155 |
156 | All rights granted under this License are granted for the term of
157 | copyright on the Program, and are irrevocable provided the stated
158 | conditions are met. This License explicitly affirms your unlimited
159 | permission to run the unmodified Program. The output from running a
160 | covered work is covered by this License only if the output, given its
161 | content, constitutes a covered work. This License acknowledges your
162 | rights of fair use or other equivalent, as provided by copyright law.
163 |
164 | You may make, run and propagate covered works that you do not
165 | convey, without conditions so long as your license otherwise remains
166 | in force. You may convey covered works to others for the sole purpose
167 | of having them make modifications exclusively for you, or provide you
168 | with facilities for running those works, provided that you comply with
169 | the terms of this License in conveying all material for which you do
170 | not control copyright. Those thus making or running the covered works
171 | for you must do so exclusively on your behalf, under your direction
172 | and control, on terms that prohibit them from making any copies of
173 | your copyrighted material outside their relationship with you.
174 |
175 | Conveying under any other circumstances is permitted solely under
176 | the conditions stated below. Sublicensing is not allowed; section 10
177 | makes it unnecessary.
178 |
179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180 |
181 | No covered work shall be deemed part of an effective technological
182 | measure under any applicable law fulfilling obligations under article
183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or
184 | similar laws prohibiting or restricting circumvention of such
185 | measures.
186 |
187 | When you convey a covered work, you waive any legal power to forbid
188 | circumvention of technological measures to the extent such circumvention
189 | is effected by exercising rights under this License with respect to
190 | the covered work, and you disclaim any intention to limit operation or
191 | modification of the work as a means of enforcing, against the work's
192 | users, your or third parties' legal rights to forbid circumvention of
193 | technological measures.
194 |
195 | 4. Conveying Verbatim Copies.
196 |
197 | You may convey verbatim copies of the Program's source code as you
198 | receive it, in any medium, provided that you conspicuously and
199 | appropriately publish on each copy an appropriate copyright notice;
200 | keep intact all notices stating that this License and any
201 | non-permissive terms added in accord with section 7 apply to the code;
202 | keep intact all notices of the absence of any warranty; and give all
203 | recipients a copy of this License along with the Program.
204 |
205 | You may charge any price or no price for each copy that you convey,
206 | and you may offer support or warranty protection for a fee.
207 |
208 | 5. Conveying Modified Source Versions.
209 |
210 | You may convey a work based on the Program, or the modifications to
211 | produce it from the Program, in the form of source code under the
212 | terms of section 4, provided that you also meet all of these conditions:
213 |
214 | a) The work must carry prominent notices stating that you modified
215 | it, and giving a relevant date.
216 |
217 | b) The work must carry prominent notices stating that it is
218 | released under this License and any conditions added under section
219 | 7. This requirement modifies the requirement in section 4 to
220 | "keep intact all notices".
221 |
222 | c) You must license the entire work, as a whole, under this
223 | License to anyone who comes into possession of a copy. This
224 | License will therefore apply, along with any applicable section 7
225 | additional terms, to the whole of the work, and all its parts,
226 | regardless of how they are packaged. This License gives no
227 | permission to license the work in any other way, but it does not
228 | invalidate such permission if you have separately received it.
229 |
230 | d) If the work has interactive user interfaces, each must display
231 | Appropriate Legal Notices; however, if the Program has interactive
232 | interfaces that do not display Appropriate Legal Notices, your
233 | work need not make them do so.
234 |
235 | A compilation of a covered work with other separate and independent
236 | works, which are not by their nature extensions of the covered work,
237 | and which are not combined with it such as to form a larger program,
238 | in or on a volume of a storage or distribution medium, is called an
239 | "aggregate" if the compilation and its resulting copyright are not
240 | used to limit the access or legal rights of the compilation's users
241 | beyond what the individual works permit. Inclusion of a covered work
242 | in an aggregate does not cause this License to apply to the other
243 | parts of the aggregate.
244 |
245 | 6. Conveying Non-Source Forms.
246 |
247 | You may convey a covered work in object code form under the terms
248 | of sections 4 and 5, provided that you also convey the
249 | machine-readable Corresponding Source under the terms of this License,
250 | in one of these ways:
251 |
252 | a) Convey the object code in, or embodied in, a physical product
253 | (including a physical distribution medium), accompanied by the
254 | Corresponding Source fixed on a durable physical medium
255 | customarily used for software interchange.
256 |
257 | b) Convey the object code in, or embodied in, a physical product
258 | (including a physical distribution medium), accompanied by a
259 | written offer, valid for at least three years and valid for as
260 | long as you offer spare parts or customer support for that product
261 | model, to give anyone who possesses the object code either (1) a
262 | copy of the Corresponding Source for all the software in the
263 | product that is covered by this License, on a durable physical
264 | medium customarily used for software interchange, for a price no
265 | more than your reasonable cost of physically performing this
266 | conveying of source, or (2) access to copy the
267 | Corresponding Source from a network server at no charge.
268 |
269 | c) Convey individual copies of the object code with a copy of the
270 | written offer to provide the Corresponding Source. This
271 | alternative is allowed only occasionally and noncommercially, and
272 | only if you received the object code with such an offer, in accord
273 | with subsection 6b.
274 |
275 | d) Convey the object code by offering access from a designated
276 | place (gratis or for a charge), and offer equivalent access to the
277 | Corresponding Source in the same way through the same place at no
278 | further charge. You need not require recipients to copy the
279 | Corresponding Source along with the object code. If the place to
280 | copy the object code is a network server, the Corresponding Source
281 | may be on a different server (operated by you or a third party)
282 | that supports equivalent copying facilities, provided you maintain
283 | clear directions next to the object code saying where to find the
284 | Corresponding Source. Regardless of what server hosts the
285 | Corresponding Source, you remain obligated to ensure that it is
286 | available for as long as needed to satisfy these requirements.
287 |
288 | e) Convey the object code using peer-to-peer transmission, provided
289 | you inform other peers where the object code and Corresponding
290 | Source of the work are being offered to the general public at no
291 | charge under subsection 6d.
292 |
293 | A separable portion of the object code, whose source code is excluded
294 | from the Corresponding Source as a System Library, need not be
295 | included in conveying the object code work.
296 |
297 | A "User Product" is either (1) a "consumer product", which means any
298 | tangible personal property which is normally used for personal, family,
299 | or household purposes, or (2) anything designed or sold for incorporation
300 | into a dwelling. In determining whether a product is a consumer product,
301 | doubtful cases shall be resolved in favor of coverage. For a particular
302 | product received by a particular user, "normally used" refers to a
303 | typical or common use of that class of product, regardless of the status
304 | of the particular user or of the way in which the particular user
305 | actually uses, or expects or is expected to use, the product. A product
306 | is a consumer product regardless of whether the product has substantial
307 | commercial, industrial or non-consumer uses, unless such uses represent
308 | the only significant mode of use of the product.
309 |
310 | "Installation Information" for a User Product means any methods,
311 | procedures, authorization keys, or other information required to install
312 | and execute modified versions of a covered work in that User Product from
313 | a modified version of its Corresponding Source. The information must
314 | suffice to ensure that the continued functioning of the modified object
315 | code is in no case prevented or interfered with solely because
316 | modification has been made.
317 |
318 | If you convey an object code work under this section in, or with, or
319 | specifically for use in, a User Product, and the conveying occurs as
320 | part of a transaction in which the right of possession and use of the
321 | User Product is transferred to the recipient in perpetuity or for a
322 | fixed term (regardless of how the transaction is characterized), the
323 | Corresponding Source conveyed under this section must be accompanied
324 | by the Installation Information. But this requirement does not apply
325 | if neither you nor any third party retains the ability to install
326 | modified object code on the User Product (for example, the work has
327 | been installed in ROM).
328 |
329 | The requirement to provide Installation Information does not include a
330 | requirement to continue to provide support service, warranty, or updates
331 | for a work that has been modified or installed by the recipient, or for
332 | the User Product in which it has been modified or installed. Access to a
333 | network may be denied when the modification itself materially and
334 | adversely affects the operation of the network or violates the rules and
335 | protocols for communication across the network.
336 |
337 | Corresponding Source conveyed, and Installation Information provided,
338 | in accord with this section must be in a format that is publicly
339 | documented (and with an implementation available to the public in
340 | source code form), and must require no special password or key for
341 | unpacking, reading or copying.
342 |
343 | 7. Additional Terms.
344 |
345 | "Additional permissions" are terms that supplement the terms of this
346 | License by making exceptions from one or more of its conditions.
347 | Additional permissions that are applicable to the entire Program shall
348 | be treated as though they were included in this License, to the extent
349 | that they are valid under applicable law. If additional permissions
350 | apply only to part of the Program, that part may be used separately
351 | under those permissions, but the entire Program remains governed by
352 | this License without regard to the additional permissions.
353 |
354 | When you convey a copy of a covered work, you may at your option
355 | remove any additional permissions from that copy, or from any part of
356 | it. (Additional permissions may be written to require their own
357 | removal in certain cases when you modify the work.) You may place
358 | additional permissions on material, added by you to a covered work,
359 | for which you have or can give appropriate copyright permission.
360 |
361 | Notwithstanding any other provision of this License, for material you
362 | add to a covered work, you may (if authorized by the copyright holders of
363 | that material) supplement the terms of this License with terms:
364 |
365 | a) Disclaiming warranty or limiting liability differently from the
366 | terms of sections 15 and 16 of this License; or
367 |
368 | b) Requiring preservation of specified reasonable legal notices or
369 | author attributions in that material or in the Appropriate Legal
370 | Notices displayed by works containing it; or
371 |
372 | c) Prohibiting misrepresentation of the origin of that material, or
373 | requiring that modified versions of such material be marked in
374 | reasonable ways as different from the original version; or
375 |
376 | d) Limiting the use for publicity purposes of names of licensors or
377 | authors of the material; or
378 |
379 | e) Declining to grant rights under trademark law for use of some
380 | trade names, trademarks, or service marks; or
381 |
382 | f) Requiring indemnification of licensors and authors of that
383 | material by anyone who conveys the material (or modified versions of
384 | it) with contractual assumptions of liability to the recipient, for
385 | any liability that these contractual assumptions directly impose on
386 | those licensors and authors.
387 |
388 | All other non-permissive additional terms are considered "further
389 | restrictions" within the meaning of section 10. If the Program as you
390 | received it, or any part of it, contains a notice stating that it is
391 | governed by this License along with a term that is a further
392 | restriction, you may remove that term. If a license document contains
393 | a further restriction but permits relicensing or conveying under this
394 | License, you may add to a covered work material governed by the terms
395 | of that license document, provided that the further restriction does
396 | not survive such relicensing or conveying.
397 |
398 | If you add terms to a covered work in accord with this section, you
399 | must place, in the relevant source files, a statement of the
400 | additional terms that apply to those files, or a notice indicating
401 | where to find the applicable terms.
402 |
403 | Additional terms, permissive or non-permissive, may be stated in the
404 | form of a separately written license, or stated as exceptions;
405 | the above requirements apply either way.
406 |
407 | 8. Termination.
408 |
409 | You may not propagate or modify a covered work except as expressly
410 | provided under this License. Any attempt otherwise to propagate or
411 | modify it is void, and will automatically terminate your rights under
412 | this License (including any patent licenses granted under the third
413 | paragraph of section 11).
414 |
415 | However, if you cease all violation of this License, then your
416 | license from a particular copyright holder is reinstated (a)
417 | provisionally, unless and until the copyright holder explicitly and
418 | finally terminates your license, and (b) permanently, if the copyright
419 | holder fails to notify you of the violation by some reasonable means
420 | prior to 60 days after the cessation.
421 |
422 | Moreover, your license from a particular copyright holder is
423 | reinstated permanently if the copyright holder notifies you of the
424 | violation by some reasonable means, this is the first time you have
425 | received notice of violation of this License (for any work) from that
426 | copyright holder, and you cure the violation prior to 30 days after
427 | your receipt of the notice.
428 |
429 | Termination of your rights under this section does not terminate the
430 | licenses of parties who have received copies or rights from you under
431 | this License. If your rights have been terminated and not permanently
432 | reinstated, you do not qualify to receive new licenses for the same
433 | material under section 10.
434 |
435 | 9. Acceptance Not Required for Having Copies.
436 |
437 | You are not required to accept this License in order to receive or
438 | run a copy of the Program. Ancillary propagation of a covered work
439 | occurring solely as a consequence of using peer-to-peer transmission
440 | to receive a copy likewise does not require acceptance. However,
441 | nothing other than this License grants you permission to propagate or
442 | modify any covered work. These actions infringe copyright if you do
443 | not accept this License. Therefore, by modifying or propagating a
444 | covered work, you indicate your acceptance of this License to do so.
445 |
446 | 10. Automatic Licensing of Downstream Recipients.
447 |
448 | Each time you convey a covered work, the recipient automatically
449 | receives a license from the original licensors, to run, modify and
450 | propagate that work, subject to this License. You are not responsible
451 | for enforcing compliance by third parties with this License.
452 |
453 | An "entity transaction" is a transaction transferring control of an
454 | organization, or substantially all assets of one, or subdividing an
455 | organization, or merging organizations. If propagation of a covered
456 | work results from an entity transaction, each party to that
457 | transaction who receives a copy of the work also receives whatever
458 | licenses to the work the party's predecessor in interest had or could
459 | give under the previous paragraph, plus a right to possession of the
460 | Corresponding Source of the work from the predecessor in interest, if
461 | the predecessor has it or can get it with reasonable efforts.
462 |
463 | You may not impose any further restrictions on the exercise of the
464 | rights granted or affirmed under this License. For example, you may
465 | not impose a license fee, royalty, or other charge for exercise of
466 | rights granted under this License, and you may not initiate litigation
467 | (including a cross-claim or counterclaim in a lawsuit) alleging that
468 | any patent claim is infringed by making, using, selling, offering for
469 | sale, or importing the Program or any portion of it.
470 |
471 | 11. Patents.
472 |
473 | A "contributor" is a copyright holder who authorizes use under this
474 | License of the Program or a work on which the Program is based. The
475 | work thus licensed is called the contributor's "contributor version".
476 |
477 | A contributor's "essential patent claims" are all patent claims
478 | owned or controlled by the contributor, whether already acquired or
479 | hereafter acquired, that would be infringed by some manner, permitted
480 | by this License, of making, using, or selling its contributor version,
481 | but do not include claims that would be infringed only as a
482 | consequence of further modification of the contributor version. For
483 | purposes of this definition, "control" includes the right to grant
484 | patent sublicenses in a manner consistent with the requirements of
485 | this License.
486 |
487 | Each contributor grants you a non-exclusive, worldwide, royalty-free
488 | patent license under the contributor's essential patent claims, to
489 | make, use, sell, offer for sale, import and otherwise run, modify and
490 | propagate the contents of its contributor version.
491 |
492 | In the following three paragraphs, a "patent license" is any express
493 | agreement or commitment, however denominated, not to enforce a patent
494 | (such as an express permission to practice a patent or covenant not to
495 | sue for patent infringement). To "grant" such a patent license to a
496 | party means to make such an agreement or commitment not to enforce a
497 | patent against the party.
498 |
499 | If you convey a covered work, knowingly relying on a patent license,
500 | and the Corresponding Source of the work is not available for anyone
501 | to copy, free of charge and under the terms of this License, through a
502 | publicly available network server or other readily accessible means,
503 | then you must either (1) cause the Corresponding Source to be so
504 | available, or (2) arrange to deprive yourself of the benefit of the
505 | patent license for this particular work, or (3) arrange, in a manner
506 | consistent with the requirements of this License, to extend the patent
507 | license to downstream recipients. "Knowingly relying" means you have
508 | actual knowledge that, but for the patent license, your conveying the
509 | covered work in a country, or your recipient's use of the covered work
510 | in a country, would infringe one or more identifiable patents in that
511 | country that you have reason to believe are valid.
512 |
513 | If, pursuant to or in connection with a single transaction or
514 | arrangement, you convey, or propagate by procuring conveyance of, a
515 | covered work, and grant a patent license to some of the parties
516 | receiving the covered work authorizing them to use, propagate, modify
517 | or convey a specific copy of the covered work, then the patent license
518 | you grant is automatically extended to all recipients of the covered
519 | work and works based on it.
520 |
521 | A patent license is "discriminatory" if it does not include within
522 | the scope of its coverage, prohibits the exercise of, or is
523 | conditioned on the non-exercise of one or more of the rights that are
524 | specifically granted under this License. You may not convey a covered
525 | work if you are a party to an arrangement with a third party that is
526 | in the business of distributing software, under which you make payment
527 | to the third party based on the extent of your activity of conveying
528 | the work, and under which the third party grants, to any of the
529 | parties who would receive the covered work from you, a discriminatory
530 | patent license (a) in connection with copies of the covered work
531 | conveyed by you (or copies made from those copies), or (b) primarily
532 | for and in connection with specific products or compilations that
533 | contain the covered work, unless you entered into that arrangement,
534 | or that patent license was granted, prior to 28 March 2007.
535 |
536 | Nothing in this License shall be construed as excluding or limiting
537 | any implied license or other defenses to infringement that may
538 | otherwise be available to you under applicable patent law.
539 |
540 | 12. No Surrender of Others' Freedom.
541 |
542 | If conditions are imposed on you (whether by court order, agreement or
543 | otherwise) that contradict the conditions of this License, they do not
544 | excuse you from the conditions of this License. If you cannot convey a
545 | covered work so as to satisfy simultaneously your obligations under this
546 | License and any other pertinent obligations, then as a consequence you may
547 | not convey it at all. For example, if you agree to terms that obligate you
548 | to collect a royalty for further conveying from those to whom you convey
549 | the Program, the only way you could satisfy both those terms and this
550 | License would be to refrain entirely from conveying the Program.
551 |
552 | 13. Use with the GNU Affero General Public License.
553 |
554 | Notwithstanding any other provision of this License, you have
555 | permission to link or combine any covered work with a work licensed
556 | under version 3 of the GNU Affero General Public License into a single
557 | combined work, and to convey the resulting work. The terms of this
558 | License will continue to apply to the part which is the covered work,
559 | but the special requirements of the GNU Affero General Public License,
560 | section 13, concerning interaction through a network will apply to the
561 | combination as such.
562 |
563 | 14. Revised Versions of this License.
564 |
565 | The Free Software Foundation may publish revised and/or new versions of
566 | the GNU General Public License from time to time. Such new versions will
567 | be similar in spirit to the present version, but may differ in detail to
568 | address new problems or concerns.
569 |
570 | Each version is given a distinguishing version number. If the
571 | Program specifies that a certain numbered version of the GNU General
572 | Public License "or any later version" applies to it, you have the
573 | option of following the terms and conditions either of that numbered
574 | version or of any later version published by the Free Software
575 | Foundation. If the Program does not specify a version number of the
576 | GNU General Public License, you may choose any version ever published
577 | by the Free Software Foundation.
578 |
579 | If the Program specifies that a proxy can decide which future
580 | versions of the GNU General Public License can be used, that proxy's
581 | public statement of acceptance of a version permanently authorizes you
582 | to choose that version for the Program.
583 |
584 | Later license versions may give you additional or different
585 | permissions. However, no additional obligations are imposed on any
586 | author or copyright holder as a result of your choosing to follow a
587 | later version.
588 |
589 | 15. Disclaimer of Warranty.
590 |
591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599 |
600 | 16. Limitation of Liability.
601 |
602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610 | SUCH DAMAGES.
611 |
612 | 17. Interpretation of Sections 15 and 16.
613 |
614 | If the disclaimer of warranty and limitation of liability provided
615 | above cannot be given local legal effect according to their terms,
616 | reviewing courts shall apply local law that most closely approximates
617 | an absolute waiver of all civil liability in connection with the
618 | Program, unless a warranty or assumption of liability accompanies a
619 | copy of the Program in return for a fee.
620 |
621 | END OF TERMS AND CONDITIONS
622 |
623 | How to Apply These Terms to Your New Programs
624 |
625 | If you develop a new program, and you want it to be of the greatest
626 | possible use to the public, the best way to achieve this is to make it
627 | free software which everyone can redistribute and change under these terms.
628 |
629 | To do so, attach the following notices to the program. It is safest
630 | to attach them to the start of each source file to most effectively
631 | state the exclusion of warranty; and each file should have at least
632 | the "copyright" line and a pointer to where the full notice is found.
633 |
634 |
635 | Copyright (C)
636 |
637 | This program is free software: you can redistribute it and/or modify
638 | it under the terms of the GNU General Public License as published by
639 | the Free Software Foundation, either version 3 of the License, or
640 | (at your option) any later version.
641 |
642 | This program is distributed in the hope that it will be useful,
643 | but WITHOUT ANY WARRANTY; without even the implied warranty of
644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645 | GNU General Public License for more details.
646 |
647 | You should have received a copy of the GNU General Public License
648 | along with this program. If not, see .
649 |
650 | Also add information on how to contact you by electronic and paper mail.
651 |
652 | If the program does terminal interaction, make it output a short
653 | notice like this when it starts in an interactive mode:
654 |
655 | Copyright (C)
656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657 | This is free software, and you are welcome to redistribute it
658 | under certain conditions; type `show c' for details.
659 |
660 | The hypothetical commands `show w' and `show c' should show the appropriate
661 | parts of the General Public License. Of course, your program's commands
662 | might be different; for a GUI interface, you would use an "about box".
663 |
664 | You should also get your employer (if you work as a programmer) or school,
665 | if any, to sign a "copyright disclaimer" for the program, if necessary.
666 | For more information on this, and how to apply and follow the GNU GPL, see
667 | .
668 |
669 | The GNU General Public License does not permit incorporating your program
670 | into proprietary programs. If your program is a subroutine library, you
671 | may consider it more useful to permit linking proprietary applications with
672 | the library. If this is what you want to do, use the GNU Lesser General
673 | Public License instead of this License. But first, please read
674 | .
675 |
--------------------------------------------------------------------------------
/Misc/customMuteDeafenIcon.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModCustomMuteDeafenIcon: " \2022 custom status colors ~ rai (Misc \2192 customStatusColors.m.css)\A"!important;
3 | /* stylelint-disable declaration-colon-newline-after */
4 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
5 | --INTVarCustomMuteDeafenIcon: "\A\A custom status colors - Module"
6 | "\A \2022 --ColServerStatus \2192 Allowed Values: Color"
7 | "\A \2022 --ColClientStatus \2192 Allowed Values: Color"!important;
8 | /* stylelint-enable */
9 | --ColServerStatus: #f04747;
10 | --ColClientStatus: #2482db;
11 | }
12 |
13 | /* client status */
14 | [aria-label="Muted"] > .icon-2IuuZd, [aria-label="Deafened"] > .icon-2IuuZd {
15 | color: var(--ColClientStatus);
16 | }
17 |
18 | /* server status */
19 | [aria-label="Server Muted"] > .icon-2IuuZd, [aria-label="Server Deafened"] > .icon-2IuuZd {
20 | color: var(--ColServerStatus);
21 | }
22 |
--------------------------------------------------------------------------------
/Misc/customSettingsModal.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModCustomSettingsModal: " \2022 Custom Settings Modal ~ Customa Devs (Misc \2192 customSettingsModal.m.css)\A"!important;
3 | /* stylelint-disable declaration-colon-newline-after */
4 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
5 | --INTVarCustomSettingsModal: "\A\A Custom Settings Modal - Module"
6 | "\A \2022 --DisplayNoDoubleBorderRadius \2192 Allowed Values: None/Block"
7 | "\A \2022 --WidthSettingsSidebarMin \2192 Allowed Values: XYpx (pref. 44px)"
8 | "\A \2022 --WidthSettingsSidebarMax \2192 Allowed Values: XYpx (pref. 218px)"!important;
9 | /* stylelint-enable */
10 | --DisplayNoDoubleBorderRadius: none;
11 | --WidthSettingsSidebarMin: 44px;
12 | --WidthSettingsSidebarMax: 218px;
13 | }
14 |
15 | .layers-3iHuyZ > .layer-3QrUeG.animating-rRxada {
16 | background-color: transparent;
17 | }
18 |
19 | .layer-3QrUeG .standardSidebarView-3F1I7i {
20 | animation: closeSettings 400ms cubic-bezier(.68, -.55, .27, 1.55);
21 | height: 80%;
22 | margin: auto;
23 | opacity: 0;
24 | max-width: 1200px!important;
25 | z-index: 10!important;
26 | background-color: var(--ColBackground1)!important;
27 | }
28 |
29 | .layer-3QrUeG.stop-animations + .layer-3QrUeG .standardSidebarView-3F1I7i {
30 | animation: openSettings 400ms cubic-bezier(.68, -.55, .27, 1.55);
31 | opacity: 1;
32 | }
33 |
34 | .layer-3QrUeG {
35 | background: transparent;
36 | opacity: 1!important;
37 | transform: scale(1)!important;
38 | animation: closeBackdraw 400ms;
39 | }
40 |
41 | .layer-3QrUeG.stop-animations + .layer-3QrUeG {
42 | background: rgba(0, 0, 0, .85)!important;
43 | animation: openBackdraw 400ms;
44 | }
45 |
46 | .standardSidebarView-3F1I7i .sidebarRegion-VFTUkN .header-2RyJ0Y, .ui-tab-bar-header /* Remove Headers */, .info-1VyQPT /* Version Info */ {
47 | display: none;
48 | }
49 |
50 | .sidebar-CFHs9e {
51 | padding: 15px 6px 15px 4px;
52 | position: absolute;
53 | left: 0;
54 | }
55 |
56 | .sidebarRegion-VFTUkN {
57 | z-index: -1;
58 | }
59 |
60 | .sidebarRegion-VFTUkN, .contentTransitionWrap-3hqOEW {
61 | padding-bottom: 0!important;
62 | }
63 |
64 | .sidebarRegion-VFTUkN .side-8zPYf6 .item-PXvHYJ::before {
65 | content: "\e91b";
66 | font-size: 24px;
67 | font-family: Customa-Misc, sans-serif;
68 | position: absolute;
69 | left: 0;
70 | top: 0;
71 | padding: 6px;
72 | border-radius: 3px;
73 | color: currentColor;
74 | text-align: center;
75 | width: 24px;
76 | }
77 |
78 | .powercord-documentation .sidebarRegion-VFTUkN .side-8zPYf6 .item-PXvHYJ::before {
79 | content: "\e92f";
80 | }
81 |
82 | .side-8zPYf6 .selected-3s45Ha.item-PXvHYJ::before {
83 | background-color: var(--ColAccent);
84 | }
85 |
86 | .sidebar-CFHs9e .side-8zPYf6 .selected-3s45Ha.item-PXvHYJ {
87 | background-color: transparent!important;
88 | }
89 |
90 | .sidebar-CFHs9e .item-PXvHYJ {
91 | padding-left: 42px;
92 | overflow: visible;
93 | }
94 |
95 | .contentRegion-3nDuYy {
96 | width: calc(100% - var(--WidthSettingsSidebarMin));
97 | position: absolute;
98 | transform: translateX(var(--WidthSettingsSidebarMin));
99 | height: 100%;
100 | transition: transform 200ms;
101 | }
102 |
103 | .sidebarRegion-VFTUkN:hover + .contentRegion-3nDuYy {
104 | transform: translateX(var(--WidthSettingsSidebarMax));
105 | }
106 |
107 | .sidebarRegion-VFTUkN:hover .sidebar-CFHs9e .side-8zPYf6 .selected-3s45Ha.item-PXvHYJ {
108 | background-color: var(--ColAccent)!important;
109 | }
110 |
111 | .contentColumn-2hrIYH, .sidebarScrollable-1qPI87 + .content-1rPSz4, .customScroller-26gWhv > div {
112 | max-width: calc(100% - 40px);
113 | }
114 |
115 | .noticeRegion-1YviSH {
116 | min-width: calc(100%);
117 | }
118 |
119 | /* Border Radius Fixes */
120 | .standardSidebarView-3F1I7i .sidebarRegion-VFTUkN, .standardSidebarView-3F1I7i, .standardSidebarView-3F1I7i .contentRegion-3nDuYy {
121 | border-radius: 15px!important;
122 | padding-bottom: 0!important;
123 | }
124 |
125 | /* Hide the double border Radius */
126 | .standardSidebarView-3F1I7i .contentRegion-3nDuYy::before, .standardSidebarView-3F1I7i .contentRegion-3nDuYy::after {
127 | content: "";
128 | color: transparent;
129 | display: var(--DisplayNoDoubleBorderRadius)!important;
130 | width: 15px!important;
131 | height: 15px;
132 | background-color: var(--ColBackground2);
133 | left: 0;
134 | position: absolute;
135 | }
136 |
137 | .toolsContainer-1edPuj {
138 | position: absolute;
139 | right: -20px;
140 | margin-right: 0;
141 | padding-top: 0;
142 | top: 30px;
143 | }
144 |
145 | .contentRegion-3nDuYy > .toolsContainer-1edPuj {
146 | right: 13px;
147 | }
148 |
149 | .customHeader-f9DEJ_, .contentColumnDefault-1VQkGM {
150 | padding-top: 40px;
151 | }
152 |
153 | .socialLinks-3jqNFy {
154 | display: flex;
155 | flex-direction: column;
156 | padding-left: 8px;
157 | position: relative;
158 | }
159 |
160 | .link-1IoFq- {
161 | margin-top: 8px;
162 | display: flex;
163 | }
164 |
165 | .link-1IoFq-::after {
166 | font-size: 16px;
167 | margin-left: 14px;
168 | }
169 |
170 | .powercord-pc-icon::before {
171 | position: static;
172 | width: 20px;
173 | display: block;
174 | height: 16px;
175 | margin-left: 2px;
176 | margin-bottom: 16px;
177 | }
178 |
179 | .powercord-pc-icon svg {
180 | display: none;
181 | }
182 |
183 | .link-1IoFq-[href*="twitter"]::after {
184 | content: "Twitter";
185 | margin-left: 10px;
186 | }
187 |
188 | .link-1IoFq-[href*="facebook"]::after {
189 | content: "Facebook";
190 | }
191 |
192 | .link-1IoFq-[href*="instagram"]::after {
193 | content: "Instagram";
194 | }
195 |
196 | .link-1IoFq-[href*="powercord"]::after {
197 | content: "Powercord";
198 | margin-left: 8px;
199 | }
200 |
201 | .socialLinks-3jqNFy::after {
202 | content: "Customa - running on";
203 | color: #adadad;
204 | font-size: 16px;
205 | position: absolute;
206 | top: 8px;
207 | left: 40px;
208 | }
209 |
210 | .hero-EvfTTA, .banner-3Kac2g, .dropdown-2fxkrS, .contentWidth-xLB44s {
211 | max-width: unset;
212 | }
213 |
214 | .video-2aTfcg {
215 | width: 100%;
216 | }
217 |
218 | @keyframes openSettings {
219 | 0% {
220 | transform: scale(.6);
221 | opacity: 0;
222 | }
223 |
224 | 100% {
225 | transform: scale(1);
226 | opacity: 1;
227 | }
228 | }
229 | @keyframes closeSettings {
230 | 0% {
231 | transform: scale(1);
232 | opacity: 1;
233 | }
234 |
235 | 100% {
236 | transform: scale(.6);
237 | opacity: 0;
238 | }
239 | }
240 | @keyframes openBackdraw {
241 | 0% {
242 | background: transparent;
243 | }
244 |
245 | 100% {
246 | background: rgba(0, 0, 0, .85);
247 | }
248 | }
249 | @keyframes closeBackdraw {
250 | 0% {
251 | background: rgba(0, 0, 0, .85);
252 | }
253 |
254 | 100% {
255 | background: transparent;
256 | }
257 | }
258 |
259 | .side-8zPYf6 .item-PXvHYJ[data-item-id="MyAccount"]::before {
260 | content: "\e90d";
261 | }
262 |
263 | .side-8zPYf6 .item-PXvHYJ[data-item-id="PrivacynSafety"]::before {
264 | content: "\e912";
265 | }
266 |
267 | .side-8zPYf6 .item-PXvHYJ[data-item-id="AuthorizedApps"]::before {
268 | content: "\e913";
269 | }
270 |
271 | .side-8zPYf6 .item-PXvHYJ[data-item-id="Connections"]::before {
272 | content: "\e914";
273 | }
274 |
275 | .side-8zPYf6 .item-PXvHYJ[data-item-id="Billing"]::before {
276 | content: "\e915";
277 | }
278 |
279 | .side-8zPYf6 .item-PXvHYJ[data-item-id="DiscordNitro"]::before {
280 | content: "\e916";
281 | }
282 |
283 | .side-8zPYf6 .item-PXvHYJ[data-item-id="LibraryInventory"]::before {
284 | content: "\e917";
285 | }
286 |
287 | .side-8zPYf6 .item-PXvHYJ[data-item-id="NitroServerBoost"]::before {
288 | content: "\e918";
289 | }
290 |
291 | .side-8zPYf6 .item-PXvHYJ[data-item-id="HypesquadOnline"]::before {
292 | content: "\e919";
293 | }
294 |
295 | .side-8zPYf6 .item-PXvHYJ[data-item-id="VoicenVideo"]::before {
296 | content: "\e903";
297 | }
298 |
299 | .side-8zPYf6 .item-PXvHYJ[data-item-id="Notifications"]::before {
300 | content: "\e905";
301 | }
302 |
303 | .side-8zPYf6 .item-PXvHYJ[data-item-id="Keybinds"]::before {
304 | content: "\e906";
305 | }
306 |
307 | .side-8zPYf6 .item-PXvHYJ[data-item-id="GameActivity"]::before {
308 | content: "\e907";
309 | }
310 |
311 | .side-8zPYf6 .item-PXvHYJ[data-item-id="TextnImages"]::before {
312 | content: "\e908";
313 | }
314 |
315 | .side-8zPYf6 .item-PXvHYJ[data-item-id="Appearance"]::before {
316 | content: "\e909";
317 | }
318 |
319 | .side-8zPYf6 .item-PXvHYJ[data-item-id="StreamerMode"]::before {
320 | content: "\e90a";
321 | }
322 |
323 | .side-8zPYf6 .item-PXvHYJ[data-item-id="Language"]::before {
324 | content: "\e90b";
325 | }
326 |
327 | .side-8zPYf6 .item-PXvHYJ[data-item-id="Linux"]::before {
328 | content: "\e932";
329 | }
330 |
331 | .side-8zPYf6 .item-PXvHYJ[data-item-id="Windows"]::before {
332 | content: "\e939";
333 | }
334 |
335 | .side-8zPYf6 .item-PXvHYJ[data-item-id="pc-general"]::before {
336 | content: "\e91c";
337 | }
338 |
339 | .side-8zPYf6 .item-PXvHYJ[data-item-id="pc-moduleManager-plugins"]::before {
340 | content: "\e91b";
341 | }
342 |
343 | .side-8zPYf6 .item-PXvHYJ[data-item-id="pc-moduleManager-themes"]::before {
344 | content: "\e91e";
345 | }
346 |
347 | .side-8zPYf6 .item-PXvHYJ[data-item-id="pc-updater"]::before {
348 | content: "\e920";
349 | }
350 |
351 | .side-8zPYf6 .item-PXvHYJ[data-item-id="devInjector"]::before {
352 | content: "\e91a";
353 | }
354 |
355 | .side-8zPYf6 .item-PXvHYJ[data-item-id="changelog"]::before {
356 | content: "\e90e";
357 | }
358 |
359 | .side-8zPYf6 .item-PXvHYJ[data-item-id="pc-spotify"]::before {
360 | content: "\e91d";
361 | }
362 |
363 | .side-8zPYf6 .item-PXvHYJ[data-item-id="pc-documentation"]::before {
364 | content: "\e92f";
365 | }
366 |
367 | .side-8zPYf6 .item-PXvHYJ[data-item-id="pc-labs"]::before {
368 | content: "\e90f";
369 | }
370 |
371 | .side-8zPYf6 .item-PXvHYJ[data-item-id="Experiments"]::before {
372 | content: "\e90f";
373 | }
374 |
375 | .side-8zPYf6 .item-PXvHYJ[data-item-id="DeveloperOptions"]::before {
376 | content: "\e910";
377 | }
378 |
379 | .side-8zPYf6 .item-PXvHYJ[data-item-id="logout"]::before {
380 | content: "\e911";
381 | }
382 |
383 | .side-8zPYf6 .item-PXvHYJ[data-item-id="OVERVIEW"]::before {
384 | content: "\e93a";
385 | }
386 |
387 | .side-8zPYf6 .item-PXvHYJ[data-item-id="ROLES"]::before {
388 | content: "\e938";
389 | }
390 |
391 | .side-8zPYf6 .item-PXvHYJ[data-item-id="EMOJI"]::before {
392 | content: "\e937";
393 | }
394 |
395 | .side-8zPYf6 .item-PXvHYJ[data-item-id="MODERATION"]::before {
396 | content: "\e93c";
397 | }
398 |
399 | .side-8zPYf6 .item-PXvHYJ[data-item-id="AUDIT_LOG"]::before {
400 | content: "\e936";
401 | }
402 |
403 | .side-8zPYf6 .item-PXvHYJ[data-item-id="INTEGRATIONS"]::before {
404 | content: "\e914";
405 | }
406 |
407 | .side-8zPYf6 .item-PXvHYJ[data-item-id="WEBHOOKS"]::before {
408 | content: "\e940";
409 | }
410 |
411 | .side-8zPYf6 .item-PXvHYJ[data-item-id="EMBED"]::before {
412 | content: "\e93b";
413 | }
414 |
415 | .side-8zPYf6 .item-PXvHYJ[data-item-id="GUILD_TEMPLATES"]::before {
416 | content: "\e93f";
417 | }
418 |
419 | .side-8zPYf6 .item-PXvHYJ[data-item-id="GUILD_PREMIUM"]::before {
420 | content: "\e935";
421 | }
422 |
423 | .side-8zPYf6 .item-PXvHYJ[data-item-id="MEMBERS"]::before {
424 | content: "\e934";
425 | }
426 |
427 | .side-8zPYf6 .item-PXvHYJ[data-item-id="INSTANT_INVITES"]::before {
428 | content: "\e93d";
429 | }
430 |
431 | .side-8zPYf6 .item-PXvHYJ[data-item-id="BANS"]::before {
432 | content: "\e93e";
433 | }
434 |
435 | .side-8zPYf6 .item-PXvHYJ[data-item-id="DELETE"]::before {
436 | content: "\e933";
437 | }
438 |
--------------------------------------------------------------------------------
/Misc/rainbow.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --DurRainbow: 2s;
3 | --INTModRainbow: " \2022 Rainbow Background ~ Customa Devs (Misc \2192 rainbow.m.css)\A"!important;
4 | --INTVarRainbow: "\A\A Rainbow - Module\A \2022 --DurRainbow \2192 Allowed Values: Time"!important;
5 | animation: rainbow var(--DurRainbow) infinite linear;
6 | }
7 |
8 | @keyframes rainbow {
9 | from {
10 | filter: hue-rotate(0deg);
11 | }
12 |
13 | to {
14 | filter: hue-rotate(360deg);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/Misc/splash.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --ColBackground2: #212121;
3 | --ColTransparent2: rgba(0, 0, 0, .2); /* Transparent Color */
4 | --ColAccent: #d81b60; /* Color */
5 |
6 | /* TODO: Remove */
7 | }
8 |
9 | #splash, #splash .splash-inner-dl .dl-select-frame .Select-menu-outer {
10 | background-color: var(--ColBackground2);
11 | }
12 |
13 | .splash-status::before {
14 | content: "Loading Powercord + Customa";
15 | font-style: normal;
16 | display: block;
17 | text-transform: none;
18 | margin-bottom: 15px;
19 | }
20 |
21 | .splash-inner {
22 | width: 100%;
23 | display: flex;
24 | justify-content: center;
25 | align-items: center;
26 | flex-direction: column;
27 | }
28 |
29 | .splash-inner::before {
30 | background: url("https://customa.gitlab.io/Customa-Misc/Logo/ParentLogo/GIF/Logo60FPS.gif");
31 | background-size: 120px 120px;
32 | background-repeat: no-repeat;
33 | background-position: center;
34 | content: "";
35 | width: 200px;
36 | height: 200px;
37 | display: block;
38 | margin-bottom: 30px;
39 | }
40 |
41 | #splash {
42 | /* border: 20px solid #161616; */
43 | }
44 |
45 | video {
46 | display: none;
47 | }
48 |
49 | #splash .splash-inner-dl .dl-select-frame .Select-control, #splash .splash-inner-dl .dl-select-frame .Select-menu-outer {
50 | border: none;
51 | }
52 |
53 | .progress .progress-bar, #splash .splash-inner-dl .dl-select-frame .Select-control, #splash .splash-inner-dl .dl-select-frame .Select-option {
54 | background-color: var(--ColTransparent2);
55 | }
56 |
57 | .progress .progress-bar .complete, #splash .splash-inner-dl .dl-select-frame .dl-button, #splash .splash-inner-dl .dl-select-frame .dl-button:hover, #splash .splash-inner-dl
58 | .dl-select-frame .Select-option.is-focused {
59 | background-color: var(--ColAccent);
60 | }
61 |
62 | #splash .splash-inner-dl .dl-select-frame .dl-button {
63 | cursor: pointer;
64 | }
65 |
66 | .is-focused:not(.is-open) > .Select-control {
67 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1), 0 0 5px -1px var(--ColAccent);
68 | }
69 |
--------------------------------------------------------------------------------
/Misc/squareAvatars.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModSquareAvatars: " \2022 square avatars ~ rai (Misc \2192 squareAvatars.m.css)\A"!important;
3 | }
4 | /* most avatars */
5 | [id^="svg-mask-avatar"] > circle[fill="white"] {
6 | r: .8!important;
7 | cy: .45!important;
8 | cx: .45!important;
9 | }
10 | /* profile avatar, spotify group listening popup */
11 | #mask-118v16 > circle[fill="white"] {
12 | r: .8!important;
13 | cy: .45!important;
14 | cx: .45!important;
15 | }
16 | /* vc avatars */
17 | .avatarSmall-2CW6I1, .avatar-1BDn8e, .avatarContainer-28iYmV, .callAvatarVoice-29N_wG, .voiceAvatar-14IynY, .avatar-SmRMf2, .avatarSpeaking-2c8-9i {
18 | border-radius: 0px!important;
19 | }
20 |
21 | .speaking-B2MXPi {
22 | border-radius: 0px!important;
23 | }
24 | /* greetz to tadeo for the css */
25 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | [](http://invite.gg/Customa)
4 | 
5 | 
6 | 
7 | 
8 |
9 | **The most customizable Discord theme out there**
10 |
11 | Bold statement don't you think? Let me keep up with the statement from above...
12 |
13 | * [1. The Backstory](#1-the-backstory)
14 | * [2. Versions](#2-versions)
15 | * [Original - June 2017:](#original---june-2017)
16 | * [The First Rewrite - August 2017:](#the-first-rewrite---august-2017)
17 | * [The Second Rewrite ~ November 2017:](#the-second-rewrite--november-2017)
18 | * [The Third Rewrite / The [class*=]-Mess ~ January/February 2018:](#the-third-rewrite--the-class-mess--januaryfebruary-2018)
19 | * [The Fourth Rewrite / The Current Version - August 2018:](#the-fourth-rewrite--the-current-version---august-2018)
20 | * [3. Installation](#3-installation)
21 | * [Introduction](#introduction)
22 | * [Powercord](#powercord)
23 | * [Manual](#manual)
24 | * [Cloning](#cloning)
25 | * [Web browsers](#web-browsers)
26 | * [BetterDiscord](#betterdiscord)
27 | * [4. Further Info](#4-further-info)
28 | * [Who is working on the theme?](#who-is-working-on-the-theme)
29 | * [What do I need for it to run?](#what-do-i-need-for-it-to-run)
30 | * [How does the module system work?](#how-does-the-module-system-work)
31 | * [Which variables do exist?](#which-variables-do-exist)
32 | * [Where does it run?](#where-does-it-run)
33 | * [5. Special Mentions](#5-special-mentions)
34 | * [6. Support/Community Discord](#6-supportcommunity-discord)
35 |
36 | ## 1. The Backstory
37 |
38 | I ([ghostlydilemma](https://github.com/GhostlyDilemma/)) started working on a theme in June 2017. It started off as some test how easy it would be to work with Discord's CSS/HTML. I quickly found a style I liked and showed the theme to others, which resulted in a few people beta testing my theme. As more time passed I realized that a distribution using Discord, just passing the theme.css file, was just way too tedious. With a newly created Github account I started uploading the entire theme onto GitHub and just sent out a file linking to my repo. After rewriting the theme for a couple of times I realized that not all features are wanted by everyone, so I seperated some functionality into seperate css files -> Modules.
39 |
40 | In about 1 year and 2 months I rewrote the entire theme 4 times until it has become the complete modular system it is today.
41 |
42 | ## 2. Versions
43 |
44 | ### Original - June 2017:
45 |
46 | The original version had little to no customizability and horrible, horrible code design. I wrote it mostly for my own use but apparently created a style a lot of people liked. Until this day the main parts of the theme still look pretty much the same, but have been tweaked and updated to look even better (and work with the newest Discord versions).
47 | Back when I first created the theme, I overwrote every class with fixed colors, which resulted in a very poor support for background images. As I was asked to add support for those (or even see-through to your desktop), I started to work on:
48 |
49 | ### The First Rewrite - August 2017:
50 |
51 | I had been playing with the thought of adding variables and background support for quite a while, but as I didn't pay much attention to clean code design I ended up rewriting the whole theme. I recreated the theme in just about a week and finally also had support for background images. Another major requirement for the rewrite was to make the theme faster. I tried to reuse certain elements and ended up with a much cleaner code and a way faster theme. As the new school year started, Discord kept adding more and more obfuscated selectors, which made work on the theme harder and harder. Because of the now starting school year I had no chance of spending the time in working on a fix (let alone did my messy code allow for any of that).
52 |
53 | ### The Second Rewrite ~ November 2017:
54 |
55 | Around that time I started writing Discord Plugins as well, so I tried to combine both plugin and theme development into one. Starting with this version Customa also featured modules. Since this version the theme hasn't changed dramatically from neither the looks nor the code. The newest rewrite in fact is very close to this one, more to this later. But some poor development, little time and more obfuscation lead to me dropping the project yet again.
56 |
57 | ### The Third Rewrite / The [class*=]-Mess ~ January/February 2018:
58 |
59 | In the holiday season I rewrote the entire theme yet again, this time using [class*=]-Statements, making the theme 'future'-proof. What I didn't know: The selector is slow - very slow. My theme sometimes needed minutes to start, some modules didn't load at all, random buttons got selected and in the end I couldn't read anything anymore as [class*='container'] doesn't tell you that much. The theme still works for very basic parts and is the last one which is still publicly available on GitHub to this day (legacy branch).
60 |
61 | ### The Fourth Rewrite / The Current Version - August 2018:
62 |
63 | More than a year after the original version was released I had to fix all the problems of the last version. With the release of scripts that update the obfuscated classnames in your theme according to the newest Discord update, I sat down and started yet another rewrite. This time with better variable names and a much, much better structure. I finally got around creating a Discord Server where I can keep track of all the changes and I got myself to comment all of my code, despite slowing down development drastically, it made the code much more readable and futureproof, even if I personally lose interest in creating themes.
64 |
65 | ## 3. Installation
66 |
67 | ### Introduction
68 |
69 | This part will be split in preparations for two different Discord injectors: Powercord and BetterDiscord.
70 |
71 | **YOU DO NOT NEED THE CUSTOMA DEVELOPMENT INJECTOR FOR EITHER OF THEM**
72 |
73 | Instead of one theme file that you just install and leave, Customa gives you the ability to chose by picking your own modules and setting variables. Both will be shown below:
74 |
75 | * Picking Modules
76 | For this the Import Feature of CSS is used:
77 |
78 | ```css
79 | @import url("https://customa.gitlab.io/Customa-Discord/CATEGORY/MODULE");
80 | ```
81 |
82 | **`CATEGORY:`** Represented through folders in this Git Repo
83 | **`MODULE:`** Represented through files in this Git Repo
84 |
85 | * Changing Variables
86 | For this the Root and Variable Feature of CSS is used:
87 | ```css
88 | :root {
89 | --option: "setting";
90 | --colorOption: #123456;
91 | }
92 | ```
93 |
94 | You should end up with something like this:
95 | ```css
96 | @import url("https://customa.gitlab.io/Customa-Discord/Base/base.m.css");
97 |
98 | :root {
99 | --ColAppBG: #161621;
100 | --ColBackground1: #161621;
101 | --ColBackground2: #212126;
102 | ...
103 | }
104 | ```
105 |
106 | At this point the ways part for both (supported) injectors
107 |
108 | ### Powercord
109 |
110 | *This is the prefered method of using Customa due to a better integration with the ecosystem from Customa's side.*
111 |
112 | What you need:
113 |
114 | * A CSS file (named Customa.css in the following paragraph)
115 | * A powercord_manifest.json
116 | * A folder in the themes folder of Powercord
117 |
118 | #### Manual
119 |
120 | Currently the recommended way of installing for Powercord:
121 |
122 | You can ignore the .exists file:
123 | 
124 | 
125 |
126 | The powercord_manifest.json file:
127 |
128 | ```JSON
129 | {
130 | "name": "Customa",
131 | "description": "The most customizable Discord theme",
132 | "version": "1.0.0",
133 | "author": "The Customa Project",
134 | "license": "GPL-3.0-only",
135 | "theme": "./Customa.css"
136 | }
137 | ```
138 |
139 | The Customa.css file:
140 |
141 | ```CSS
142 | /* Your own Customa Setup here, Example below: */
143 | @import url("https://customa.gitlab.io/Customa-Discord/Base/base.m.css");
144 |
145 | :root {
146 | --ColAppBG: #161621;
147 | --ColBackground1: #161621;
148 | --ColBackground2: #212126;
149 | ...
150 | }
151 | ```
152 |
153 | #### Cloning
154 |
155 | In this repository you can find a powercord_manifest.json file, which consists of a basic setup which executes the base module and nothing else. This also requires you to [clone](https://www.git-scm.com/docs/git-clone) the entire repo with git. This is the best fit if you are planning to contribute to Customa with own modules or bugfixes, which is greatly appreciated!
156 |
157 | ### Web browsers
158 |
159 | *There are some issues due to Content Security Policy*
160 |
161 | * Install "Stylus" extension (xStyle also works, but all colors are reset to black).
162 | * [Install UserCSS](https://customa.gitlab.io/Customa-Discord/customa.user.css)
163 |
164 | ### BetterDiscord
165 |
166 | 1. Download the [theme file](https://github.com/Customa/Customa-Discord/tree/main/BetterDiscord/Customa.theme.css) from the `/BetterDiscord` folder in this repository.
167 | 2. Open your BetterDiscord themes folder.
168 | 3. Drag the file you downloaded into the folder. Ensure there isn't a copy identifier (eg `Name.theme(1).css`) at the end of the filename.
169 |
170 | ## 4. Further Info
171 |
172 | ### Who is working on the theme?
173 |
174 | Customa is built by a small team of three people, who all work their part on this theme! Several other people have also put time into the theme, as it is open source, improving it every step of the way.
175 |
176 | ### What do I need for it to run?
177 |
178 | - A Discord Injector tool that injects CSS
179 | - A config file (more info below)
180 |
181 | ### How does the module system work?
182 |
183 | Despite a strict requirement for the Base Module on the old website, the theme can also be used without these modules, it is heavily recommended though. ~~Modules like the Settings and Variables Module cannot be used without the Root Module.~~ **Fixed with the newest rewrite**; It is also not tested if all the modules work/look properly without the Base Module or even with a completely different theme.
184 |
185 | ### Which variables do exist?
186 |
187 | You either use the variables module, or look in the #modules channel in the Discord server.
188 |
189 | ### Where does it run?
190 |
191 | On Discord's desktop app for PC, ie. Windows/Mac/Linux/etc., currently there are no plans for mobile versions.
192 |
193 | ## 5. Special Mentions
194 |
195 | The entire theme wouldn't have been possible without the help of all following people.
196 |
197 | - The entire Rainmeter Discord, especially the following people:
198 | - zvava - For making me laugh at your dumb pull request messages and a ton of help on the theme...4 eyes see more then 2! <3
199 | - Eldog - Who's been supporting the theme since square 1 <3
200 | - Yemou - For working a lot on Customa's light theme support!
201 | - Chinakomba - Who's been helping a lot during the rewrite!
202 | - anf - Who fixed the naughtiest bug ever and helped me fix the following ones myself
203 | - Mafu - For helping me figure out the right license
204 | - Powercord and its community
205 | - MrLars - For helping me with the injector tool used to create Customa, and pointing out a lot of bugs
206 | - Bowser65 - For helping me with getting the wrapperGuilds Module to work again
207 | - Justin - For providing a splendid snippet for the channel search bar
208 | - BetterDiscord
209 | - Beard's Material Theme and obviously Beard Design himself [Github](https://github.com/BeardDesign1), [Website](http://www.beard-design.com/) - same goes for [Nox](https://github.com/rauenzi/Nox)
210 | - Twitch Icon: Icon made by [Pixel Perfect](https://icon54.com) from [flaticon](https://flaticon.com)
211 |
212 | ## 6. Support/Community Discord
213 |
214 | [Join the Support Server](http://invite.gg/Customa)
215 |
--------------------------------------------------------------------------------
/Sidebar/channelDivider.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModChannelDivider: " \2022 Channel Divider ~ Customa Devs (Sidebar \2192 channelDivider.m.css)\A"!important;
3 | }
4 |
5 | .container-3w7J-x .scroller-RmtA4e .containerDefault-3tr_sE .wrapper-PY0fhH * {
6 | text-align: center;
7 | display: flex;
8 | justify-content: center;
9 | align-items: center;
10 | overflow: hidden;
11 | color: var(--ColFont)!important;
12 | opacity: .3;
13 | transition: .2s opacity ease-in-out!important;
14 | }
15 |
16 | .container-3w7J-x .scroller-RmtA4e .containerDefault-3tr_sE .wrapper-PY0fhH:hover * {
17 | opacity: .8;
18 | }
19 |
20 | .container-3w7J-x .scroller-RmtA4e .containerDefault-3tr_sE .wrapper-PY0fhH .name-3l27Hl::before,
21 | .container-3w7J-x .scroller-RmtA4e .containerDefault-3tr_sE .wrapper-PY0fhH .name-3l27Hl::after {
22 | content: "";
23 | width: 100%;
24 | vertical-align: middle;
25 | height: 1px;
26 | background: var(--ColFont);
27 | display: inline-block;
28 | margin: 0 5px;
29 | }
30 |
31 | .container-3w7J-x .scroller-RmtA4e .containerDefault-3tr_sE .wrapper-PY0fhH .name-3l27Hl .overflow-WK9Ogt {
32 | overflow: visible;
33 | }
34 |
--------------------------------------------------------------------------------
/Sidebar/classicChannelSelect.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModClassicChannelSelect: " \2022 Classic Channel Select ~ Customa Devs (Sidebar \2192 classicChannelSelect.m.css)\A"!important;
3 | }
4 |
5 | .containerDefault--pIXnN .iconVisibility-sTNpHs.wrapper-2jXpOf .content-1x5b-n /* Server Channel */, .channel-2QD9_O /* Private Channel */ {
6 | margin-left: 0;
7 | background: linear-gradient(to right, var(--ColTransparent2), transparent) no-repeat;
8 | background-color: transparent!important;
9 | background-position: -240px;
10 | border-radius: 0;
11 | transition: background-position .2s;
12 | border-left: 2.667px solid transparent;
13 | max-width: unset;
14 | }
15 |
16 | .channel-2QD9_O .layout-2DM8Md {
17 | background-color: transparent!important;
18 | }
19 |
20 | .unread-2lAfLh {
21 | z-index: 999;
22 | }
23 |
24 | .containerDefault--pIXnN:hover .iconVisibility-sTNpHs.wrapper-2jXpOf .content-1x5b-n /* Server Channel Hover Effect */,
25 | .containerDefault--pIXnN.selected-3LIHYU .iconVisibility-sTNpHs.wrapper-2jXpOf.modeSelected-346R90 .content-1x5b-n /* Server Channel Select Effect */,
26 | .channel-2QD9_O:hover /* Private Channel Hover Effect */, .channel-2QD9_O.selected-aXhQR6 /* Private Channel Select Effect */ {
27 | background-position: -2px;
28 | border-left-color: var(--ColTransparent1);
29 | }
30 |
31 | .containerDefault--pIXnN.selected-3LIHYU .iconVisibility-sTNpHs.wrapper-2jXpOf.modeSelected-346R90 .content-1x5b-n /* Server Channel Select Effect */,
32 | .channel-2QD9_O.selected-aXhQR6 /* Private Channel Select Effect */ {
33 | border-left-color: var(--ColAccent)!important;
34 | }
35 |
--------------------------------------------------------------------------------
/Sidebar/classicStatusIndicator.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModClassicStatusIndicator: " \2022 Classic Status Indicator ~ Customa Devs (Sidebar \2192 classicStatusIndicator.m.css)\A"!important;
3 | }
4 |
5 | /* thanks bowser for the snippet I was allowed to copy basically uff */
6 |
7 | /* Smaller mobile presence indicator */
8 | rect[mask="url(#svg-mask-status-online-mobile)"] {
9 | width: 8px;
10 | height: 12px;
11 | /* clean-css ignore:start */
12 | x: 24;
13 | y: 19;
14 | /* clean-css ignore:end */
15 | }
16 |
17 | foreignobject[mask="url(#svg-mask-avatar-status-mobile-80)"] + rect {
18 | width: 16px;
19 | height: 24px;
20 | /* clean-css ignore:start */
21 | x: 60;
22 | y: 52;
23 | /* clean-css ignore:end */
24 | }
25 |
26 | mask#svg-mask-avatar-status-mobile-32 rect {
27 | width: .35px;
28 | /* clean-css ignore:start */
29 | x: .67;
30 | y: .5;
31 | /* clean-css ignore:end */
32 | }
33 |
34 | /* Old rounded status indicator */
35 | .wrapper-3t9DeA rect[mask="url(#svg-mask-status-online)"] {
36 | fill: #43b581;
37 | mask: url("#svg-mask-status-online");
38 | }
39 |
40 | .wrapper-3t9DeA rect[mask="url(#svg-mask-status-idle)"] {
41 | fill: #faa61a;
42 | mask: url("#svg-mask-status-online");
43 | }
44 |
45 | .wrapper-3t9DeA rect[mask="url(#svg-mask-status-dnd)"] {
46 | fill: #f04747;
47 | mask: url("#svg-mask-status-online");
48 | }
49 |
50 | .wrapper-3t9DeA rect[mask="url(#svg-mask-status-offline)"] {
51 | mask: url("#svg-mask-status-online");
52 | }
53 |
54 | .wrapper-3t9DeA rect[mask="url(#svg-mask-status-streaming)"] {
55 | mask: url("#svg-mask-status-online");
56 | }
57 |
58 | /* Old offline members */
59 | .memberOffline-2lN7gt .avatarOffline-3GF27z {
60 | opacity: 1;
61 | filter: grayscale(1);
62 | }
63 |
--------------------------------------------------------------------------------
/Sidebar/coloredChannelIcons.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModColoredChannelIcon: " \2022 Colored Channel Icons ~ Customa Devs (Sidebar \2192 coloredChannelIcons.m.css)\A"!important;
3 | /* stylelint-disable declaration-colon-newline-after */
4 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
5 | --INTVarColoredChannelIcon: "\A\A Colored Channel Icons - Module"
6 | "\A \2022 --ColNSFWWarning \2192 Allowed Values: Color (pref. #F44336)"
7 | "\A \2022 --ColNoPermissionNotice \2192 Allowed Values: Color (pref: #FFBD00))"
8 | "\A \2022 --ColGuildCrown \2192 Allowed Values: Color (pref: #FFBD00))"
9 | "\A \2022 --ColVoiceChannel \2192 Allowed Values: Color (pref. #72767d)"
10 | "\A \2022 --ColPrivateChannel \2192 Allowed Values: Color (pref. #72767d)"
11 | "\A \2022 --ColPrivateChannel \2192 Allowed Values: Color (pref. #72767d)"
12 | "\A \2022 --ColTextChannel \2192 Allowed Values: Color (pref. #72767d)"
13 | "\A \2022 --ColStoreChannel \2192 Allowed Values: Color (pref. #72767d)"
14 | "\A \2022 --ColAnnouncementChannel \2192 Allowed Values: Color (pref. #72767d)"!important;
15 | /* stylelint-enable */
16 | --ColNSFWWarning: #f44336;
17 | --ColNoPermissionNotice: #ffbd00;
18 | --ColGuildCrown: #ffbd00;
19 | --ColVoiceChannel: var(--DefDiscordIconColor);
20 | --ColPrivateChannel: var(--DefDiscordIconColor);
21 | --ColTextChannel: var(--DefDiscordIconColor);
22 | --ColStoreChannel: var(--DefDiscordIconColor);
23 | --ColAnnouncementChannel: var(--DefDiscordIconColor);
24 | --DefDiscordIconColor: var(--text-muted); /* DO NOT CHANGE THIS VARIABLE DIRECTLY */
25 | }
26 |
27 | /* stylelint-disable max-line-length */
28 | path[d="M19.8914 3.80204L22.2438 8.55654C22.5726 9.22119 22.0891 9.99999 21.3475 10L16.6179 10C15.8745 10 15.391 9.21769 15.7235 8.55279L18.1007 3.79829C18.4701 3.05951 19.5251 3.06172 19.8914 3.80204ZM18.4998 5H19.4999V7.5H18.4999L18.4998 5ZM18.4998 8.49887C18.4998 8.77589 18.7238 9 18.9998 9C19.2759 9 19.4999 8.77589 19.4999 8.49887C19.4999 8.22224 19.2759 7.99773 18.9998 7.99773C18.7238 7.99773 18.4998 8.22224 18.4998 8.49887Z"] {
29 | color: var(--ColNSFWWarning);
30 | }
31 |
32 | path[d="M21.025 5V4C21.025 2.88 20.05 2 19 2C17.95 2 17 2.88 17 4V5C16.4477 5 16 5.44772 16 6V9C16 9.55228 16.4477 10 17 10H19H21C21.5523 10 22 9.55228 22 9V5.975C22 5.43652 21.5635 5 21.025 5ZM20 5H18V4C18 3.42857 18.4667 3 19 3C19.5333 3 20 3.42857 20 4V5Z"],
33 | path[d="M17 11V7C17 4.243 14.756 2 12 2C9.242 2 7 4.243 7 7V11C5.897 11 5 11.896 5 13V20C5 21.103 5.897 22 7 22H17C18.103 22 19 21.103 19 20V13C19 11.896 18.103 11 17 11ZM12 18C11.172 18 10.5 17.328 10.5 16.5C10.5 15.672 11.172 15 12 15C12.828 15 13.5 15.672 13.5 16.5C13.5 17.328 12.828 18 12 18ZM15 11H9V7C9 5.346 10.346 4 12 4C13.654 4 15 5.346 15 7V11Z"],
34 | path[d="M15.1,3.2 L15.1,2 C15.1,0.88 14.05,0 13,0 C11.95,0 10.9,0.88 10.9,2 L10.9,3.2 C10.45,3.2 10,3.68 10,4.16 L10,6.96 C10,7.52 10.45,8 10.9,8 L15.025,8 C15.55,8 16,7.52 16,7.04 L16,4.24 C16,3.68 15.55,3.2 15.1,3.2 Z M14,3 L12,3 L12,1.92857143 C12,1.35714286 12.4666667,1 13,1 C13.5333333,1 14,1.35714286 14,1.92857143 L14,3 Z"] {
35 | color: var(--ColNoPermissionNotice);
36 | }
37 |
38 | .icon-1DeIlz path[d="M11.383 3.07904C11.009 2.92504 10.579 3.01004 10.293 3.29604L6 8.00204H3C2.45 8.00204 2 8.45304 2 9.00204V15.002C2 15.552 2.45 16.002 3 16.002H6L10.293 20.71C10.579 20.996 11.009 21.082 11.383 20.927C11.757 20.772 12 20.407 12 20.002V4.00204C12 3.59904 11.757 3.23204 11.383 3.07904ZM14 5.00195V7.00195C16.757 7.00195 19 9.24595 19 12.002C19 14.759 16.757 17.002 14 17.002V19.002C17.86 19.002 21 15.863 21 12.002C21 8.14295 17.86 5.00195 14 5.00195ZM14 9.00195C15.654 9.00195 17 10.349 17 12.002C17 13.657 15.654 15.002 14 15.002V13.002C14.551 13.002 15 12.553 15 12.002C15 11.451 14.551 11.002 14 11.002V9.00195Z"],
39 | .icon-1DeIlz path[d="M15 12C15 12.0007 15 12.0013 15 12.002C15 12.553 14.551 13.002 14 13.002V15.002C15.654 15.002 17 13.657 17 12.002C17 12.0013 17 12.0007 17 12H15ZM19 12C19 12.0007 19 12.0013 19 12.002C19 14.759 16.757 17.002 14 17.002V19.002C17.86 19.002 21 15.863 21 12.002C21 12.0013 21 12.0007 21 12H19ZM10.293 3.29604C10.579 3.01004 11.009 2.92504 11.383 3.07904C11.757 3.23204 12 3.59904 12 4.00204V20.002C12 20.407 11.757 20.772 11.383 20.927C11.009 21.082 10.579 20.996 10.293 20.71L6 16.002H3C2.45 16.002 2 15.552 2 15.002V9.00204C2 8.45304 2.45 8.00204 3 8.00204H6L10.293 3.29604Z"] {
40 | color: var(--ColVoiceChannel);
41 | }
42 |
43 | .children-19S4PO path[d="M12 2C6.486 2 2 6.486 2 12C2 17.515 6.486 22 12 22C14.039 22 15.993 21.398 17.652 20.259L16.521 18.611C15.195 19.519 13.633 20 12 20C7.589 20 4 16.411 4 12C4 7.589 7.589 4 12 4C16.411 4 20 7.589 20 12V12.782C20 14.17 19.402 15 18.4 15L18.398 15.018C18.338 15.005 18.273 15 18.209 15H18C17.437 15 16.6 14.182 16.6 13.631V12C16.6 9.464 14.537 7.4 12 7.4C9.463 7.4 7.4 9.463 7.4 12C7.4 14.537 9.463 16.6 12 16.6C13.234 16.6 14.35 16.106 15.177 15.313C15.826 16.269 16.93 17 18 17L18.002 16.981C18.064 16.994 18.129 17 18.195 17H18.4C20.552 17 22 15.306 22 12.782V12C22 6.486 17.514 2 12 2ZM12 14.599C10.566 14.599 9.4 13.433 9.4 11.999C9.4 10.565 10.566 9.399 12 9.399C13.434 9.399 14.6 10.565 14.6 11.999C14.6 13.433 13.434 14.599 12 14.599Z"] {
44 | color: var(--ColPrivateChannel);
45 | }
46 |
47 | path[d="M5.88657 21C5.57547 21 5.3399 20.7189 5.39427 20.4126L6.00001 17H2.59511C2.28449 17 2.04905 16.7198 2.10259 16.4138L2.27759 15.4138C2.31946 15.1746 2.52722 15 2.77011 15H6.35001L7.41001 9H4.00511C3.69449 9 3.45905 8.71977 3.51259 8.41381L3.68759 7.41381C3.72946 7.17456 3.93722 7 4.18011 7H7.76001L8.39677 3.41262C8.43914 3.17391 8.64664 3 8.88907 3H9.87344C10.1845 3 10.4201 3.28107 10.3657 3.58738L9.76001 7H15.76L16.3968 3.41262C16.4391 3.17391 16.6466 3 16.8891 3H17.8734C18.1845 3 18.4201 3.28107 18.3657 3.58738L17.76 7H21.1649C21.4755 7 21.711 7.28023 21.6574 7.58619L21.4824 8.58619C21.4406 8.82544 21.2328 9 20.9899 9H17.41L16.35 15H19.7549C20.0655 15 20.301 15.2802 20.2474 15.5862L20.0724 16.5862C20.0306 16.8254 19.8228 17 19.5799 17H16L15.3632 20.5874C15.3209 20.8261 15.1134 21 14.8709 21H13.8866C13.5755 21 13.3399 20.7189 13.3943 20.4126L14 17H8.00001L7.36325 20.5874C7.32088 20.8261 7.11337 21 6.87094 21H5.88657ZM9.41045 9L8.35045 15H14.3504L15.4104 9H9.41045Z"],
48 | path[d="M14 8C14 7.44772 13.5523 7 13 7H9.76001L10.3657 3.58738C10.4201 3.28107 10.1845 3 9.87344 3H8.88907C8.64664 3 8.43914 3.17391 8.39677 3.41262L7.76001 7H4.18011C3.93722 7 3.72946 7.17456 3.68759 7.41381L3.51259 8.41381C3.45905 8.71977 3.69449 9 4.00511 9H7.41001L6.35001 15H2.77011C2.52722 15 2.31946 15.1746 2.27759 15.4138L2.10259 16.4138C2.04905 16.7198 2.28449 17 2.59511 17H6.00001L5.39427 20.4126C5.3399 20.7189 5.57547 21 5.88657 21H6.87094C7.11337 21 7.32088 20.8261 7.36325 20.5874L8.00001 17H14L13.3943 20.4126C13.3399 20.7189 13.5755 21 13.8866 21H14.8709C15.1134 21 15.3209 20.8261 15.3632 20.5874L16 17H19.5799C19.8228 17 20.0306 16.8254 20.0724 16.5862L20.2474 15.5862C20.301 15.2802 20.0655 15 19.7549 15H16.35L16.6758 13.1558C16.7823 12.5529 16.3186 12 15.7063 12C15.2286 12 14.8199 12.3429 14.7368 12.8133L14.3504 15H8.35045L9.41045 9H13C13.5523 9 14 8.55228 14 8Z"] {
49 | color: var(--ColTextChannel);
50 | }
51 |
52 | path[d="M3.9 8.26H2V15.2941H3.9V8.26Z"],
53 | path[d="M19.1 4V5.12659L4.85 8.26447V18.1176C4.85 18.5496 5.1464 18.9252 5.5701 19.0315L9.3701 19.9727C9.4461 19.9906 9.524 20 9.6 20C9.89545 20 10.1776 19.8635 10.36 19.6235L12.7065 16.5242L19.1 17.9304V19.0588H21V4H19.1ZM9.2181 17.9944L6.75 17.3826V15.2113L10.6706 16.0753L9.2181 17.9944Z"] {
54 | color: var(--ColAnnouncementChannel);
55 | }
56 |
57 | path[d="M21.707 13.293l-11-11C10.519 2.105 10.266 2 10 2H3c-.553 0-1 .447-1 1v7c0 .266.105.519.293.707l11 11c.195.195.451.293.707.293s.512-.098.707-.293l7-7c.391-.391.391-1.023 0-1.414zM7 9c-1.106 0-2-.896-2-2 0-1.106.894-2 2-2 1.104 0 2 .894 2 2 0 1.104-.896 2-2 2z"] {
58 | color: var(--ColStoreChannel);
59 | }
60 | /* stylelint-enable max-line-length */
61 |
62 | .ownerIcon-2NH9FM path {
63 | color: var(--ColGuildCrown);
64 | }
65 |
--------------------------------------------------------------------------------
/Sidebar/folderNames.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModFolderNames: " \2022 Folder Names ~ Customa Devs (Sidebar \2192 folderNames.m.css) - Powercord only\A"!important;
3 | }
4 |
5 | .wrapper-3Njo_c::before {
6 | content: attr(data-folder-name);
7 | color: var(--text-normal);
8 | text-align: center;
9 | white-space: pre-line;
10 | display: block;
11 | margin-bottom: 5px;
12 | position: relative;
13 | }
14 |
15 | .expandedFolderIconWrapper-Huv7rA {
16 | top: 20px;
17 | }
18 |
--------------------------------------------------------------------------------
/Sidebar/wrapperChannel.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModWrapperChannel: " \2022 Channel Wrapper ~ Customa Devs (Sidebar \2192 wrapperChannel.m.css)\A"!important;
3 | /* stylelint-disable declaration-colon-newline-after */
4 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
5 | --INTVarWrapperChannel: "\A\A Channel Wrapper - Module"
6 | "\A \2022 --WidthChannelMin \2192 Allowed Values: XYpx (pref. 46px)"
7 | "\A \2022 --WidthChannelMax \2192 Allowed Values: XYpx (pref. 240px)"
8 | "\A \2022 --DurationWrapperChannel \2192 Allowed Values: Time [in s or ms] (pref. 200ms)"
9 | "\A \2022 --DelayWrapperOpen \2192 Allowed Values: Time [in s or ms] (pref. 200ms)"
10 | "\A \2022 --DelayWrapperClose \2192 Allowed Values: Time [in s or ms] (pref. 200ms)"!important;
11 | /* stylelint-enable */
12 | --WidthChannelMax: 240px;
13 | --WidthChannelMin: 48px;
14 | --DurationWrapperChannel: 200ms;
15 | --DelayWrapperOpen: 0ms;
16 | --DelayWrapperClose: 0ms;
17 | --width-channel-closed: var(--WidthChannelMin);
18 | --width-channel-open: var(--WidthChannelMax);
19 | }
20 |
21 | /* Basic movement */
22 | .chat-3bRxxu /* Move Chat over Sidebar */, .container-1D34oG /* Friend */, .container-3Mxszk /* Game Library */, .applicationStore-1pNvnv /* Nitro Store */ {
23 | transform: translateX(calc(var(--WidthChannelMin) - var(--WidthChannelMax)));
24 | z-index: 2;
25 | min-width: calc(100% - var(--WidthChannelMin));
26 | transition: all var(--DurationWrapperChannel) var(--DelayWrapperClose);
27 | border-left: 3px solid var(--ColBackground1);
28 | }
29 |
30 | .sidebar-2K8pFh /* Set Sidebar below Chat */ {
31 | z-index: 1;
32 | }
33 |
34 | .sidebar-2K8pFh:hover + .chat-3bRxxu /* Move Chat away on Hover */, .sidebar-2K8pFh:hover + .container-1D34oG /* Friend */, .sidebar-2K8pFh:hover + .container-3Mxszk
35 | /* Game Library */, .sidebar-2K8pFh:hover + .applicationStore-1pNvnv /* Nitro Store */ {
36 | transform: translateX(0);
37 | transition: all var(--DurationWrapperChannel) var(--DelayWrapperOpen);
38 | border-width: 0;
39 | }
40 |
41 | /* #region DM */
42 |
43 | /* Sidebar unhovered - DM */
44 | .privateChannelsHeaderContainer-3NB1K1 {
45 | transform: translateX(-195px);
46 | transition: transform var(--DurationWrapperChannel);
47 | }
48 |
49 | .channel-2QD9_O /* Private Channel */ {
50 | margin-left: 0;
51 | transition: margin var(--DurationWrapperChannel);
52 | }
53 |
54 | .channel-2QD9_O .layout-2DM8Md /* Private Channel */ {
55 | border-radius: 0;
56 | padding-left: 6px;
57 | transition: all var(--DurationWrapperChannel);
58 | }
59 |
60 | /* Sidebar hovered - DM */
61 | .sidebar-2K8pFh:hover .privateChannelsHeaderContainer-3NB1K1 {
62 | transform: translateX(0);
63 | }
64 |
65 | .sidebar-2K8pFh:hover .channel-2QD9_O /* Private Channel */ {
66 | margin-left: 8px;
67 | }
68 |
69 | .sidebar-2K8pFh:hover .channel-2QD9_O .layout-2DM8Md /* Private Channel */ {
70 | padding-left: 8px;
71 | border-radius: 4px;
72 | }
73 | /* #endregion DM */
74 |
75 | /* #region Guild */
76 | /* Sidebar unhovered - Guild */
77 | .containerDefault--pIXnN .content-1x5b-n /* Guild Channel */ {
78 | margin-left: 0;
79 | margin-right: 8px;
80 | border-radius: 0;
81 | padding-left: 15px;
82 | transition: margin var(--DurationWrapperChannel), border-radius var(--DurationWrapperChannel), padding-left var(--DurationWrapperChannel);
83 | }
84 |
85 | .containerDefault--pIXnN .content-1x5b-n .icon-1DeIlz /* Guild Channel Type Icon */ {
86 | margin-right: 13px;
87 | transition: margin var(--DurationWrapperChannel);
88 | }
89 |
90 | .container-35XQWE /* Notification Bar */ {
91 | width: calc(var(--WidthChannelMin) - 16px);
92 | transition: width var(--DurationWrapperChannel);
93 | }
94 |
95 | .container-35XQWE span /* Notification Bar Text */ {
96 | opacity: 0;
97 | transition: opacity var(--DurationWrapperChannel);
98 | }
99 |
100 | .unread-2lAfLh + .content-1x5b-n, .containerDefault--pIXnN:hover .unread-2lAfLh + .content-1x5b-n /* Add Accent color to unread channel background */ {
101 | background-color: var(--ColAccent);
102 | }
103 |
104 | .containerDefault--pIXnN .unread-2lAfLh + .content-1x5b-n svg, .containerDefault--pIXnN .unread-2lAfLh + .content-1x5b-n svg path /* Fix contrast for unread channels */ {
105 | color: var(--ColFont)!important;
106 | }
107 |
108 | .unread-2lAfLh /* Remove unread dot */ {
109 | display: none;
110 | }
111 |
112 | .containerDefault-3tr_sE .name-3l27Hl /* Channel Divider Name */ {
113 | display: none;
114 | }
115 |
116 | .containerDefault-3tr_sE .children-L002ao /* Channel Divider Actions */ {
117 | margin-left: 10px;
118 | }
119 |
120 | .list-2luk8a /* Voice Users */ {
121 | padding-left: 4px;
122 | transition: padding var(--DurationWrapperChannel);
123 | }
124 |
125 | .listDefault-3ir5aS .avatarContainer-28iYmV /* Voice Users Avatar */ {
126 | margin-right: 12px;
127 | transition: margin var(--DurationWrapperChannel);
128 | }
129 |
130 | .guildIconContainer-2FW_iA, .name-1jkAdW /* Guild Boost Icon and Guild Name */ {
131 | opacity: 0;
132 | transition: opacity var(--DurationWrapperChannel);
133 | }
134 |
135 | .powercord-badge-cutie /* Powercord donator icon */ {
136 | margin-left: 4px;
137 | transition: margin var(--DurationWrapperChannel);
138 | }
139 |
140 | /* Sidebar hovered - Guild */
141 | .sidebar-2K8pFh:hover .containerDefault--pIXnN .content-1x5b-n /* Guild Channel */ {
142 | margin-left: 8px;
143 | border-radius: 4px;
144 | padding-left: 8px;
145 | }
146 |
147 | .sidebar-2K8pFh:hover .containerDefault--pIXnN .content-1x5b-n .icon-1DeIlz /* Guild Channel Type Icon */ {
148 | margin-right: 6px;
149 | }
150 |
151 | .sidebar-2K8pFh:hover .container-35XQWE /* Notification Bar */ {
152 | width: calc(var(--WidthChannelMax) - 16px);
153 | }
154 |
155 | .sidebar-2K8pFh:hover .container-35XQWE span /* Notification Bar Text */ {
156 | opacity: 1;
157 | transition: opacity var(--DurationWrapperChannel) var(--DurationWrapperChannel);
158 | }
159 |
160 | .sidebar-2K8pFh:hover .containerDefault-3tr_sE .name-3l27Hl /* Channel Divider Name */ {
161 | display: block;
162 | }
163 |
164 | .sidebar-2K8pFh:hover .list-2luk8a /* Voice Users */ {
165 | padding-left: 36px;
166 | }
167 |
168 | .sidebar-2K8pFh:hover .listDefault-3ir5aS .avatarContainer-28iYmV /* Voice Users Avatar */ {
169 | margin-right: 12px;
170 | }
171 |
172 | .sidebar-2K8pFh:hover .guildIconContainer-2FW_iA, .sidebar-2K8pFh:hover .name-1jkAdW /* Guild Boost Icon and Guild Name */ {
173 | opacity: 1;
174 | }
175 |
176 | .sidebar-2K8pFh:hover .powercord-badge-cutie /* Powercord donator icon */ {
177 | margin-left: 0;
178 | }
179 | /* #endregion Guild */
180 |
181 | /* #region Misc */
182 | /* Sidebar unhovered - Misc */
183 | .container-3baos1 /* User Box */ {
184 | padding-left: 6px;
185 | transition: padding var(--DurationWrapperChannel);
186 | transition-delay: 0ms;
187 | }
188 |
189 | .container-3baos1 .avatarWrapper-2yR4wp /* User Box Avatar */ {
190 | margin-right: 12px;
191 | transition: margin var(--DurationWrapperChannel);
192 | transition-delay: 0ms;
193 | }
194 |
195 | .actionButtons-14eAc_ /* Voice Buttons Container */ {
196 | display: block;
197 | }
198 |
199 | .actionButtons-14eAc_ button /* Voice Buttons */ {
200 | margin-bottom: 5px;
201 | margin-left: 0;
202 | width: 38px;
203 | min-width: 0;
204 | padding: 0 10px;
205 | transition: width var(--DurationWrapperChannel);
206 | }
207 |
208 | .container-1giJp5 /* Voice Container */ {
209 | padding-left: 4px;
210 | }
211 |
212 | .ping-2NgC8E /* Voice Container Ping */ {
213 | width: 40px;
214 | transition: width var(--DurationWrapperChannel);
215 | }
216 |
217 | .rtcConnectionStatus-2-jIsi /* Voice Container Ping Container */ {
218 | margin-bottom: -10px;
219 | transition: margin var(--DurationWrapperChannel);
220 | }
221 |
222 | .container-1giJp5 .subtext-3CDbHg /* Voice Container Ping Subtext */ {
223 | transform: translateX(-200px);
224 | transition: transform var(--DurationWrapperChannel);
225 | }
226 |
227 | .spotify-seek-bar /* Move Spotify Progress down so it isn't blocked by the typing indicator */ {
228 | width: var(--WidthChannelMin);
229 | transition: all var(--DurationWrapperChannel)!important;
230 | }
231 |
232 | .sidebar-2K8pFh:hover .spotify-seek-bar {
233 | width: var(--WidthChannelMax);
234 | }
235 |
236 | .listeningAlong-30wH70 .party-2cIOyb {
237 | order: 1;
238 | flex-grow: 0;
239 | margin-left: -6px;
240 | margin-right: 10px;
241 | }
242 |
243 | .listeningAlong-30wH70 > div:first-child {
244 | order: 2;
245 | flex-grow: 40;
246 | }
247 |
248 | .listeningAlong-30wH70 .icons-2uekgw {
249 | order: 3;
250 | flex-grow: 0;
251 | }
252 |
253 | /* Sidebar hovered - Misc */
254 | .sidebar-2K8pFh:hover .container-3baos1 /* User box */ {
255 | padding-left: 8px;
256 | }
257 |
258 | .sidebar-2K8pFh:hover .container-3baos1 .avatarWrapper-2yR4wp /* User box avatar */ {
259 | margin-right: 8px;
260 | }
261 |
262 | .sidebar-2K8pFh:hover .container-1giJp5 .subtext-3CDbHg /* Voice Container */ {
263 | transform: translateX(0);
264 | }
265 |
266 | .sidebar-2K8pFh:hover .actionButtons-14eAc_ button /* Voice Buttons */ {
267 | width: 100%;
268 | }
269 |
270 | .sidebar-2K8pFh:hover .ping-2NgC8E /* Voice Container Ping */ {
271 | width: 16px;
272 | }
273 |
274 | .sidebar-2K8pFh:hover .rtcConnectionStatus-2-jIsi /* Voice Container Ping Container */ {
275 | margin-bottom: 0;
276 | }
277 |
278 | .sidebar-2K8pFh:hover + .chat-3bRxxu .slateTextArea-1Mkdgw {
279 | max-width: calc(100% - var(--width-channel-open));
280 | }
281 |
282 | /* #endregion Misc */
283 |
--------------------------------------------------------------------------------
/Sidebar/wrapperGuild.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModWrapperGuild: " \2022 Guild Wrapper ~ Customa Devs (Sidebar \2192 wrapperGuild.m.css)\A"!important;
3 | /* stylelint-disable declaration-colon-newline-after */
4 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
5 | --INTVarWrapperGuild: "\A\A Guild Wrapper - Module"
6 | "\A \2022 --DurationWrapperGuild \2192 Allowed Values: Time [in s or ms] (pref. 200ms)"
7 | "\A \2022 --FilterNoHover \2192 Allowed Values: CSS Filter (pref. grayscale(100%))"
8 | "\A \2022 --FilterHover \2192 Allowed Values: CSS Filter (pref. grayscale(0%))"!important;
9 | /* stylelint-enable */
10 | --FilterNoHover: grayscale(100%);
11 | --FilterHover: grayscale(0%);
12 | --DurationWrapperGuild: 200ms;
13 |
14 | --width-guild-open: 76px;
15 | }
16 |
17 | .wrapper-3NnKdC /* GuildsWrapper */ {
18 | width: var(--width-guild-open);
19 | }
20 |
21 | .base-3dtUhz {
22 | position: absolute;
23 | left: 16px;
24 | width: calc(100% - 16px);
25 | height: 100%;
26 | transform: translateX(0);
27 | transition: all 400ms;
28 | }
29 |
30 | .wrapper-3NnKdC:hover + .base-3dtUhz {
31 | transform: translateX(60px);
32 | }
33 |
34 | .powercord .listItem-GuPuDH svg:not(.icon-3s6X1M) /* Set Filter when server is not hovered */ {
35 | filter: var(--FilterNoHover);
36 | transition: filter 200ms;
37 | }
38 |
39 | .powercord .listItem-GuPuDH.selected svg, .powercord .listItem-GuPuDH:hover svg, .powercord .listItem-GuPuDH a.selected-bZ3Lue,
40 | .powercord .guilds-1SWlCJ .scroller-1Bvpku > div:not([data-ref-id="guildsnav"]) > .listItem-GuPuDH svg,
41 | .powercord div[data-ref-id="guildsnav"] ~ .listItem-GuPuDH svg /* Set Filter when server is hovered */ {
42 | filter: var(--FilterHover);
43 | }
44 |
45 | .wrapper-3NnKdC .scroller-1Bvpku /* Move Scroller to left to move guilds out of view */ {
46 | padding-left: 5px;
47 | }
48 |
49 | .wrapper-3NnKdC .listItem-GuPuDH img, .wrapper-3NnKdC .listItem-GuPuDH .acronym-2mOFsV, .wrapper-3NnKdC .listItem-GuPuDH .folder-1hbNCn, .wrapper-3NnKdC .listItem-GuPuDH
50 | .circleIconButton-1QV--U /* Disable Animation on Hover/Select */ {
51 | border-radius: 25px!important;
52 | }
53 |
54 | .wrapper-3NnKdC .listItem-GuPuDH mask /* Disable Animation on Hover/Select */ {
55 | display: none;
56 | }
57 |
58 | .wrapper-3NnKdC .listItem-GuPuDH .iconBadge-2NuvG9.participating-1NvRVd {
59 | color: var(--ColAccent);
60 | }
61 |
62 | .tutorialContainer-2sGCg9 .listItem-GuPuDH .listItemWrapper-KhRmzM svg .wrapper-1BJsBx .childWrapper-anI2G9,
63 | .tutorialContainer-2sGCg9 .listItem-GuPuDH .pill-3N7f9r /* Remove Home Guild, Remove Home Guild Selected */ {
64 | visibility: hidden;
65 | }
66 |
67 | .tutorialContainer-2sGCg9 .listItem-GuPuDH /* Make first guild small */ {
68 | height: 18px;
69 | margin: 0;
70 | }
71 |
72 | .tutorialContainer-2sGCg9 .listItem-GuPuDH .listItemWrapper-KhRmzM svg .wrapper-1BJsBx::after /* Add own "Home" Select */ {
73 | content: "Home";
74 | color: var(--ColFont);
75 | position: absolute;
76 | top: 3px;
77 | left: 7px;
78 | font-size: 12px;
79 | visibility: visible!important;
80 | text-transform: uppercase;
81 | font-weight: 600;
82 | text-align: center;
83 | line-height: 130%;
84 | transition: color var(--DurationGuildsWrapper);
85 | }
86 |
87 | .tutorialContainer-2sGCg9 .listItem-GuPuDH:hover .listItemWrapper-KhRmzM svg .wrapper-1BJsBx::after,
88 | .tutorialContainer-2sGCg9 .listItem-GuPuDH .listItemWrapper-KhRmzM svg .wrapper-1BJsBx.selected-bZ3Lue::after {
89 | color: var(--ColAccent);
90 | }
91 |
92 | .guildSeparator-33mFX6 /* Remove Seperator between Home and Guilds */ {
93 | display: none;
94 | }
95 |
96 | .wrapper-3NnKdC .listItem-GuPuDH div[class^="pill"] .item-2hkk8m {
97 | width: 5px;
98 | border-radius: 4px;
99 | margin-left: 1px!important;
100 | transform: none!important;
101 | }
102 |
103 | .wrapper-3NnKdC .listItem-GuPuDH div[class^="pill"] .item-2hkk8m[style*="height: 8"], .wrapper-3NnKdC .listItem-GuPuDH div[class^="pill"] .item-2hkk8m[style*="height: 7"] {
104 | height: 5px!important;
105 | }
106 |
107 | .wrapper-3NnKdC .listItem-GuPuDH div[class^="pill"] .item-2hkk8m:not([style*="opacity: 0;"]) {
108 | opacity: 1!important;
109 | }
110 |
111 | .wrapper-3NnKdC .listItem-GuPuDH .wrapper-25eVIn .lowerBadge-29hYVK > * /* Ping Notification */ {
112 | background-color: transparent!important;
113 | color: var(--ColAccent)!important;
114 | position: absolute;
115 | right: 49px!important;
116 | bottom: -12px!important;
117 | box-shadow: none!important;
118 | }
119 |
120 | .wrapper-3NnKdC .listItem-GuPuDH .wrapper-25eVIn .upperBadge-2XnnGB > * /* Every other Notification */ {
121 | background-color: transparent!important;
122 | right: 48px!important;
123 | position: absolute;
124 | top: -12px!important;
125 | }
126 |
127 | .wrapper-3NnKdC .tutorialContainer-2sGCg9 .listItem-GuPuDH .wrapper-25eVIn .lowerBadge-29hYVK > * /* Friend Notification */ {
128 | bottom: 29.5px!important;
129 | }
130 |
131 | .wrapper-3NnKdC [class^="unreadMentionsIndicator"] .bar-30k2ka {
132 | width: 12px;
133 | height: 12px;
134 | transition: width 200ms, height 200ms 200ms;
135 | }
136 |
137 | /* Hide non active bar */
138 | .wrapper-3NnKdC .unreadMentionsIndicatorBottom-BXS58x .bar-30k2ka:not(.mention-1f5kbO) {
139 | padding-top: 8px!important;
140 | }
141 |
142 | /* Unread Mentions Indicator */
143 | .wrapper-3NnKdC [class^="unreadMentionsIndicator"] {
144 | padding-left: 2px;
145 | transition: padding 200ms 200ms;
146 | }
147 |
148 | .wrapper-3NnKdC:hover [class^="unreadMentionsIndicator"] {
149 | padding-left: 8px;
150 | }
151 |
152 | .wrapper-3NnKdC:hover [class^="unreadMentionsIndicator"] .bar-30k2ka {
153 | width: 54px;
154 | height: 24px;
155 | transition: width 200ms 400ms, height 200ms 200ms;
156 | }
157 |
158 | .wrapper-3NnKdC [class^="unreadMentionsIndicator"] .bar-30k2ka span {
159 | opacity: 0;
160 | transition: opacity 200ms;
161 | }
162 |
163 | .wrapper-3NnKdC:hover [class^="unreadMentionsIndicator"] .bar-30k2ka span {
164 | opacity: 1;
165 | transition: opacity 200ms 400ms;
166 | }
167 |
168 | .wrapper-21YSNc::before {
169 | transform: translateX(5px);
170 | transition: transform 200ms;
171 | }
172 |
173 | .wrapper-3NnKdC:hover .wrapper-21YSNc::before {
174 | transform: translateX(0);
175 | }
176 |
177 | .guilds-1swlcj:hover + .base-3dtUhz .slateTextArea-1Mkdgw {
178 | max-width: calc(100% - var(--width-channel-closed) - var(--width-guild-open));
179 | }
180 |
--------------------------------------------------------------------------------
/Sidebar/wrapperMember.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModWrapperMember: " \2022 Member Wrapper ~ Customa Devs (Sidebar \2192 wrapperMember.m.css)\A"!important;
3 | /* stylelint-disable declaration-colon-newline-after */
4 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
5 | --INTVarWrapperMember: "\A\A Member Wrapper - Module"
6 | "\A \2022 --WidthSidebarMin \2192 Allowed Values: XYpx (pref. 65px)"
7 | "\A \2022 --WidthSidebarMax \2192 Allowed Values: XYpx (pref. 240px)"
8 | "\A \2022 --DurationWrapperMember \2192 Allowed Values: Time [in s or ms] (pref. 200ms)"!important;
9 | /* stylelint-enable */
10 | --WidthSidebarMin: 60px;
11 | --WidthSidebarMax: 240px;
12 | --DurationWrapperMember: 200ms;
13 | }
14 |
15 | .membersWrap-2h-GB4 {
16 | transition: transform var(--DurationWrapperMember);
17 | right: 0;
18 | z-index: 999;
19 | }
20 |
21 | .chatContent-a9vAAp {
22 | min-width: calc(100% - var(--WidthSidebarMin));
23 | }
24 |
25 | .membersWrap-2h-GB4:hover {
26 | transform: translateX(calc((var(--WidthSidebarMax) * -1) + var(--WidthSidebarMin)));
27 | min-width: var(--WidthSidebarMax);
28 | }
29 |
30 | .members-1998pB {
31 | width: var(--WidthSidebarMax);
32 | }
33 |
34 | .member-3-YXUe {
35 | max-width: calc(var(--WidthSidebarMax) - 16px);
36 | }
37 |
38 | .searchResultsWrap-3-pOjs {
39 | transform: translateX(-350px);
40 | height: calc(100% - 52px);
41 | overflow: visible;
42 | }
43 |
44 | .searchResultsWrap-3-pOjs::after {
45 | content: "";
46 | background-color: var(--ColBackground1);
47 | right: 0;
48 | position: absolute;
49 | display: block;
50 | bottom: -52px;
51 | height: 52px;
52 | width: 70px;
53 | }
54 |
55 | .membersGroup-v9BXpm {
56 | transform: translateX(calc(var(--WidthSidebarMin) + 10px));
57 | transition: transform var(--DurationWrapperMember);
58 | padding: 4px 8px 4px 16px;
59 | height: unset;
60 | }
61 |
62 | .membersWrap-2h-GB4:hover .membersGroup-v9BXpm {
63 | transform: translateX(0);
64 | }
65 |
66 | .content-yTz4x3 .scroller-11cdZM /* Fix for NSFW Channel */ {
67 | min-width: 100%;
68 | }
69 |
--------------------------------------------------------------------------------
/Titlebar/cakeOSTitlebar.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModCakeOSTitlebar: " \2022 CakeOS Titlebar ~ Customa Devs (Titlebar \2192 cakeosTitlebar.m.css)\A"!important;
3 | /* stylelint-disable declaration-colon-newline-after */
4 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
5 | --INTVarCakeOSTitlebar: "\A\A CakeOS Titlebar - Module"
6 | "\A \2022 --ColCakeOSClose \2192 Allowed Values: Color (pref. #xxxxxx)"
7 | "\A \2022 --ColCakeOSCloseHover \2192 Allowed Values: Color (pref. #xxxxxx)"
8 | "\A \2022 --ColCakeOSMaximize \2192 Allowed Values: Color (pref. #xxxxxx)"
9 | "\A \2022 --ColCakeOSMaximizeHover \2192 Allowed Values: Color (pref. #xxxxxx)"
10 | "\A \2022 --ColCakeOSMinimize \2192 Allowed Values: Color (pref. #xxxxxx)"
11 | "\A \2022 --ColCakeOSMinimizeHover \2192 Allowed Values: Color (pref. #xxxxxx)"!important;
12 | /* stylelint-enable */
13 | --ColCakeOSClose: #fac0f2;
14 | --ColCakeOSCloseHover: #ff2851;
15 | --ColCakeOSMaximize: #c8ffe0;
16 | --ColCakeOSMaximizeHover: #3ecf8e;
17 | --ColCakeOSMinimize: #fff7d3;
18 | --ColCakeOSMinimizeHover: #f7a623;
19 | }
20 |
21 | .winButton-iRh8-Z {
22 | padding: 0 6px;
23 | background: transparent!important;
24 | opacity: 1;
25 | }
26 |
27 | .winButton-iRh8-Z svg > * {
28 | display: none;
29 | }
30 |
31 | .winButtonClose-1HsbF- svg {
32 | background-color: var(--ColCakeOSClose)!important;
33 | border: 1px solid var(--ColCakeOSCloseHover);
34 | border-radius: 50%;
35 | transition: background-color .2s;
36 | }
37 |
38 | .winButtonClose-1HsbF-:hover svg {
39 | background: var(--ColCakeOSCloseHover)!important;
40 | }
41 |
42 | .winButtonMinMax-PBQ2gm[aria-label="Maximise"] svg, .winButtonMinMax-PBQ2gm[aria-label="Maximize"] svg {
43 | background-color: var(--ColCakeOSMaximize)!important;
44 | border: 1px solid var(--ColCakeOSMaximizeHover);
45 | border-radius: 50%;
46 | transition: background-color .2s;
47 | }
48 |
49 | .winButtonMinMax-PBQ2gm[aria-label="Maximise"]:hover svg, .winButtonMinMax-PBQ2gm[aria-label="Maximize"]:hover svg {
50 | background: var(--ColCakeOSMaximizeHover)!important;
51 | }
52 |
53 | .winButtonMinMax-PBQ2gm[aria-label="Minimise"] svg, .winButtonMinMax-PBQ2gm[aria-label="Minimize"] svg {
54 | background-color: var(--ColCakeOSMinimize)!important;
55 | border: 1px solid var(--ColCakeOSMinimizeHover);
56 | border-radius: 50%;
57 | transition: background-color .2s;
58 | }
59 |
60 | .winButtonMinMax-PBQ2gm[aria-label="Minimise"]:hover svg, .winButtonMinMax-PBQ2gm[aria-label="Minimize"]:hover svg {
61 | background: var(--ColCakeOSMinimizeHover)!important;
62 | }
63 |
--------------------------------------------------------------------------------
/Titlebar/customWordmark.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModCustomWordmark: " \2022 Custom Wordmark ~ Customa Devs (Titlebar \2192 customWordmark.m.css)\A"!important;
3 | /* stylelint-disable declaration-colon-newline-after */
4 | /* Has been done since multiline variables are not according to spec but R E A D A B I L I T Y */
5 | --INTVarCustomWordmark: "\A\A Custom Wordmark - Module"
6 | "\A \2022 --DisplayDiscordLogo \2192 Allowed Values: visible/hidden"
7 | "\A \2022 --TextTitlebarBefore \2192 Allowed Values: Text"
8 | "\A \2022 --TextTitlebarAfter \2192 Allowed Values: Text"!important;
9 | /* stylelint-enable */
10 | --DisplayDiscordLogo: visible;
11 | --TextTitlebarAfter: " - Customa";
12 | --TextTitlebarBefore: "Canary: ";
13 | }
14 |
15 | .wordmark-2iDDfm::after, .wordmark-2iDDfm::before {
16 | color: var(--text-muted);
17 | white-space: pre;
18 | font-size: 12px;
19 | display: block;
20 | position: unset;
21 | top: 0;
22 | left: 8px;
23 | padding-top: 1%;
24 | visibility: visible!important;
25 | }
26 |
27 | .wordmark-2iDDfm::before {
28 | content: var(--TextTitlebarBefore)!important;
29 | }
30 |
31 | .wordmark-2iDDfm::after {
32 | content: var(--TextTitlebarAfter)!important;
33 | }
34 |
35 | .wordmark-2iDDfm {
36 | display: flex;
37 | visibility: var(--DisplayDiscordLogo)!important;
38 | }
39 |
--------------------------------------------------------------------------------
/WIP/betterJumpLinks.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --DisplayInBlockQuotes: inline;
3 | --DisplayOutBlockQuotes: inline;
4 | }
5 |
6 |
7 | a[href*="discordapp.com/channels/"], blockquote a[href*="discordapp.com/channels/"],
8 | a[href*="discord.com/channels/"], blockquote a[href*="discord.com/channels/"] {
9 | visibility: hidden;
10 | font-size: 0;
11 | text-decoration: none!important;
12 | }
13 |
14 | a[href*="discordapp.com/channels/"]::after, blockquote a[href*="discordapp.com/channels/"]::after,
15 | a[href*="discord.com/channels/"]::after, blockquote a[href*="discord.com/channels/"]::after {
16 | visibility: visible!important;
17 | font-size: .8rem;
18 | border-radius: 4px;
19 | line-height: 20px;
20 | padding: 0 10px;
21 | opacity: .8;
22 | margin: 3px;
23 | display: inline;
24 | background: rgb(235, 235, 235);
25 | transition: opacity 200ms;
26 | color: rgb(115, 127, 141);
27 | }
28 |
29 | a[href*="discordapp.com/channels/"]::after, blockquote a[href*="discordapp.com/channels/"]::after,
30 | a[href*="discord.com/channels/"]::after, blockquote a[href*="discord.com/channels/"]::after {
31 | content: "Jump to the message";
32 | }
33 |
34 | a:hover::after {
35 | opacity: 1;
36 | }
37 |
--------------------------------------------------------------------------------
/Webkit/advancedScrollbar.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModAdvancedScrollbar: " \2022 Advanced Scrollbar ~ Customa Devs (Webkit \2192 advancedScrollbar.m.css)\A"!important;
3 | }
4 |
5 | /* stylelint-disable no-descending-specificity */
6 | ::-webkit-scrollbar {
7 | width: 3px!important;
8 | height: 3px!important;
9 | border-radius: 0!important;
10 | display: block;
11 | }
12 |
13 | ::-webkit-scrollbar-track-piece {
14 | background-color: rgba(0, 0, 0, 0)!important;
15 | border: none!important;
16 | box-shadow: none!important;
17 | border-radius: 0!important;
18 | }
19 |
20 | ::-webkit-scrollbar-thumb, ::-webkit-scrollbar-track {
21 | border-radius: 0!important;
22 | border: none!important;
23 | }
24 |
25 | ::-webkit-scrollbar-thumb {
26 | background-color: var(--ColAccent)!important;
27 | border-radius: 0!important;
28 | }
29 | /* stylelint-enable no-descending-specificity */
30 |
--------------------------------------------------------------------------------
/Webkit/customPlaceholder.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModCustomPlaceholder: " \2022 Custom Placeholder ~ Customa Devs (Webkit \2192 customPlaceholder.m.css)\A"!important;
3 | --INTVarCustomPlaceholder: "\A\A Custom Placeholer - Module \A \2022 --ContentCustomPlaceholder \2192 Allowed Values: Text"!important;
4 | --ContentCustomPlaceholder: "Toot!"; /* mastodon time */
5 | }
6 |
7 | /* add the "placeholder" */
8 | .placeholder-37qJjk::before {
9 | content: var(--ContentCustomPlaceholder);
10 | visibility: visible;
11 | }
12 |
13 | .placeholder-37qJjk {
14 | visibility: hidden;
15 | }
16 |
--------------------------------------------------------------------------------
/Webkit/placeholderRemover.m.css:
--------------------------------------------------------------------------------
1 | :root {
2 | --INTModPlaceholderRemover: " \2022 Placeholder Remover ~ Customa Devs (Webkit \2192 placeholderRemover.m.css)\A"!important;
3 | }
4 |
5 | ::-webkit-input-placeholder, textarea::-webkit-input-placeholder, input::-webkit-input-placeholder, .searchBarComponent-32dTOx, .public-DraftEditorPlaceholder-inner,
6 | .placeholder-37qJjk {
7 | color: transparent!important;
8 | }
9 |
--------------------------------------------------------------------------------
/gulpfile.js:
--------------------------------------------------------------------------------
1 | var gulp = require("gulp");
2 | var cleanCss = require("gulp-clean-css");
3 |
4 | var modules = [
5 | "Base",
6 | "Chat",
7 | "Emoji",
8 | "Misc",
9 | "Sidebar",
10 | "Titlebar",
11 | "Webkit",
12 | "WIP"
13 | ];
14 | var paths = {
15 | src: modules.map(dir => dir + "/**/*.m.css"),
16 | dest: "dist",
17 | destSrc: "src"
18 | };
19 |
20 | function minify() {
21 | return gulp
22 | .src(paths.src, { base: "." })
23 | .pipe(cleanCss())
24 | .pipe(gulp.dest(paths.dest));
25 | }
26 |
27 | exports.default = minify;
28 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "customa-discord",
3 | "version": "0.0.1",
4 | "description": "The most customizable Discord theme out there.",
5 | "main": "index.js",
6 | "scripts": {
7 | "minify": "gulp",
8 | "format:check": "stylelint '**/*.css'; exit 0",
9 | "format:fix": "stylelint '**/*.css' --fix; exit 0"
10 | },
11 | "repository": {
12 | "type": "git",
13 | "url": "git+https://github.com/Customa/Customa.git"
14 | },
15 | "license": "GPL3",
16 | "bugs": {
17 | "url": "https://github.com/Customa/Customa/issues"
18 | },
19 | "homepage": "https://github.com/Customa/Customa#readme",
20 | "devDependencies": {
21 | "gulp": "^4.0.2",
22 | "gulp-clean-css": "^4.3.0",
23 | "node-fetch": "^2.6.1",
24 | "stylelint": "^13.7.2"
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/powercord-to-usercss.js:
--------------------------------------------------------------------------------
1 | const fs = require("fs").promises;
2 | const path = require("path");
3 | const fetch = require("node-fetch");
4 |
5 | let config = {};
6 | let porkord = {};
7 |
8 | async function main() {
9 | try {
10 | porkord = JSON.parse(
11 | await fs.readFile(path.resolve(__dirname, "powercord_manifest.json"), {
12 | encoding: "utf8",
13 | })
14 | );
15 | console.log("Loaded powercord manifest.");
16 | } catch {
17 | console.log("No powercord manifest found.");
18 | return;
19 | }
20 | try {
21 | config = JSON.parse(
22 | await fs.readFile(path.resolve(__dirname, "powercord-to-usercss.json"), {
23 | encoding: "utf8",
24 | })
25 | );
26 | console.log("Loaded converter config.");
27 | } catch {
28 | console.log("No converter config found.");
29 | }
30 | let css = [];
31 | let advanced = [];
32 | let t = await convertPlugin(porkord, true);
33 | css.push(t.css);
34 | advanced.push(t.advanced);
35 | for (const plug of porkord.plugins) {
36 | const p = await convertPlugin(plug);
37 | css.push(p.css);
38 | advanced.push(p.advanced);
39 | }
40 | const result = `/* ==UserStyle==
41 | @name ${config.name ? config.name : porkord.name}
42 | @description ${config.description ? config.description : porkord.description}
43 | @version ${config.version ? config.version : porkord.version}
44 | @namespace ${config.namespace ? config.namespace : porkord.author}
45 | @author ${config.author ? config.author : porkord.author}
46 | @license ${config.license ? config.license : porkord.license}
47 | @preprocessor uso
48 | ${advanced.join("\r\n")}
49 | ==/UserStyle== */
50 | @-moz-document domain("discord.com"), domain("discordapp.com") {
51 | ${css.join("\r\n")}
52 | }
53 | `;
54 | const outPath = config.outPath
55 | ? config.outPath
56 | : path.resolve(__dirname, idFromString(porkord.name) + ".user.css");
57 | console.log(`Writing result to ${outPath}`);
58 | await fs.writeFile(outPath, result, {
59 | encoding: "utf8",
60 | });
61 | }
62 |
63 | main();
64 |
65 | /**
66 | * Escapes css comments
67 | */
68 | function escCss(css) {
69 | return css.replace(/\*\//g, "*\\/");
70 | }
71 |
72 | function idFromString(str) {
73 | return str.toLowerCase().replace(/\s/g, "");
74 | }
75 |
76 | /**
77 | * Downloads @imports and replaces them with code
78 | */
79 | async function fetchImports(css) {
80 | const regex = /@import url\(['"]?(.*?)['"]?\);/gm;
81 | let m;
82 |
83 | while ((m = regex.exec(css)) !== null) {
84 | if (m.index === regex.lastIndex) {
85 | regex.lastIndex++;
86 | }
87 |
88 | if (m[1]) {
89 | const oUrl = m[1];
90 | let url = oUrl;
91 | let localFile = false;
92 | let fetched = "";
93 | if (config.importReplaces) {
94 | for (const el of config.importReplaces) {
95 | const rgx = new RegExp(el.regex, "g");
96 | if (rgx.test(url)) {
97 | localFile = el.isLocalFile || false;
98 | url = url.replace(rgx, el.to);
99 | if (localFile) {
100 | url = path.resolve(__dirname, url);
101 | }
102 | break;
103 | }
104 | }
105 | }
106 | if (localFile)
107 | fetched = await fs.readFile(url, {
108 | encoding: "utf8",
109 | });
110 | else {
111 | fetched = await (await fetch(url)).text();
112 | }
113 |
114 | css = css.replace(
115 | new RegExp(
116 | `@import url\\(['"]?${oUrl.replace(/\//g, "\\/")}['"]?\\);`,
117 | "g"
118 | ),
119 | `\r\n${fetched}\r\n`
120 | );
121 | if (url !== oUrl) {
122 | console.log(
123 | `Import from ${oUrl} matched regex in config and was replaced with ${url}. Is from local file: ${
124 | localFile ? "yes" : "no"
125 | }`
126 | );
127 | } else console.log(`Import from ${url} loaded.`);
128 | }
129 | }
130 | if (/@import url\(.*?\)/.test(css)) {
131 | return await fetchImports(css);
132 | }
133 | return css;
134 | }
135 |
136 | /**
137 | * Returns first matched regex group
138 | */
139 | function getFirstGroup(regex, flags, str) {
140 | let m;
141 | const rgx = new RegExp(regex, flags);
142 | while ((m = rgx.exec(str)) !== null) {
143 | if (m.index === rgx.lastIndex) {
144 | rgx.lastIndex++;
145 | }
146 | if (m[1]) return m[1];
147 | }
148 | return null;
149 | }
150 |
151 | /**
152 | * Creates dropdown to toggle plugin and calls convertOption for each plugin option.
153 | */
154 | async function convertPlugin(plugin, enableByDefault) {
155 | console.log(`Converting plugin ${plugin.name}...`);
156 | let content = await fetchImports(
157 | await fs.readFile(path.resolve(__dirname, plugin.theme || plugin.file), {
158 | encoding: "utf8",
159 | })
160 | );
161 | const name = idFromString(plugin.name);
162 | let advanced = "";
163 | if (plugin.settings)
164 | for (const option of plugin.settings.options) {
165 | const res = await convertOption(option, content);
166 | content = res.css;
167 | advanced += `${res.advanced}\r\n`;
168 | }
169 | if (enableByDefault) {
170 | advanced = `@advanced dropdown enable-${name} "Enable ${plugin.name}" {
171 | enable-${name}-yes "Yes" <<