Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

feat(ui): redesign circular filter tiles with light-reflection rim matching item cards

Deepender253ba90b1c78af
diff --git a/src/components/Header.tsx b/src/components/Header.tsx
index 761fdf6..164453e 100644
--- a/src/components/Header.tsx
+++ b/src/components/Header.tsx
@@ -104,9 +104,9 @@ export function Header() {
width: filterChipWidth,
height: 28,
borderRadius: 999,
- background: '#ffffff',
+ background: 'linear-gradient(180deg, #ffffff 0%, #ebebeb 100%)',
border: 'none',
- boxShadow: '0 2px 8px rgba(0, 0, 0, 0.35)',
+ boxShadow: '0 2px 8px rgba(0, 0, 0, 0.35), inset 0 1px 0 #ffffff',
pointerEvents: 'none',
zIndex: 2,
display: 'flex',
@@ -139,24 +139,6 @@ export function Header() {
if (f.id === 'emoji') setEmojiOpen(true)
else setTypeFilter(f.id)
}}
- style={{
- position: 'relative',
- display: 'inline-flex',
- alignItems: 'center',
- justifyContent: 'center',
- width: filterChipWidth,
- height: 28,
- padding: 0,
- color: 'rgba(255, 255, 255, 0.75)',
- background: '#141414',
- border: 'none',
- borderRadius: 999,
- cursor: 'pointer',
- userSelect: 'none',
- transition: 'color 0.18s ease, background-color 0.15s ease',
- zIndex: 1,
- flexShrink: 0
- }}
>
<Icon width={14} height={14} />
</button>
diff --git a/src/styles/global.css b/src/styles/global.css
index 82ed0fa..92b2ec7 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -64,7 +64,6 @@ svg {
.item,
.item-main,
.filter-segmented-track,
-.filter-chip,
.act,
.icon-btn,
.preview-flyout,
diff --git a/src/styles/panel.css b/src/styles/panel.css
index 4e19116..6574fb5 100644
--- a/src/styles/panel.css
+++ b/src/styles/panel.css
@@ -544,10 +544,32 @@
background: transparent;
}
.filter-chip {
+ position: relative;
+ width: 28px;
+ height: 28px;
+ border-radius: 999px;
+ background: linear-gradient(var(--bg-card, #141414), var(--bg-card, #141414)) padding-box,
+ linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.03) 100%) border-box;
+ border: 1px solid transparent;
+ -webkit-background-clip: padding-box, border-box;
+ background-clip: padding-box, border-box;
+ color: rgba(255, 255, 255, 0.72);
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ cursor: pointer;
+ user-select: none;
outline: none;
+ padding: 0;
+ transition: all 0.16s ease;
+ flex-shrink: 0;
}
.filter-chip:not(.active):hover {
- color: rgba(255, 255, 255, 0.95) !important;
+ background: linear-gradient(var(--bg-card-hover, #1c1c1c), var(--bg-card-hover, #1c1c1c)) padding-box,
+ linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 100%) border-box;
+ -webkit-background-clip: padding-box, border-box;
+ background-clip: padding-box, border-box;
+ color: #ffffff;
}
/* Copy Indicator Sine Curve Morph Styles */