Skip to content

Commit ea29607

Browse files
2025.10.17 revise UI of chrome extension
1 parent 9d1e22c commit ea29607

File tree

3 files changed

+59
-15
lines changed

3 files changed

+59
-15
lines changed

chrome-extension/options/options.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <h2>Download Preferences</h2>
8484

8585
<div class="card">
8686
<h2>About</h2>
87-
<p><strong>Version:</strong> 1.0.0</p>
87+
<p><strong>Version:</strong> 1.3.0</p>
8888
<p><strong>Author:</strong> Chrome2NAS Team</p>
8989
<p class="help-text">
9090
This extension allows you to send M3U8 video streams directly to your NAS for download.

chrome-extension/sidepanel.css

Lines changed: 47 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,32 @@ html, body {
4545
background: rgba(255, 255, 255, 0.2);
4646
border: none;
4747
border-radius: 50%;
48-
width: 32px;
49-
height: 32px;
50-
font-size: 16px;
48+
width: 36px;
49+
height: 36px;
50+
display: flex;
51+
align-items: center;
52+
justify-content: center;
5153
cursor: pointer;
52-
transition: background 0.2s;
54+
transition: all 0.3s ease;
55+
backdrop-filter: blur(10px);
5356
}
5457

5558
.icon-btn:hover {
5659
background: rgba(255, 255, 255, 0.3);
60+
transform: scale(1.1);
61+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
62+
}
63+
64+
.icon-btn:active {
65+
transform: scale(0.95);
66+
}
67+
68+
.icon-btn svg {
69+
transition: transform 0.6s ease;
70+
}
71+
72+
.icon-btn:active svg {
73+
transform: rotate(180deg);
5774
}
5875

5976
/* Status Bar */
@@ -103,18 +120,36 @@ html, body {
103120
}
104121

105122
.small-btn {
106-
background: white;
107-
border: 1px solid #ddd;
108-
border-radius: 4px;
109-
padding: 4px 8px;
110-
font-size: 12px;
123+
background: linear-gradient(135deg, #4A90E2 0%, #50C9C3 100%);
124+
color: white;
125+
border: none;
126+
border-radius: 50%;
127+
width: 32px;
128+
height: 32px;
129+
display: flex;
130+
align-items: center;
131+
justify-content: center;
111132
cursor: pointer;
112-
transition: all 0.2s;
133+
transition: all 0.3s ease;
134+
box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
113135
}
114136

115137
.small-btn:hover {
116-
background: #f5f5f5;
117-
border-color: #999;
138+
transform: scale(1.1);
139+
box-shadow: 0 4px 12px rgba(80, 201, 195, 0.5);
140+
background: linear-gradient(135deg, #5FA3F5 0%, #6DD5D0 100%);
141+
}
142+
143+
.small-btn:active {
144+
transform: scale(0.95);
145+
}
146+
147+
.small-btn svg {
148+
transition: transform 0.6s ease;
149+
}
150+
151+
.small-btn:active svg {
152+
transform: rotate(360deg);
118153
}
119154

120155
/* URL List */

chrome-extension/sidepanel.html

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@
1212
<!-- Header -->
1313
<div class="header">
1414
<h1>🎬 M3U8 Downloader</h1>
15-
<button id="settingsBtn" class="icon-btn" title="Settings">⚙️</button>
15+
<button id="settingsBtn" class="icon-btn" title="Settings">
16+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
17+
<path d="M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z"/>
18+
<circle cx="12" cy="12" r="3"/>
19+
</svg>
20+
</button>
1621
</div>
1722

1823
<!-- Connection Status -->
@@ -25,7 +30,11 @@ <h1>🎬 M3U8 Downloader</h1>
2530
<div class="section">
2631
<div class="section-header">
2732
<h2>Detected M3U8 URLs</h2>
28-
<button id="refreshBtn" class="small-btn">🔄</button>
33+
<button id="refreshBtn" class="small-btn">
34+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
35+
<path d="M21.5 2v6h-6M2.5 22v-6h6M2 11.5a10 10 0 0 1 18.8-4.3M22 12.5a10 10 0 0 1-18.8 4.2"/>
36+
</svg>
37+
</button>
2938
</div>
3039

3140
<div id="detectedUrlsList" class="url-list">

0 commit comments

Comments
 (0)