feat(pixel): restyle desktop icons and context menu

This commit is contained in:
M1ngdaXie
2026-03-26 15:20:20 -07:00
parent 45891cec8b
commit a2cde36f6b
2 changed files with 22 additions and 20 deletions

View File

@@ -1,11 +1,9 @@
.context-menu {
position: fixed;
background: rgba(40, 40, 52, 0.82);
backdrop-filter: var(--glass-blur);
-webkit-backdrop-filter: var(--glass-blur);
border: 1px solid var(--glass-border);
border-radius: 8px;
box-shadow: 0 8px 32px rgba(0,0,0,0.4);
background: #0d0d1a;
border: 2px solid #333333;
border-radius: 0;
box-shadow: 3px 3px 0 #000000;
padding: 4px;
min-width: 200px;
z-index: 9000;
@@ -15,19 +13,21 @@
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
border-radius: 5px;
font-size: 13px;
padding: 8px 10px;
border-radius: 0;
font-size: 8px;
color: rgba(255, 255, 255, 0.9);
cursor: default;
letter-spacing: 0.5px;
}
.context-menu-item:hover {
background: var(--accent-blue);
background: var(--pixel-cyan);
color: #000;
}
.context-menu-separator {
height: 1px;
background: var(--glass-border);
height: 2px;
background: #333333;
margin: 3px 6px;
}

View File

@@ -6,32 +6,34 @@
cursor: default;
width: 72px;
padding: 6px;
border-radius: 8px;
border-radius: 0;
transition: background 0.1s;
}
.desktop-icon:hover {
background: rgba(255,255,255,0.08);
background: rgba(0, 255, 255, 0.08);
}
.desktop-icon-img {
width: 56px;
height: 56px;
border-radius: var(--radius-icon);
border-radius: 0;
border: 2px solid #000;
display: flex;
align-items: center;
justify-content: center;
font-size: 28px;
box-shadow: 0 2px 12px rgba(0,0,0,0.3);
box-shadow: 3px 3px 0 #000;
}
.desktop-icon-label {
font-size: 11px;
color: #fff;
font-size: 8px;
color: var(--pixel-cyan);
text-align: center;
text-shadow: 0 1px 3px rgba(0,0,0,0.6);
text-shadow: 1px 1px 0 #000;
max-width: 72px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
letter-spacing: 0.5px;
}