Skip to content

Commit 749a8f7

Browse files
committed
Split icons to their own import + fixes to icons
1 parent 939b053 commit 749a8f7

11 files changed

Lines changed: 375 additions & 240 deletions

File tree

bd-scss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ export default {
1010
authorId: '174868361040232448'
1111
},
1212
baseImport: 'https://discordstyles.github.io/Fluent/Fluent.css',
13-
addons: [['src/addons/_selfmessages.scss', 'dist/SelfMessages.css']]
13+
addons: [['src/addons/_icons.scss', 'dist/Icons.css']]
1414
};

src/addons/_icons.scss

Lines changed: 368 additions & 0 deletions
Large diffs are not rendered by default.

src/addons/_selfmessages.scss

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

src/theme/_index.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@
1818
@use './os';
1919

2020
@use './betterdiscord';
21+
22+
@use '../addons/icons';

src/theme/_vars.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:root {
2-
--fluent-version: '1.1.2';
2+
--fluent-version: '1.1.3';
33

44
--transition: cubic-bezier(0, 0, 0, 1);
55

src/theme/app/_icons.scss

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

src/theme/app/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
@forward './tooltips';
44
@forward './scrollbars';
55
@forward './toolbar';
6-
@forward './icons';
76
@forward './tabbar';

src/theme/assets/_mono.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ $pen: $svg + '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path
4040
$emoji_path: 'M12 1.999c5.524 0 10.002 4.478 10.002 10.002 0 5.523-4.478 10.001-10.002 10.001-5.524 0-10.002-4.478-10.002-10.001C1.998 6.477 6.476 1.999 12 1.999Zm0 1.5a8.502 8.502 0 1 0 0 17.003A8.502 8.502 0 0 0 12 3.5ZM8.462 14.784A4.491 4.491 0 0 0 12 16.502a4.492 4.492 0 0 0 3.535-1.714.75.75 0 1 1 1.177.93A5.991 5.991 0 0 1 12 18.002a5.991 5.991 0 0 1-4.716-2.29.75.75 0 0 1 1.178-.928ZM9 8.75a1.25 1.25 0 1 1 0 2.499A1.25 1.25 0 0 1 9 8.75Zm6 0a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499Z';
4141
$emoji: $svg + '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="#{$emoji_path}" /></svg>';
4242

43+
$emoji-laugh: $svg +
44+
'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6.75 12a.75.75 0 0 0-.748.818C6.282 15.892 8.552 18.5 12 18.5c3.448 0 5.717-2.608 5.998-5.682A.75.75 0 0 0 17.25 12H6.749ZM12 17c-2.257 0-3.871-1.48-4.368-3.5h8.736C15.872 15.52 14.258 17 12 17ZM15.25 8.75c-.408 0-.71.287-.758.61a.75.75 0 1 1-1.484-.22c.162-1.09 1.123-1.89 2.242-1.89s2.08.8 2.242 1.89a.75.75 0 1 1-1.484.22c-.048-.323-.35-.61-.758-.61ZM7.992 9.36c.048-.323.35-.61.758-.61.409 0 .71.287.758.61a.75.75 0 1 0 1.484-.22c-.161-1.09-1.123-1.89-2.242-1.89s-2.08.8-2.242 1.89a.75.75 0 0 0 1.484.22Z" /><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2ZM3.5 12a8.5 8.5 0 1 1 17 0 8.5 8.5 0 0 1-17 0Z" /></svg>';
45+
4346
$sticker_path: 'M17.75 3A3.25 3.25 0 0 1 21 6.25v6.879a2.25 2.25 0 0 1-.659 1.59l-5.621 5.622a2.25 2.25 0 0 1-1.591.659H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3h11.5Zm0 1.5H6.25A1.75 1.75 0 0 0 4.5 6.25v11.5c0 .966.784 1.75 1.75 1.75H13v-3.064a6.657 6.657 0 0 1-.673.066L12 16.51a6.334 6.334 0 0 1-3.678-1.14.75.75 0 1 1 .854-1.234c.845.584 1.78.874 2.824.874.462 0 .903-.057 1.324-.171a3.247 3.247 0 0 1 2.713-1.832l.213-.007H19.5V6.25a1.75 1.75 0 0 0-1.75-1.75Zm.689 10h-2.188c-.918 0-1.671.707-1.744 1.607l-.006.143-.001 2.189 3.939-3.939ZM9 7.751a1.25 1.25 0 1 1 0 2.499A1.25 1.25 0 0 1 9 7.75Zm6 0a1.25 1.25 0 1 1 0 2.499 1.25 1.25 0 0 1 0-2.499Z';
4447
$sticker: $svg + '<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="#{$sticker_path}" /></svg>';
4548

src/theme/popouts/_index.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@forward './popout';
22
@forward './menu';
33
@forward './currentuser';
4-
@forward './menuicons';
54
@forward './serverdropdown';
65
@forward './searchsuggestions';
76
@forward './threads';

src/theme/popouts/_menu.scss

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,7 @@
7979
border-radius: var(--rounded);
8080
padding: 8px 12px;
8181
cursor: var(--cursor);
82-
flex-direction: row-reverse;
8382
gap: 8px;
84-
85-
.label-3CEiKJ:only-child {
86-
order: -1;
87-
}
8883
.iconContainer-Ksy8Oj {
8984
margin: 0;
9085
display: flex;
@@ -118,13 +113,6 @@
118113
color: rgb(var(--accent));
119114
}
120115
}
121-
122-
[role='menuitemcheckbox'],
123-
[role='menuitemradio'],
124-
& > div > div:not([class]) + div:not([class]) .item-5ApiZt {
125-
flex-direction: row;
126-
}
127-
128116
// Reset
129117
.submenuContainer-3EVTeH {
130118
.item-5ApiZt {

0 commit comments

Comments
 (0)