Skip to content

Commit 658be98

Browse files
committed
feat: Replace toolbar icons with CSS for improved performance and visual consistency
1 parent f075e9d commit 658be98

File tree

9 files changed

+96
-5
lines changed

9 files changed

+96
-5
lines changed

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,19 +57,19 @@
5757
<h3>EXPLORER</h3>
5858
<div class="sidebar-actions">
5959
<button class="btn-icon-small" id="expandAll" title="Expand All">
60-
<img src="https://raw.githack.com/PKief/vscode-material-icon-theme/main/icons/arrow-down.svg" alt="Expand All" class="toolbar-icon" />
60+
<span class="css-icon css-icon-arrow-down"></span>
6161
</button>
6262
<button class="btn-icon-small" id="collapseAll" title="Collapse All">
63-
<img src="https://raw.githack.com/PKief/vscode-material-icon-theme/main/icons/arrow-up.svg" alt="Collapse All" class="toolbar-icon" />
63+
<span class="css-icon css-icon-arrow-up"></span>
6464
</button>
6565
<button class="btn-icon-small" id="selectAll" title="Select All">
66-
<img src="https://raw.githack.com/PKief/vscode-material-icon-theme/main/icons/check.svg" alt="Select All" class="toolbar-icon" />
66+
<span class="css-icon css-icon-check"></span>
6767
</button>
6868
<button class="btn-icon-small" id="deselectAll" title="Deselect All">
69-
<img src="https://raw.githack.com/PKief/vscode-material-icon-theme/main/icons/circle-outline.svg" alt="Deselect All" class="toolbar-icon" />
69+
<span class="css-icon css-icon-circle"></span>
7070
</button>
7171
<button class="btn-icon-small" id="clearAll" title="Clear All">
72-
<img src="https://raw.githack.com/PKief/vscode-material-icon-theme/main/icons/trash.svg" alt="Clear All" class="toolbar-icon" />
72+
<span class="css-icon css-icon-trash"></span>
7373
</button>
7474
</div>
7575
</div>

public/arrowRight.svg

Lines changed: 1 addition & 0 deletions
Loading

public/checkedBox.svg

Lines changed: 1 addition & 0 deletions
Loading

public/collapseAll.svg

Lines changed: 1 addition & 0 deletions
Loading

public/contexticon.svg

Lines changed: 1 addition & 0 deletions
Loading

public/delete.svg

Lines changed: 1 addition & 0 deletions
Loading

public/expandall.svg

Lines changed: 1 addition & 0 deletions
Loading

public/uncheckedbox.svg

Lines changed: 1 addition & 0 deletions
Loading

style.css

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,87 @@
1+
/* Pure CSS Toolbar Icons */
2+
.css-icon {
3+
display: inline-block;
4+
width: 20px;
5+
height: 20px;
6+
vertical-align: middle;
7+
position: relative;
8+
opacity: 0.92;
9+
transition: opacity 0.15s, transform 0.15s;
10+
}
11+
.btn-icon-small:hover .css-icon {
12+
opacity: 1;
13+
transform: scale(1.12);
14+
}
15+
/* Arrow Down */
16+
.css-icon-arrow-down {
17+
width: 0;
18+
height: 0;
19+
border-left: 8px solid transparent;
20+
border-right: 8px solid transparent;
21+
border-top: 10px solid #e8e8e8;
22+
margin: 5px auto 0 auto;
23+
}
24+
/* Arrow Up */
25+
.css-icon-arrow-up {
26+
width: 0;
27+
height: 0;
28+
border-left: 8px solid transparent;
29+
border-right: 8px solid transparent;
30+
border-bottom: 10px solid #e8e8e8;
31+
margin: 5px auto 0 auto;
32+
}
33+
/* Checkmark */
34+
.css-icon-check {
35+
width: 20px;
36+
height: 20px;
37+
}
38+
.css-icon-check::after {
39+
content: '';
40+
position: absolute;
41+
left: 5px;
42+
top: 8px;
43+
width: 6px;
44+
height: 12px;
45+
border-right: 3px solid #e8e8e8;
46+
border-bottom: 3px solid #e8e8e8;
47+
transform: rotate(45deg);
48+
}
49+
/* Circle Outline */
50+
.css-icon-circle {
51+
width: 18px;
52+
height: 18px;
53+
border: 2px solid #e8e8e8;
54+
border-radius: 50%;
55+
box-sizing: border-box;
56+
margin: 1px auto 0 auto;
57+
}
58+
/* Trash Can */
59+
.css-icon-trash {
60+
width: 18px;
61+
height: 18px;
62+
margin: 1px auto 0 auto;
63+
}
64+
.css-icon-trash::before {
65+
content: '';
66+
position: absolute;
67+
left: 6px;
68+
top: 5px;
69+
width: 6px;
70+
height: 8px;
71+
border: 2px solid #e8e8e8;
72+
border-radius: 1px;
73+
background: none;
74+
}
75+
.css-icon-trash::after {
76+
content: '';
77+
position: absolute;
78+
left: 7px;
79+
top: 3px;
80+
width: 4px;
81+
height: 2px;
82+
background: #e8e8e8;
83+
border-radius: 1px 1px 0 0;
84+
}
185
/* ============================================================================
286
CODEVAULT - OPTIMIZED VS CODE STYLE
387
Performance Optimized + Material Icons

0 commit comments

Comments
 (0)