Skip to content

Commit f3da32f

Browse files
committed
refactor: Remove unused code and improve manifest for mv3 and mv2
- Also add --fontFamilyDefault as a fallback if the --fontFamily fails
1 parent 5ef31bb commit f3da32f

File tree

23 files changed

+80
-483
lines changed

23 files changed

+80
-483
lines changed

components/CustomizationSettings.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ onBeforeUnmount(() => {
7373
border: 1px solid hsla(var(--accent-hsl) / 0.18);
7474
box-shadow: var(--shadow-values) var(--shadow-color);
7575
overflow: clip scroll;
76-
font-family: var(--fontFamily);
76+
font-family: var(--fontFamily), var(--fontFamilyDefault);
7777
font-size: 1.2rem;
7878
z-index: 5;
7979
@@ -109,7 +109,7 @@ onBeforeUnmount(() => {
109109
flex-wrap: wrap;
110110
padding: calc(var(--p-btn) * 0.65);
111111
font-weight: bold;
112-
font-family: var(--fontFamily);
112+
font-family: var(--fontFamily), var(--fontFamilyDefault);
113113
font-size: 0.8em;
114114
text-align: center;
115115
background: none;

components/ThemeManager.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const THEME_OPTIONS = [
101101
align-items: center;
102102
gap: 0.5rem;
103103
width: var(--roller-size);
104+
104105
padding: 0.2rem;
105106
background-image: var(--c-bg-gradient);
106107
backdrop-filter: blur(1rem);
@@ -115,6 +116,7 @@ const THEME_OPTIONS = [
115116
position: relative;
116117
aspect-ratio: 1 / 1;
117118
cursor: pointer;
119+
font-family: var(--fontFamily), var(--fontFamilyDefault);
118120
line-height: 1;
119121
background-color: transparent;
120122
color: currentColor;

entrypoints/content.js

Lines changed: 4 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,4 @@
11
// import '@/styles/index.scss'
2-
3-
// import { createApp } from 'vue'
4-
// import ThemeManager from '@/components/ThemeManager.vue'
5-
// import { useThemeManager } from '@/composables/useThemeManager'
6-
// // import FloatingBtn from '@/components/FloatingBtn.vue'
7-
// // import Theme from '@/components/Theme.vue'
8-
9-
// export default defineContentScript({
10-
// matches: ['*://chat.deepseek.com/*'],
11-
// async main(ctx) {
12-
// console.log('Hello content.js')
13-
14-
// // Force theme initialization before the UI mounts.
15-
// // This uses your wxt/storage calls—if they’re async, wait for them.
16-
// const { init } = useThemeManager()
17-
// await init() // the document.body gets the right classes here
18-
19-
// // Use the integrated UI API provided by wxt-dev
20-
// const ui = createIntegratedUi(ctx, {
21-
// position: 'inline',
22-
// anchor: 'body',
23-
// onMount: (container) => {
24-
// // Create and mount the Vue 3 app with the FloatingButton component
25-
// console.log(container)
26-
27-
// const app = createApp(ThemeManager)
28-
// app.mount(container)
29-
30-
// return app
31-
// },
32-
// onRemove: (app) => {
33-
// // Cleanly unmount the Vue app when the UI is removed
34-
// app.unmount()
35-
// },
36-
// })
37-
38-
// // Finally, add the UI to the page
39-
// ui.mount()
40-
// },
41-
// })
42-
43-
// ___________________________________________
44-
45-
// entrypoints/content.js
46-
// import '@/styles/index.scss'
472
import { createApp } from 'vue'
483
import ThemeManager from '@/components/ThemeManager.vue'
494
import { useThemeManager } from '@/composables/useThemeManager'
@@ -53,24 +8,25 @@ export default defineContentScript({
538
css: ['src/styles/index.scss'], // 👈 Use the same index.scss for content scripts
549

5510
async main(ctx) {
56-
// Simply call useThemeManager() so that the reactive syncing is set up.
57-
// (No need to call an explicit init—our watchers run immediately.)
11+
// Force theme initialization before the UI mounts.
5812
useThemeManager()
5913

6014
// Use the integrated UI API provided by wxt-dev
6115
const ui = createIntegratedUi(ctx, {
6216
position: 'inline',
6317
anchor: 'body',
6418
onMount: (container) => {
19+
// Create and mount the Vue 3 app with the ThemeManager component
6520
const app = createApp(ThemeManager)
6621
app.mount(container)
6722
return app
6823
},
6924
onRemove: (app) => {
25+
// Cleanly unmount the Vue app when the UI is removed
7026
app.unmount()
7127
},
7228
})
73-
29+
// Finally, add the UI to the page
7430
ui.mount()
7531
},
7632
})

package.json

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,71 @@
11
{
22
"name": "deepstyled",
3-
"description": "Transform DeepSeek's user interface with customizable accent colors, modern designs, and chat bubbles",
4-
"private": true,
53
"version": "2.0.0",
4+
"displayName": "DeepStyled - Deepseek Customization",
5+
"description": "Transform DeepSeek's user interface with customisable accent colours, modern designs and chat bubbles.",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/itsmartashub/deepstyled.git"
9+
},
10+
"bugs": {
11+
"url": "https://github.com/itsmartashub/deepstyled/issues"
12+
},
13+
"homepage": "https://github.com/itsmartashub/deepstyled/",
14+
"author": "itsmarta",
615
"type": "module",
16+
"keywords": [
17+
"ai",
18+
"chat",
19+
"deepseek",
20+
"chat bubbles",
21+
"deepseek conversation",
22+
"themes",
23+
"deepseek themes",
24+
"custom accent colours",
25+
"custom design",
26+
"custom fonts",
27+
"custom theming",
28+
"custom css",
29+
"theme enhancement",
30+
"ui customization",
31+
"style",
32+
"style deepseek",
33+
"deepseek themes",
34+
"deepseek enhancement",
35+
"modern themes",
36+
"minimalistic",
37+
"deepstyled",
38+
"modern ui",
39+
"visual experience",
40+
"user interface makeover",
41+
"personalization",
42+
"customization",
43+
"stylish design",
44+
"refreshed appearance",
45+
"visual upgrade",
46+
"user-friendly",
47+
"css injection",
48+
"web design makeover",
49+
"plugin",
50+
"addon",
51+
"extension",
52+
"browser extension",
53+
"chrome",
54+
"chrome extension",
55+
"chrome web store",
56+
"firefox",
57+
"firefox addons",
58+
"foss",
59+
"opensource"
60+
],
761
"scripts": {
862
"dev": "wxt",
963
"dev:firefox": "wxt -b firefox --mv2",
1064
"build": "wxt build",
1165
"build:firefox": "wxt build -b firefox --mv2",
1266
"zip": "wxt zip",
1367
"zip:firefox": "wxt zip -b firefox --mv2",
68+
"zip:all": "pnpm zip && pnpm zip:firefox",
1469
"compile": "vue-tsc --noEmit",
1570
"postinstall": "wxt prepare"
1671
},

styles/components/_icons.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@
5555

5656
}
5757

58-
/* .ds-loading - loading spinner */
59-
.e7920f9e {
58+
/*
59+
- ._772e792 - .ds-loading - loading spinner icon
60+
- ._8a9564e - .ds-icon - sidebar icon when sidebar expanded on mobile
61+
*/
62+
._772e792,
63+
._8a9564e {
6064
color: var(--c-accent) !important;
6165
}
6266

File renamed without changes.

styles/deepstyled/theme-manager/components/cards/_card-big.scss renamed to styles/deepstyled/components/cards/_card-big.scss

File renamed without changes.

styles/deepstyled/theme-manager/components/cards/_card-range.scss renamed to styles/deepstyled/components/cards/_card-range.scss

File renamed without changes.

styles/deepstyled/theme-manager/components/cards/_card-small.scss renamed to styles/deepstyled/components/cards/_card-small.scss

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)