Skip to content

Commit 62853e3

Browse files
committed
feat: Replace material icons with SVGs for sidebar buttons and enhance styling for better visual consistency
1 parent 9f43d0d commit 62853e3

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ <h3>EXPLORER</h3>
8181

8282
<div class="sidebar-select">
8383
<button class="btn-select-dir" id="selectDirBtn">
84-
<span class="material-symbols-outlined">folder_open</span>
84+
<img src="public/arrowRight.svg" alt="Select Directory" class="sidebar-btn-icon" />
8585
Select Directory
8686
</button>
8787
</div>
8888

8989
<div class="sidebar-select">
9090
<button class="btn-generate" id="generateContextBtn">
91-
<img src="public/contexticon.svg" alt="Context" class="context-btn-icon" />
91+
<img src="public/contexticon.svg" alt="Context" class="sidebar-btn-icon" />
9292
Create Context
9393
</button>
9494
</div>

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@
539539
if (isFolder) {
540540
return {
541541
type: 'svg',
542-
url: 'public/contexticon.svg',
542+
url: 'public/arrowRight.svg',
543543
color: '',
544544
cls: 'folder-icon'
545545
};

style.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/* Only sidebar main action icons (Select Directory, Create Context) black and small */
2+
.sidebar-btn-icon {
3+
width: 18px;
4+
height: 18px;
5+
vertical-align: middle;
6+
margin-right: 8px;
7+
margin-bottom: 2px;
8+
filter: brightness(0) saturate(100%) invert(0);
9+
-webkit-filter: brightness(0) saturate(100%) invert(0);
10+
opacity: 0.92;
11+
}
112
/* Context button icon */
213
.context-btn-icon {
314
width: 22px;

0 commit comments

Comments
 (0)