Skip to content

Commit ab4d507

Browse files
authored
Snep theme (#1659)
2 parents 9efb985 + 63cca67 commit ab4d507

File tree

5 files changed

+120
-0
lines changed

5 files changed

+120
-0
lines changed

gui/src/components/commons/icon/SimevrIcon.tsx

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,51 @@
1+
import { useConfig } from '@/hooks/config';
2+
13
export function SlimeVRIcon({ drag }: { drag?: boolean }) {
4+
const { config } = useConfig();
5+
if (config?.theme == 'snep') {
6+
return (
7+
<svg
8+
width="49"
9+
height="29"
10+
viewBox="-4 -2 49 33"
11+
fill="none"
12+
xmlns="http://www.w3.org/2000/svg"
13+
data-tauri-drag-region={drag}
14+
>
15+
<path
16+
d="m 1.6647024,15.257308 4.84329,-5.8061114 5.1394996,4.7526114"
17+
stroke="#FFCCE5"
18+
strokeWidth="3"
19+
strokeLinecap="round"
20+
/>
21+
<path
22+
d="m 22.099692,14.390108 5.7806,-4.8728814 4.2323,5.5751814"
23+
stroke="#FFCCE5"
24+
strokeWidth="3"
25+
strokeLinecap="round"
26+
/>
27+
<path
28+
d="m 9.7241618,27.517333 c 2.9071362,-0.836166 5.2501762,-1.583484 7.0857782,-3.854543 1.787374,2.222439 3.963276,3.063619 7.087706,3.839132"
29+
stroke="#FFCCE5"
30+
strokeWidth="3"
31+
strokeLinecap="round"
32+
/>
33+
<path
34+
d="m 19.337465,19.962745 c -1.861871,0.437141 -3.433485,0.530797 -5.209565,0.06165 1.286223,0.173275 2.222982,0.778091 2.686704,1.605299 0.327959,-0.839305 1.382466,-1.47415 2.522861,-1.666949 z"
35+
stroke="#FFCCE5"
36+
strokeWidth="3"
37+
strokeLinecap="round"
38+
strokeLinejoin="round"
39+
/>
40+
<path
41+
d="m 35.942918,2.6356084 c 6.330566,-1.5164535 11.583704,-1.69795947 15.609729,0.9503118 2.180495,1.4343036 1.678869,4.6673575 0.754839,5.9005803 -2.596688,3.4655715 -9.485458,7.3237605 -5.116612,11.0623905 -4.998324,0.352073 -3.13787,5.686673 1.260384,6.928864"
42+
stroke="#FFCCE5"
43+
strokeWidth="3"
44+
strokeLinecap="round"
45+
/>
46+
</svg>
47+
);
48+
}
249
return (
350
<svg
451
width="49"

gui/src/components/commons/icon/SlimeVRIcon.tsx

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,39 @@
1+
import { useConfig } from '@/hooks/config';
2+
13
export function SlimeVRIcon({ width = 28 }: { width?: number }) {
4+
const { config } = useConfig();
5+
if (config?.theme == 'snep') {
6+
return (
7+
<svg
8+
xmlns="http://www.w3.org/2000/svg"
9+
fillRule="evenodd"
10+
strokeMiterlimit="10"
11+
clipRule="evenodd"
12+
width={width}
13+
viewBox="0 0 380 380"
14+
>
15+
<g fill="none" stroke="#fff">
16+
<path strokeWidth="13.62" d="m 58.065408,191.74 37,-39 39,36" />
17+
<path strokeWidth="13.62" d="m 194.06861,187.74 38,-35 36,38" />
18+
<path
19+
strokeLinecap="square"
20+
strokeWidth="17"
21+
d="m 264.21323,100.54097 c 36.55564,-13.927358 80.48248,-20.252638 96.44182,-0.16058 15.95933,20.09207 -5.55378,62.57663 -18.85775,71.31398 -13.30397,8.73734 -24.9251,23.65102 11.38415,55.001 -41.88653,1.00415 -20.70613,38.05812 4.23915,51.07844"
22+
/>
23+
<path
24+
strokeLinecap="round"
25+
strokeWidth="17"
26+
d="m 178.71549,220.85825 c -11.18717,2.62658 -20.63024,3.18933 -31.30189,0.37013 7.7283,1.04116 13.35686,4.67519 16.14313,9.6455 1.97058,-5.04296 8.30663,-8.85748 15.15876,-10.01593 z"
27+
/>
28+
<path
29+
strokeLinecap="square"
30+
strokeWidth="17"
31+
d="m 114.0349,266.90992 c 14.41809,-4.43279 38.26495,-10.17404 49.29422,-23.81979 10.73948,13.35362 31.14902,18.81171 48.74742,23.621"
32+
/>
33+
</g>
34+
</svg>
35+
);
36+
}
237
return (
338
<svg
439
xmlns="http://www.w3.org/2000/svg"

gui/src/components/settings/pages/InterfaceSettings.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,12 @@ export function InterfaceSettings() {
464464
value={'asexual'}
465465
colors="!bg-asexual-flag"
466466
/>
467+
<ThemeSelector
468+
control={control}
469+
name="appearance.theme"
470+
value={'snep'}
471+
colors="!bg-snep"
472+
/>
467473
</div>
468474
</div>
469475

gui/src/index.scss

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,32 @@ body {
317317
--default-color: 255, 255, 255;
318318
}
319319

320+
:root[data-theme='snep'] {
321+
--background-10: 255, 255, 255;
322+
--background-20: 240, 222, 236;
323+
--background-30: 210, 198, 203;
324+
--background-40: 155, 140, 147;
325+
--background-50: 97, 77, 86;
326+
--background-60: 72, 54, 62;
327+
--background-70: 55, 40, 47;
328+
--background-80: 38, 27, 32;
329+
--background-90: 0, 0, 0;
330+
331+
--accent-background-10: 255, 204, 229;
332+
--accent-background-20: 234, 115, 176;
333+
--accent-background-30: 184, 70, 127;
334+
--accent-background-40: 143, 54, 98;
335+
--accent-background-50: 91, 27, 58;
336+
337+
--success: 139, 223, 35;
338+
--warning: 255, 187, 62;
339+
--critical: 223, 54, 84;
340+
--special: 230, 0, 230;
341+
--window-icon-stroke: 234, 134, 185;
342+
343+
--default-color: 255, 255, 255;
344+
}
345+
320346
#root {
321347
height: 100%;
322348
}

gui/tailwind.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ const colors = {
158158
300: '#FFFFFF',
159159
400: '#800080',
160160
},
161+
snep: {
162+
100: '#261B20',
163+
200: '#5B1B3A',
164+
300: '#FFCCE5',
165+
},
161166
};
162167

163168
const config = {
@@ -289,6 +294,7 @@ const config = {
289294
light: `linear-gradient(135deg, ${colors['light-accent'][100]} 50%, ${colors['light-background'][700]} 50% 100%)`,
290295
'trans-flag': `linear-gradient(135deg, ${colors['trans-blue'][800]} 40%, ${colors['trans-blue'][700]} 40% 70%, ${colors['trans-blue'][600]} 70% 100%)`,
291296
'asexual-flag': `linear-gradient(135deg, ${colors['asexual'][100]} 30%, ${colors['asexual'][200]} 30% 50%, ${colors['asexual'][300]} 50% 70%, ${colors['asexual'][400]} 70% 100%)`,
297+
'snep': `linear-gradient(135deg, ${colors['snep'][100]} 40%, ${colors['snep'][200]} 40% 70%, ${colors['snep'][300]} 70% 100%)`,
292298
},
293299
animation: {
294300
'spin-ccw': 'spin-ccw 1s linear infinite',

0 commit comments

Comments
 (0)