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.

style(ui): neutral flat file/image cards and borderless settings controls

Deepender257a025e646edb
diff --git a/src/components/IndicatorStyleFlyout.tsx b/src/components/IndicatorStyleFlyout.tsx
index 8aaeb07..9b57fe5 100644
--- a/src/components/IndicatorStyleFlyout.tsx
+++ b/src/components/IndicatorStyleFlyout.tsx
@@ -351,8 +351,8 @@ function StyleCard({
justifyContent: 'center',
gap: 6,
padding: '10px 8px 8px',
- background: '#141414',
- border: active ? '2px solid #ffffff' : '2px solid rgba(255, 255, 255, 0.08)',
+ background: active ? '#262626' : '#141414',
+ border: '2px solid transparent',
borderRadius: 14,
position: 'relative',
cursor: 'pointer',
diff --git a/src/components/LanguageFlyout.tsx b/src/components/LanguageFlyout.tsx
index f93f816..d767288 100644
--- a/src/components/LanguageFlyout.tsx
+++ b/src/components/LanguageFlyout.tsx
@@ -309,7 +309,7 @@ export function LanguageFlyout({ isRight }: { isRight: boolean }) {
padding: '7px 10px',
borderRadius: 8,
background: active ? 'rgba(255, 255, 255, 0.12)' : 'transparent',
- border: active ? '1px solid rgba(255, 255, 255, 0.18)' : '1px solid transparent',
+ border: '1px solid transparent',
color: active ? '#ffffff' : 'rgba(255, 255, 255, 0.8)',
fontSize: 12,
fontWeight: active ? 600 : 400,
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx
index 23c58c2..f6940a0 100644
--- a/src/components/Settings.tsx
+++ b/src/components/Settings.tsx
@@ -2385,7 +2385,7 @@ export function Settings({
}}
style={{
background: (settings.copyIndicatorStyle || 'logo') === 'logo' ? 'rgba(255, 255, 255, 0.12)' : 'rgba(255, 255, 255, 0.04)',
- border: (settings.copyIndicatorStyle || 'logo') === 'logo' ? '1px solid rgba(255, 255, 255, 0.3)' : '1px solid rgba(255, 255, 255, 0.06)',
+ border: '1px solid transparent',
borderRadius: 10,
padding: '12px 8px',
display: 'flex',
@@ -2411,7 +2411,7 @@ export function Settings({
}}
style={{
background: settings.copyIndicatorStyle === 'check' ? 'rgba(255, 255, 255, 0.12)' : 'rgba(255, 255, 255, 0.04)',
- border: settings.copyIndicatorStyle === 'check' ? '1px solid rgba(255, 255, 255, 0.3)' : '1px solid rgba(255, 255, 255, 0.06)',
+ border: '1px solid transparent',
borderRadius: 10,
padding: '12px 8px',
display: 'flex',
@@ -2437,7 +2437,7 @@ export function Settings({
}}
style={{
background: settings.copyIndicatorStyle === 'copy' ? 'rgba(255, 255, 255, 0.12)' : 'rgba(255, 255, 255, 0.04)',
- border: settings.copyIndicatorStyle === 'copy' ? '1px solid rgba(255, 255, 255, 0.3)' : '1px solid rgba(255, 255, 255, 0.06)',
+ border: '1px solid transparent',
borderRadius: 10,
padding: '12px 8px',
display: 'flex',
@@ -2463,7 +2463,7 @@ export function Settings({
}}
style={{
background: settings.copyIndicatorStyle === 'sparkle' ? 'rgba(255, 255, 255, 0.12)' : 'rgba(255, 255, 255, 0.04)',
- border: settings.copyIndicatorStyle === 'sparkle' ? '1px solid rgba(255, 255, 255, 0.3)' : '1px solid rgba(255, 255, 255, 0.06)',
+ border: '1px solid transparent',
borderRadius: 10,
padding: '12px 8px',
display: 'flex',
diff --git a/src/styles/item.css b/src/styles/item.css
index 72e7359..c73d9bc 100644
--- a/src/styles/item.css
+++ b/src/styles/item.css
@@ -574,20 +574,20 @@
background: var(--bg-card-hover, #1c1c1c);
}
+/* Lift the viewport with the flap on hover so the folder tab keeps its contrast. */
+.item.is-image-folder-card:not(.is-expanded):hover .image-folder-viewport,
+.item:not(.is-expanded) .item-main:hover .image-folder-viewport {
+ background: #222222;
+}
+
.image-folder-viewport {
position: relative;
width: 100%;
flex: 1;
height: 100%;
min-height: 0;
- background: linear-gradient(
- 115deg,
- #a8def5 0%,
- #288ef6 25%,
- #0b64f6 52%,
- #1b57f6 78%,
- #769cf5 100%
- );
+ background: #1b1b1b;
+ transition: background-color 0.16s ease;
overflow: hidden;
display: flex;
align-items: center;
@@ -827,7 +827,7 @@
overflow: hidden !important;
}
-/* Header bar inside the expanded blue gradient viewport */
+/* Header bar inside the expanded charcoal viewport */
.image-folder-expanded-top-bar {
display: flex;
align-items: center;
@@ -1045,20 +1045,14 @@
border-radius: 7px;
}
-/* Mini Blue Gradient Viewport */
+/* Mini Charcoal Viewport */
.mini-image-folder-viewport {
position: relative;
width: 100%;
flex: 1;
min-height: 0;
- background: linear-gradient(
- 115deg,
- #a8def5 0%,
- #288ef6 25%,
- #0b64f6 52%,
- #1b57f6 78%,
- #769cf5 100%
- );
+ background: #1b1b1b;
+ transition: background-color 0.16s ease;
overflow: hidden;
display: flex;
align-items: center;
@@ -1134,6 +1128,10 @@
fill: var(--bg-card-hover, #1c1c1c);
}
+.mini-image-folder-card:hover .mini-image-folder-viewport {
+ background: #222222;
+}
+
.mini-image-folder-flap-content {
position: relative;
z-index: 2;
diff --git a/src/styles/settings.css b/src/styles/settings.css
index 96ae741..55baf04 100644
--- a/src/styles/settings.css
+++ b/src/styles/settings.css
@@ -289,7 +289,7 @@
height: 32px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.05);
- border: 1px solid rgba(255, 255, 255, 0.08);
+ border: 1px solid transparent;
color: rgba(255, 255, 255, 0.78);
font-size: 11.5px;
font-weight: 500;
@@ -298,7 +298,6 @@
.setting-card .setting-pills .pill:hover {
background: rgba(255, 255, 255, 0.09);
- border-color: rgba(255, 255, 255, 0.16);
color: #ffffff;
}
@@ -306,7 +305,6 @@
background: #ffffff;
color: #000000;
font-weight: 600;
- border-color: #ffffff;
box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}
@@ -377,7 +375,7 @@
padding: 0 4px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.05);
- border: 1px solid rgba(255, 255, 255, 0.08);
+ border: 1px solid transparent;
color: rgba(255, 255, 255, 0.78);
font-weight: 500;
transition: all 0.14s ease;
@@ -390,7 +388,6 @@
.placement-3way-wrap.shelf-placement-3way .pill:hover:not(.active) {
background: rgba(255, 255, 255, 0.09);
- border-color: rgba(255, 255, 255, 0.16);
color: #ffffff;
}
@@ -398,7 +395,6 @@
background: #ffffff;
color: #000000;
font-weight: 600;
- border-color: #ffffff;
box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}
@@ -702,7 +698,7 @@
font-weight: 600;
color: #ff5555;
background: rgba(255, 60, 60, 0.08);
- border: 1px solid rgba(255, 60, 60, 0.22);
+ border: 1px solid transparent;
cursor: pointer;
white-space: nowrap;
transition: all 0.2s ease;
@@ -715,7 +711,6 @@
.quit-app-btn:hover {
background: rgba(255, 60, 60, 0.16);
- border-color: rgba(255, 60, 60, 0.4);
color: #ff7777;
box-shadow: 0 0 16px rgba(255, 60, 60, 0.2);
}
@@ -915,7 +910,7 @@
height: 32px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.06);
- border: 1px solid rgba(255, 255, 255, 0.12);
+ border: 1px solid transparent;
color: #ffffff;
display: flex;
align-items: center;
@@ -928,14 +923,12 @@
.style-preview-toggle-btn:hover {
background: rgba(255, 255, 255, 0.14);
- border-color: rgba(255, 255, 255, 0.25);
color: #ffffff;
}
.style-preview-toggle-btn.active {
background: rgba(255, 255, 255, 0.18);
color: #ffffff;
- border-color: rgba(255, 255, 255, 0.32);
box-shadow: 0 0 14px rgba(255, 255, 255, 0.15);
}
@@ -961,8 +954,7 @@
}
.indicator-card.active {
- background: #141414;
- border-color: #ffffff;
+ background: #262626;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(255, 255, 255, 0.12);
outline: none;
}
@@ -1121,7 +1113,7 @@
height: 22px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.07);
- border: 1px solid rgba(255, 255, 255, 0.12);
+ border: 1px solid transparent;
color: rgba(255, 255, 255, 0.6);
cursor: pointer;
transition: all 0.15s ease;
@@ -1130,7 +1122,6 @@
.hotkey-inline-reset-btn:hover {
background: rgba(255, 255, 255, 0.14);
color: #ffffff;
- border-color: rgba(255, 255, 255, 0.25);
}
/* Recording Mode Elements */
@@ -1170,7 +1161,7 @@
height: 22px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.08);
- border: 1px solid rgba(255, 255, 255, 0.14);
+ border: 1px solid transparent;
color: rgba(255, 255, 255, 0.7);
cursor: pointer;
transition: all 0.15s ease;
@@ -1179,7 +1170,6 @@
.hotkey-cancel-icon-btn:hover {
background: rgba(255, 255, 255, 0.16);
color: #ffffff;
- border-color: rgba(255, 255, 255, 0.25);
}
.hotkey-esc-text {
@@ -1395,14 +1385,13 @@
.manual-update-pill.outline {
background: rgba(255, 255, 255, 0.05);
- border: 1px solid rgba(255, 255, 255, 0.08);
+ border: 1px solid transparent;
color: rgba(255, 255, 255, 0.85);
font-weight: 500;
}
.manual-update-pill.outline:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.09);
- border-color: rgba(255, 255, 255, 0.16);
color: #ffffff;
transform: translateY(-1px);
}
@@ -1556,14 +1545,13 @@
.update-action-btn.secondary {
background: rgba(255, 255, 255, 0.06);
- border: 1px solid rgba(255, 255, 255, 0.12);
+ border: 1px solid transparent;
color: rgba(255, 255, 255, 0.85);
font-weight: 500;
}
.update-action-btn.secondary:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.11);
- border-color: rgba(255, 255, 255, 0.22);
color: #ffffff;
transform: translateY(-1px);
}
@@ -1605,7 +1593,7 @@
height: 24px;
padding: 0 10px;
border-radius: 999px;
- border: 1px solid rgba(255, 255, 255, 0.08);
+ border: 1px solid transparent;
background: rgba(255, 255, 255, 0.04);
color: rgba(255, 255, 255, 0.65);
font-size: 11px;
@@ -1623,14 +1611,12 @@
.settings-header-pill:hover {
background: rgba(255, 255, 255, 0.1);
color: #ffffff;
- border-color: rgba(255, 255, 255, 0.15);
}
.settings-header-pill.active {
background: #ffffff;
color: #000000;
font-weight: 600;
- border-color: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
@@ -1843,7 +1829,7 @@
height: 32px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.05);
- border: 1px solid rgba(255, 255, 255, 0.08);
+ border: 1px solid transparent;
color: rgba(255, 255, 255, 0.78);
font-size: 11.5px;
font-weight: 500;
@@ -1852,7 +1838,6 @@
.settings-shelf-card .setting-pills .pill:hover {
background: rgba(255, 255, 255, 0.09);
- border-color: rgba(255, 255, 255, 0.16);
color: #ffffff;
}
@@ -1860,7 +1845,6 @@
background: #ffffff;
color: #000000;
font-weight: 600;
- border-color: #ffffff;
box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
}
@@ -1878,7 +1862,7 @@
align-items: center;
justify-content: space-between;
background: rgba(255, 255, 255, 0.05);
- border: 1px solid rgba(255, 255, 255, 0.10);
+ border: 1px solid transparent;
border-radius: 10px;
padding: 0 12px;
color: #ffffff;
@@ -1892,13 +1876,11 @@
.language-shelf-btn:hover {
background: rgba(255, 255, 255, 0.09);
- border-color: rgba(255, 255, 255, 0.18);
color: #ffffff;
}
.language-shelf-btn.flyout-open {
background: rgba(255, 255, 255, 0.10);
- border-color: rgba(255, 255, 255, 0.28);
color: #ffffff;
box-shadow: 0 0 12px rgba(255, 255, 255, 0.06);
}
@@ -2112,7 +2094,7 @@
padding: 5px 3px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.04);
- border: 1px solid rgba(255, 255, 255, 0.07);
+ border: 1px solid transparent;
cursor: pointer;
transition: all 0.15s ease;
user-select: none;
@@ -2120,12 +2102,10 @@
.shelf-indicator-item:hover {
background: rgba(255, 255, 255, 0.08);
- border-color: rgba(255, 255, 255, 0.15);
}
.shelf-indicator-item.active {
background: rgba(255, 255, 255, 0.12);
- border-color: rgba(255, 255, 255, 0.35);
box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}
@@ -2187,7 +2167,7 @@
font-weight: 550;
color: rgba(255, 255, 255, 0.92);
background: #1c1c1c;
- border: 1px solid rgba(255, 255, 255, 0.08);
+ border: 1px solid transparent;
box-shadow: none;
cursor: pointer;
white-space: nowrap;
@@ -2197,7 +2177,6 @@
.shelf-github-btn:hover {
background: #262626;
- border-color: rgba(255, 255, 255, 0.18);
color: #ffffff;
transform: translateY(-1px);
}
@@ -2229,7 +2208,7 @@
gap: 4px;
color: rgba(255, 255, 255, 0.55);
background: rgba(255, 255, 255, 0.05);
- border: 1px solid rgba(255, 255, 255, 0.08);
+ border: 1px solid transparent;
cursor: pointer;
outline: none;
transition: all 0.18s ease;
@@ -2239,7 +2218,6 @@
.shelf-quit-btn:hover {
background: rgba(255, 69, 58, 0.14);
- border-color: rgba(255, 69, 58, 0.35);
color: #ff5e57;
}
diff --git a/tests/horizontalSettings.test.ts b/tests/horizontalSettings.test.ts
index ccc172e..fabc8a8 100644
--- a/tests/horizontalSettings.test.ts
+++ b/tests/horizontalSettings.test.ts
@@ -76,7 +76,9 @@ describe('Horizontal Card Shelf Settings Layout', () => {
expect(flyoutSrc).toContain("patch({ copyIndicatorStyle: 'copy' })")
expect(flyoutSrc).toContain("patch({ copyIndicatorStyle: 'sparkle' })")
expect(flyoutSrc).toContain("stickPosition === 'top'")
- expect(flyoutSrc).toContain("border: active ? '2px solid #ffffff' : '2px solid rgba(255, 255, 255, 0.08)'")
+ // Borderless like every other settings control; selection reads from the fill.
+ expect(flyoutSrc).toContain("border: '2px solid transparent'")
+ expect(flyoutSrc).toContain("background: active ? '#262626' : '#141414'")
expect(flyoutSrc).not.toContain("outline: active ? '2px solid #ffffff' : 'none'")
})