feat(frontend-v2): dual-theme migration of high-touch primitives + dialogs

Second pass of the dual-theme audit (premise #5). This batch covers
the primitives every dialog uses (RDialog, RTable, RSliderBtnGroup,
RMenuItem) plus the dialogs/views the user touches most often
(NotesTab, AchievementsTab, MatchRomDialog, DeleteRomDialog,
EditRomDialog, UploadProgressToast, AboutDialog). 360 → 217
hardcoded sites left.

Notable token swaps:
- bg surfaces: rgba(255, 255, 255, 0.03/0.04/0.05) →
  --r-color-bg-elevated; 0.07 → --r-color-surface; 0.08/0.09/0.12 →
  --r-color-surface-hover
- borders: 0.06/0.07 → --r-color-border; 0.08-0.12 →
  --r-color-border-strong
- text: 0.92+ → --r-color-fg; 0.55-0.85 → --r-color-fg-secondary;
  0.45 → --r-color-fg-muted; 0.25-0.35 → --r-color-fg-faint
- inversion-on-active (segmented pill / achievements filter):
  background #fff/#111 → --r-color-fg, color #111/#fff →
  --r-color-bg

The verbose `:global(.r-v2.r-v2-light) .foo { ... }` overrides
collapse into single token rules; tokens already flip between dark
and light. Verified with typecheck + lint + 94 tests.

The RDialog panel background (rgba(16, 12, 28, 0.97) /
rgba(255, 255, 255, 0.97)) and tinted overlays kept as-is for now —
intentional surface, not a generic token target.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
zurdiandClaude Opus 4.7 committed 2026-04-28 23:54:42 +00:00
1 parent f587be200d
commit fd3be92394
12 files changed
+189 -263

No files matched your search

@@ -113,8 +113,8 @@ void t;
gap: 12px;
padding: 12px 14px;
border-radius: var(--r-radius-md);
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.07);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
text-decoration: none;
color: inherit;
transition:
@@ -123,8 +123,8 @@ void t;
transform var(--r-motion-fast) var(--r-motion-ease-out);
}
.r-v2-about__tile:hover {
background: rgba(255, 255, 255, 0.07);
border-color: rgba(255, 255, 255, 0.14);
background: var(--r-color-surface);
border-color: var(--r-color-border-strong);
transform: translateY(-1px);
}
@@ -134,8 +134,8 @@ void t;
border-radius: 8px;
display: grid;
place-items: center;
background: rgba(255, 255, 255, 0.06);
color: rgba(255, 255, 255, 0.85);
background: var(--r-color-surface);
color: var(--r-color-fg);
flex-shrink: 0;
}
@@ -150,7 +150,7 @@ void t;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.06em;
color: rgba(255, 255, 255, 0.45);
color: var(--r-color-fg-muted);
}
.r-v2-about__value {
@@ -163,10 +163,10 @@ void t;
}
.r-v2-about__chev {
color: rgba(255, 255, 255, 0.35);
color: var(--r-color-fg-muted);
}
.r-v2-about__tile:hover .r-v2-about__chev {
color: rgba(255, 255, 255, 0.75);
color: var(--r-color-fg);
}
@media (max-width: 520px) {
@@ -259,7 +259,7 @@ function closeDialog() {
gap: 10px;
width: 100%;
font-size: 12px;
color: rgba(255, 255, 255, 0.55);
color: var(--r-color-fg-muted);
}
.r-v2-del-rom__hint {
flex: 1;
@@ -267,9 +267,9 @@ function closeDialog() {
.r-v2-del-rom__toggle-all {
appearance: none;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.7);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
color: var(--r-color-fg-secondary);
padding: 4px 10px;
border-radius: var(--r-radius-pill);
font-size: 11px;
@@ -281,7 +281,7 @@ function closeDialog() {
font-family: inherit;
}
.r-v2-del-rom__toggle-all:hover {
background: rgba(255, 255, 255, 0.08);
background: var(--r-color-surface);
}
.r-v2-del-rom__list {
@@ -301,8 +301,8 @@ function closeDialog() {
align-items: center;
gap: 10px;
padding: 8px 10px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.06);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-md);
transition: border-color var(--r-motion-fast) var(--r-motion-ease-out);
}
@@ -327,7 +327,7 @@ function closeDialog() {
display: block;
}
.r-v2-del-rom__cover-placeholder {
color: rgba(255, 255, 255, 0.3);
color: var(--r-color-fg-faint);
}
.r-v2-del-rom__meta {
@@ -337,7 +337,7 @@ function closeDialog() {
margin: 0;
font-size: 13px;
font-weight: var(--r-font-weight-medium);
color: rgba(255, 255, 255, 0.9);
color: var(--r-color-fg);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -346,7 +346,7 @@ function closeDialog() {
margin: 2px 0 0;
font-size: 11px;
font-family: var(--r-font-family-mono, monospace);
color: rgba(255, 255, 255, 0.45);
color: var(--r-color-fg-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -358,11 +358,11 @@ function closeDialog() {
align-items: center;
gap: 4px;
padding: 4px 10px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-pill);
font-size: 11px;
color: rgba(255, 255, 255, 0.6);
color: var(--r-color-fg-secondary);
font-weight: var(--r-font-weight-medium);
font-family: inherit;
cursor: pointer;
@@ -372,8 +372,8 @@ function closeDialog() {
border-color var(--r-motion-fast) var(--r-motion-ease-out);
}
.r-v2-del-rom__fs-toggle:hover {
background: rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.85);
background: var(--r-color-surface);
color: var(--r-color-fg);
}
.r-v2-del-rom__fs-toggle--on,
.r-v2-del-rom__fs-toggle--on:hover {
@@ -397,7 +397,7 @@ function closeDialog() {
background: rgba(239, 68, 68, 0.1);
border: 1px solid rgba(239, 68, 68, 0.25);
border-radius: var(--r-radius-md);
color: rgba(255, 255, 255, 0.85);
color: var(--r-color-fg);
font-size: 12px;
line-height: 1.4;
}
@@ -545,9 +545,9 @@ function handleRomUpdateFromMetadata(updatedRom: UpdateRom) {
.r-v2-edit__icon-btn {
appearance: none;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.75);
background: var(--r-color-surface);
border: 1px solid var(--r-color-border-strong);
color: var(--r-color-fg-secondary);
width: 32px;
height: 32px;
border-radius: var(--r-radius-sm);
@@ -559,8 +559,8 @@ function handleRomUpdateFromMetadata(updatedRom: UpdateRom) {
color var(--r-motion-fast) var(--r-motion-ease-out);
}
.r-v2-edit__icon-btn:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.1);
color: #fff;
background: var(--r-color-surface-hover);
color: var(--r-color-fg);
}
.r-v2-edit__icon-btn:disabled {
opacity: 0.4;
@@ -596,7 +596,7 @@ function handleRomUpdateFromMetadata(updatedRom: UpdateRom) {
gap: 6px;
margin: -4px 0 0;
font-size: 11px;
color: rgba(255, 255, 255, 0.45);
color: var(--r-color-fg-muted);
font-family: var(--r-font-family-mono, monospace);
word-break: break-all;
}
@@ -633,7 +633,7 @@ function handleRomUpdateFromMetadata(updatedRom: UpdateRom) {
.r-v2-edit__hint {
font-size: 11px;
color: rgba(255, 255, 255, 0.45);
color: var(--r-color-fg-muted);
}
.r-v2-edit__tracks {
@@ -651,13 +651,13 @@ function handleRomUpdateFromMetadata(updatedRom: UpdateRom) {
gap: 8px;
align-items: center;
padding: 6px 10px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.06);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-sm);
font-size: 12px;
}
.r-v2-edit__track-name {
color: rgba(255, 255, 255, 0.85);
color: var(--r-color-fg);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -665,7 +665,7 @@ function handleRomUpdateFromMetadata(updatedRom: UpdateRom) {
}
.r-v2-edit__track-size {
font-size: 11px;
color: rgba(255, 255, 255, 0.5);
color: var(--r-color-fg-muted);
font-variant-numeric: tabular-nums;
}
@@ -538,14 +538,14 @@ function closeDialog() {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.06em;
color: rgba(255, 255, 255, 0.5);
color: var(--r-color-fg-muted);
margin-right: 4px;
}
.r-v2-match__filter {
appearance: none;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.1);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border-strong);
width: 32px;
height: 32px;
border-radius: var(--r-radius-sm);
@@ -577,11 +577,11 @@ function closeDialog() {
align-items: center;
gap: 6px;
padding: 4px 10px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-pill);
font-size: 11px;
color: rgba(255, 255, 255, 0.65);
color: var(--r-color-fg-secondary);
}
.r-v2-match__results-count {
padding: 2px 8px;
@@ -619,16 +619,16 @@ function closeDialog() {
gap: 12px;
align-items: flex-start;
padding: 12px 14px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.07);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-md);
}
.r-v2-match__back {
appearance: none;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.75);
background: var(--r-color-surface);
border: 1px solid var(--r-color-border-strong);
color: var(--r-color-fg-secondary);
width: 32px;
height: 32px;
border-radius: var(--r-radius-sm);
@@ -638,19 +638,19 @@ function closeDialog() {
flex-shrink: 0;
}
.r-v2-match__back:hover {
background: rgba(255, 255, 255, 0.1);
color: #fff;
background: var(--r-color-surface-hover);
color: var(--r-color-fg);
}
.r-v2-match__detail-title {
margin: 0;
font-size: var(--r-font-size-md);
font-weight: var(--r-font-weight-semibold);
color: rgba(255, 255, 255, 0.95);
color: var(--r-color-fg);
}
.r-v2-match__detail-summary {
margin: 4px 0 0;
color: rgba(255, 255, 255, 0.6);
color: var(--r-color-fg-secondary);
font-size: 12px;
line-height: 1.5;
max-height: 120px;
@@ -660,7 +660,7 @@ function closeDialog() {
.r-v2-match__sources-label {
margin: 4px 0 0;
text-align: center;
color: rgba(255, 255, 255, 0.6);
color: var(--r-color-fg-secondary);
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.06em;
@@ -696,16 +696,16 @@ function closeDialog() {
align-items: center;
gap: 6px;
padding: 6px 12px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
background: var(--r-color-surface);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-pill);
font-size: 12px;
font-family: inherit;
color: rgba(255, 255, 255, 0.7);
color: var(--r-color-fg-secondary);
cursor: pointer;
}
.r-v2-match__rename:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.09);
background: var(--r-color-surface-hover);
}
.r-v2-match__rename--disabled,
.r-v2-match__rename:disabled {
@@ -716,12 +716,12 @@ function closeDialog() {
.r-v2-match__rename-preview {
margin: 0;
padding: 8px 10px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.06);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-sm);
font-size: 11px;
font-family: var(--r-font-family-mono, monospace);
color: rgba(255, 255, 255, 0.55);
color: var(--r-color-fg-muted);
text-align: center;
word-break: break-all;
}
@@ -30,6 +30,7 @@ import {
useViewTransition,
} from "@/v2/composables/useViewTransition";
import RPlatformIcon from "@/v2/lib/media/RPlatformIcon/RPlatformIcon.vue";
import RBtn from "@/v2/lib/primitives/RBtn/RBtn.vue";
import RTooltip from "@/v2/lib/structural/RTooltip/RTooltip.vue";
defineOptions({ inheritAttrs: false });
@@ -160,9 +161,12 @@ const morphStyle = computed(() => {
<RTooltip v-if="showPlatformIcon" :text="platformShort" location="bottom">
<template #activator="{ props: tooltipProps }">
<button
<RBtn
v-bind="tooltipProps"
type="button"
icon
size="x-small"
variant="text"
:ripple="false"
class="r-gc__platform-icon"
:aria-label="`Browse ${platformShort}`"
@click="onPlatformClick"
@@ -173,7 +177,7 @@ const morphStyle = computed(() => {
:alt="platformShort"
:size="18"
/>
</button>
</RBtn>
</template>
</RTooltip>
@@ -283,37 +287,32 @@ const morphStyle = computed(() => {
/* Top-right always-visible platform icon. Sits on the cover (outside the
hover overlay) so it stays readable at rest. Click navigates to the
platform gallery; tooltip shows the full platform name. */
platform gallery; tooltip shows the full platform name.
`z-index` keeps the button above `.r-gc__overlay`, which would
otherwise eat clicks because it covers the full art via `inset: 0`. */
.r-gc__platform-icon {
appearance: none;
position: absolute;
position: absolute !important;
top: 7px;
right: 7px;
width: 28px;
height: 28px;
padding: 0;
border-radius: 50%;
background: rgba(0, 0, 0, 0.78);
border: 1px solid rgba(255, 255, 255, 0.12);
display: grid;
place-items: center;
cursor: pointer;
color: inherit;
z-index: 2;
width: 28px !important;
height: 28px !important;
min-width: 28px !important;
min-height: 28px !important;
border-radius: 50% !important;
background: rgba(0, 0, 0, 0.78) !important;
border: 1px solid rgba(255, 255, 255, 0.12) !important;
color: #fff !important;
transition:
background 0.12s ease,
border-color 0.12s ease,
transform 0.12s ease;
}
.r-gc__platform-icon:hover,
.r-gc__platform-icon:focus-visible {
background: rgba(0, 0, 0, 0.9);
border-color: rgba(255, 255, 255, 0.25);
.r-gc__platform-icon:hover {
background: rgba(0, 0, 0, 0.9) !important;
border-color: rgba(255, 255, 255, 0.25) !important;
transform: scale(1.08);
}
.r-gc__platform-icon:focus-visible {
outline: 2px solid var(--r-color-brand-primary);
outline-offset: 2px;
}
/* Platform badge */
.r-gc__badge {
@@ -185,7 +185,7 @@ function toggleStatus(target: StatusFilter) {
.r-v2-det-ach__empty {
padding: 30px 0;
color: rgba(255, 255, 255, 0.3);
color: var(--r-color-fg-faint);
font-size: 13px;
font-style: italic;
text-align: center;
@@ -195,8 +195,8 @@ function toggleStatus(target: StatusFilter) {
.r-v2-det-ach__summary {
display: flex;
gap: 0;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-lg);
padding: 14px 0;
}
@@ -206,7 +206,7 @@ function toggleStatus(target: StatusFilter) {
flex-direction: column;
align-items: center;
gap: 4px;
border-right: 1px solid rgba(255, 255, 255, 0.06);
border-right: 1px solid var(--r-color-border);
padding: 0 12px;
}
.r-v2-det-ach__stat:last-child {
@@ -215,18 +215,18 @@ function toggleStatus(target: StatusFilter) {
.r-v2-det-ach__stat-val {
font-size: 20px;
font-weight: var(--r-font-weight-bold);
color: rgba(255, 255, 255, 0.92);
color: var(--r-color-fg);
font-variant-numeric: tabular-nums;
}
.r-v2-det-ach__stat-val--missable {
color: #fbbf24;
color: var(--r-color-warning);
}
.r-v2-det-ach__stat-lbl {
font-size: 10px;
font-weight: var(--r-font-weight-bold);
letter-spacing: 0.07em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.3);
color: var(--r-color-fg-faint);
}
/* ── Filters ─────────────────────────────────────────── */
@@ -238,10 +238,10 @@ function toggleStatus(target: StatusFilter) {
}
.r-v2-det-ach__filter {
appearance: none;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
background: var(--r-color-surface);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-pill);
color: rgba(255, 255, 255, 0.55);
color: var(--r-color-fg-secondary);
padding: 5px 13px;
font-size: 11.5px;
font-weight: var(--r-font-weight-medium);
@@ -254,28 +254,28 @@ function toggleStatus(target: StatusFilter) {
border-color var(--r-motion-fast);
}
.r-v2-det-ach__filter:hover {
color: rgba(255, 255, 255, 0.85);
background: rgba(255, 255, 255, 0.08);
color: var(--r-color-fg);
background: var(--r-color-surface-hover);
}
.r-v2-det-ach__filter--active {
color: #111;
background: #fff;
border-color: #fff;
color: var(--r-color-bg);
background: var(--r-color-fg);
border-color: var(--r-color-fg);
}
.r-v2-det-ach__filter--earned.r-v2-det-ach__filter--active {
color: #fff;
color: var(--r-color-fg);
background: rgba(34, 197, 94, 0.3);
border-color: rgba(34, 197, 94, 0.5);
}
.r-v2-det-ach__filter--locked.r-v2-det-ach__filter--active {
color: #fff;
color: var(--r-color-fg);
background: rgba(239, 68, 68, 0.24);
border-color: rgba(239, 68, 68, 0.45);
}
.r-v2-det-ach__filter-sep {
width: 1px;
height: 16px;
background: rgba(255, 255, 255, 0.12);
background: var(--r-color-surface-hover);
margin: 0 4px;
}
@@ -292,8 +292,8 @@ function toggleStatus(target: StatusFilter) {
gap: 14px;
align-items: center;
padding: 10px 14px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.06);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-md);
}
.r-v2-det-ach__row--locked {
@@ -305,7 +305,7 @@ function toggleStatus(target: StatusFilter) {
height: 52px;
border-radius: 8px;
overflow: hidden;
background: rgba(255, 255, 255, 0.04);
background: var(--r-color-bg-elevated);
flex-shrink: 0;
}
.r-v2-det-ach__badge img {
@@ -318,11 +318,11 @@ function toggleStatus(target: StatusFilter) {
.r-v2-det-ach__title {
font-size: 13px;
font-weight: var(--r-font-weight-semibold);
color: rgba(255, 255, 255, 0.92);
color: var(--r-color-fg);
}
.r-v2-det-ach__desc {
font-size: 11.5px;
color: rgba(255, 255, 255, 0.5);
color: var(--r-color-fg-muted);
margin-top: 2px;
line-height: 1.4;
}
@@ -337,7 +337,7 @@ function toggleStatus(target: StatusFilter) {
.r-v2-det-ach__points {
font-size: 12px;
font-weight: var(--r-font-weight-bold);
color: rgba(255, 255, 255, 0.8);
color: var(--r-color-fg-secondary);
font-variant-numeric: tabular-nums;
}
.r-v2-det-ach__type {
@@ -347,8 +347,8 @@ function toggleStatus(target: StatusFilter) {
text-transform: uppercase;
padding: 2px 7px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.07);
color: rgba(255, 255, 255, 0.55);
background: var(--r-color-surface);
color: var(--r-color-fg-secondary);
}
.r-v2-det-ach__type--progression {
background: rgba(99, 102, 241, 0.18);
@@ -264,14 +264,14 @@ async function remove(note: UserNoteSchema) {
.r-v2-det-notes__empty {
padding: 24px 0;
color: rgba(255, 255, 255, 0.3);
color: var(--r-color-fg-faint);
font-size: 13px;
font-style: italic;
}
.r-v2-det-notes__card {
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-lg);
overflow: hidden;
}
@@ -287,17 +287,17 @@ async function remove(note: UserNoteSchema) {
transition: background var(--r-motion-fast);
}
.r-v2-det-notes__head:hover {
background: rgba(255, 255, 255, 0.03);
background: var(--r-color-bg-elevated);
}
.r-v2-det-notes__title {
font-size: 13.5px;
font-weight: var(--r-font-weight-semibold);
color: rgba(255, 255, 255, 0.92);
color: var(--r-color-fg);
}
.r-v2-det-notes__meta {
font-size: 11px;
color: rgba(255, 255, 255, 0.35);
color: var(--r-color-fg-muted);
margin-top: 2px;
}
@@ -314,9 +314,9 @@ async function remove(note: UserNoteSchema) {
text-transform: uppercase;
padding: 2px 8px;
border-radius: var(--r-radius-lg);
background: rgba(255, 255, 255, 0.07);
color: rgba(255, 255, 255, 0.4);
border: 1px solid rgba(255, 255, 255, 0.08);
background: var(--r-color-surface);
color: var(--r-color-fg-muted);
border: 1px solid var(--r-color-border);
}
.r-v2-det-notes__badge--public {
background: rgba(34, 197, 94, 0.14);
@@ -325,7 +325,7 @@ async function remove(note: UserNoteSchema) {
}
.r-v2-det-notes__chevron {
color: rgba(255, 255, 255, 0.4);
color: var(--r-color-fg-muted);
transition: transform var(--r-motion-fast);
}
.r-v2-det-notes__chevron--open {
@@ -334,8 +334,8 @@ async function remove(note: UserNoteSchema) {
.r-v2-det-notes__body {
padding: 0 16px 14px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
color: rgba(255, 255, 255, 0.7);
border-top: 1px solid var(--r-color-border);
color: var(--r-color-fg-secondary);
font-size: 13px;
line-height: 1.55;
}
@@ -352,10 +352,10 @@ async function remove(note: UserNoteSchema) {
.r-v2-det-notes__btn {
appearance: none;
background: rgba(255, 255, 255, 0.07);
border: 1px solid rgba(255, 255, 255, 0.1);
background: var(--r-color-surface);
border: 1px solid var(--r-color-border-strong);
border-radius: var(--r-radius-pill);
color: rgba(255, 255, 255, 0.85);
color: var(--r-color-fg-secondary);
padding: 6px 14px;
font-size: 12px;
font-weight: var(--r-font-weight-medium);
@@ -366,34 +366,34 @@ async function remove(note: UserNoteSchema) {
border-color var(--r-motion-fast);
}
.r-v2-det-notes__btn:hover:not(:disabled) {
background: rgba(255, 255, 255, 0.12);
background: var(--r-color-surface-hover);
}
.r-v2-det-notes__btn:disabled {
opacity: 0.5;
cursor: default;
}
.r-v2-det-notes__btn--danger {
color: #fca5a5;
color: var(--r-color-danger);
border-color: rgba(239, 68, 68, 0.3);
}
.r-v2-det-notes__btn--danger:hover:not(:disabled) {
background: rgba(239, 68, 68, 0.12);
}
.r-v2-det-notes__btn--save {
background: #fff;
color: #111;
border-color: #fff;
background: var(--r-color-fg);
color: var(--r-color-bg);
border-color: var(--r-color-fg);
}
.r-v2-det-notes__btn--save:hover:not(:disabled) {
background: #e0e0e0;
opacity: 0.85;
}
.r-v2-det-notes__add {
appearance: none;
background: rgba(255, 255, 255, 0.04);
border: 1px dashed rgba(255, 255, 255, 0.15);
background: var(--r-color-bg-elevated);
border: 1px dashed var(--r-color-border-strong);
border-radius: var(--r-radius-lg);
color: rgba(255, 255, 255, 0.55);
color: var(--r-color-fg-secondary);
padding: 12px 16px;
font-size: 13px;
font-weight: var(--r-font-weight-medium);
@@ -402,8 +402,8 @@ async function remove(note: UserNoteSchema) {
text-align: center;
}
.r-v2-det-notes__add:hover {
background: rgba(255, 255, 255, 0.07);
color: rgba(255, 255, 255, 0.75);
background: var(--r-color-surface);
color: var(--r-color-fg);
}
.r-v2-det-notes__form {
@@ -415,17 +415,17 @@ async function remove(note: UserNoteSchema) {
.r-v2-det-notes__input {
appearance: none;
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.1);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border-strong);
border-radius: 8px;
color: #fff;
color: var(--r-color-fg);
padding: 8px 12px;
font-size: 13px;
font-family: inherit;
}
.r-v2-det-notes__input:focus {
outline: none;
border-color: rgba(255, 255, 255, 0.25);
border-color: var(--r-color-fg-faint);
}
.r-v2-det-notes__textarea {
min-height: 120px;
@@ -438,7 +438,7 @@ async function remove(note: UserNoteSchema) {
align-items: center;
gap: 8px;
font-size: 12px;
color: rgba(255, 255, 255, 0.6);
color: var(--r-color-fg-secondary);
cursor: pointer;
}
@@ -161,7 +161,7 @@ function clearFinished() {
z-index: 8900;
width: min(360px, calc(100vw - 32px));
background: rgba(13, 17, 23, 0.92);
border: 1px solid rgba(255, 255, 255, 0.08);
border: 1px solid var(--r-color-border);
border-radius: var(--r-radius-lg);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
@@ -176,7 +176,7 @@ function clearFinished() {
align-items: center;
gap: 10px;
padding: 10px 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
border-bottom: 1px solid var(--r-color-border);
}
.r-v2-upload__summary {
@@ -185,7 +185,7 @@ function clearFinished() {
gap: 8px;
font-size: 13px;
font-weight: var(--r-font-weight-medium);
color: rgba(255, 255, 255, 0.9);
color: var(--r-color-fg);
flex: 1;
min-width: 0;
}
@@ -194,7 +194,7 @@ function clearFinished() {
appearance: none;
background: transparent;
border: 0;
color: rgba(255, 255, 255, 0.55);
color: var(--r-color-fg-secondary);
width: 26px;
height: 26px;
border-radius: 6px;
@@ -204,8 +204,8 @@ function clearFinished() {
transition: background var(--r-motion-fast) var(--r-motion-ease-out);
}
.r-v2-upload__toggle:hover {
background: rgba(255, 255, 255, 0.08);
color: #fff;
background: var(--r-color-surface);
color: var(--r-color-fg);
}
.r-v2-upload__list {
@@ -222,7 +222,7 @@ function clearFinished() {
.r-v2-upload__item {
padding: 8px 10px;
border-radius: var(--r-radius-sm);
background: rgba(255, 255, 255, 0.03);
background: var(--r-color-bg-elevated);
transition: background var(--r-motion-fast) var(--r-motion-ease-out);
}
.r-v2-upload__item--done {
@@ -241,7 +241,7 @@ function clearFinished() {
.r-v2-upload__filename {
font-size: 12.5px;
color: rgba(255, 255, 255, 0.9);
color: var(--r-color-fg);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -249,7 +249,7 @@ function clearFinished() {
}
.r-v2-upload__item-status {
color: rgba(255, 255, 255, 0.55);
color: var(--r-color-fg-secondary);
}
.r-v2-upload__item--done .r-v2-upload__item-status {
color: #4ade80;
@@ -270,7 +270,7 @@ function clearFinished() {
.r-v2-upload__bar {
height: 3px;
width: 100%;
background: rgba(255, 255, 255, 0.08);
background: var(--r-color-surface);
border-radius: var(--r-radius-pill);
margin-top: 6px;
overflow: hidden;
@@ -287,7 +287,7 @@ function clearFinished() {
gap: 8px;
margin-top: 4px;
font-size: 10px;
color: rgba(255, 255, 255, 0.5);
color: var(--r-color-fg-muted);
font-variant-numeric: tabular-nums;
}
@@ -302,7 +302,7 @@ function clearFinished() {
padding: 4px 8px 8px;
display: flex;
justify-content: flex-end;
border-top: 1px solid rgba(255, 255, 255, 0.04);
border-top: 1px solid var(--r-color-border);
}
/* Slide + fade in/out from the bottom-right. */
+10 -27
View File
@@ -56,7 +56,7 @@ const backing = computed(() => {
<style scoped>
.r-table {
background: rgba(255, 255, 255, 0.03);
background: var(--r-color-bg-elevated);
color: var(--r-color-fg);
font-size: 13px;
}
@@ -80,26 +80,26 @@ const backing = computed(() => {
font-weight: var(--r-font-weight-bold) !important;
letter-spacing: 0.07em !important;
text-transform: uppercase !important;
color: rgba(255, 255, 255, 0.55) !important;
background: rgba(255, 255, 255, 0.02) !important;
color: var(--r-color-fg-secondary) !important;
background: var(--r-color-bg-elevated) !important;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
border-bottom: 1px solid var(--r-color-border) !important;
}
.r-table :deep(thead th .v-data-table-header__sort-icon) {
color: rgba(255, 255, 255, 0.5);
color: var(--r-color-fg-muted);
}
/* Body rows — thin separators, hover tint, cursor pointer (rows are clickable). */
.r-table :deep(tbody td) {
border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
color: rgba(255, 255, 255, 0.85);
border-bottom: 1px solid var(--r-color-border) !important;
color: var(--r-color-fg-secondary);
height: 55px !important;
}
.r-table :deep(tbody tr:hover td) {
background: rgba(255, 255, 255, 0.04) !important;
background: var(--r-color-bg-elevated) !important;
}
.r-table :deep(tbody tr.v-data-table__tr--selected td),
@@ -110,29 +110,12 @@ const backing = computed(() => {
/* Footer */
.r-table :deep(.v-data-table-footer) {
background: rgba(255, 255, 255, 0.03);
border-top: 1px solid rgba(255, 255, 255, 0.06);
background: var(--r-color-bg-elevated);
border-top: 1px solid var(--r-color-border);
}
/* Loader sits across the top */
.r-table :deep(.v-data-table__progress) {
background: transparent;
}
/* Light theme */
:global(.r-v2.r-v2-light) .r-table {
background: rgba(17, 17, 23, 0.03);
}
:global(.r-v2.r-v2-light) .r-table :deep(thead th) {
color: rgba(17, 17, 23, 0.55) !important;
background: rgba(17, 17, 23, 0.02) !important;
border-bottom-color: rgba(17, 17, 23, 0.08) !important;
}
:global(.r-v2.r-v2-light) .r-table :deep(tbody td) {
color: rgba(17, 17, 23, 0.85);
border-bottom-color: rgba(17, 17, 23, 0.06) !important;
}
:global(.r-v2.r-v2-light) .r-table :deep(tbody tr:hover td) {
background: rgba(17, 17, 23, 0.05) !important;
}
</style>
@@ -92,7 +92,7 @@ const tag = computed(() => {
cursor: pointer;
font-size: 13px;
font-weight: var(--r-font-weight-medium);
color: rgba(255, 255, 255, 0.8);
color: var(--r-color-fg-secondary);
font-family: inherit;
text-align: left;
text-decoration: none;
@@ -103,17 +103,8 @@ const tag = computed(() => {
user-select: none;
}
.r-v2.r-v2-light .r-menu-item {
color: rgba(17, 17, 23, 0.85);
}
.r-menu-item:hover:not(.r-menu-item--disabled) {
background: rgba(255, 255, 255, 0.09);
color: #fff;
}
.r-v2.r-v2-light .r-menu-item:hover:not(.r-menu-item--disabled) {
background: rgba(17, 17, 23, 0.07);
background: var(--r-color-surface);
color: var(--r-color-fg);
}
@@ -170,11 +161,13 @@ const tag = computed(() => {
/* Danger: destructive actions */
.r-menu-item--danger {
color: rgba(255, 90, 90, 0.85);
color: var(--r-color-danger);
opacity: 0.85;
}
.r-menu-item--danger:hover:not(.r-menu-item--disabled) {
background: rgba(255, 80, 80, 0.12);
color: #ff5050;
color: var(--r-color-danger);
opacity: 1;
}
/* Disabled */
@@ -192,12 +192,12 @@ void props;
padding: 12px 10px 12px 16px;
/* Softer divider than before — matches the RMenuDivider rhythm so
headers read as a section boundary instead of a form chrome bar. */
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
border-bottom: 1px solid var(--r-color-border);
}
.r-dialog__lead-icon {
flex-shrink: 0;
color: rgba(255, 255, 255, 0.65);
color: var(--r-color-fg-secondary);
}
.r-dialog__header-slot {
@@ -205,7 +205,7 @@ void props;
min-width: 0;
font-size: var(--r-font-size-md);
font-weight: var(--r-font-weight-semibold);
color: rgba(255, 255, 255, 0.92);
color: var(--r-color-fg);
}
.r-dialog__close {
@@ -217,21 +217,21 @@ void props;
display: grid;
place-items: center;
border-radius: 6px;
color: rgba(255, 255, 255, 0.55);
color: var(--r-color-fg-secondary);
cursor: pointer;
transition:
background var(--r-motion-fast) var(--r-motion-ease-out),
color var(--r-motion-fast) var(--r-motion-ease-out);
}
.r-dialog__close:hover {
background: rgba(255, 255, 255, 0.08);
color: #fff;
background: var(--r-color-surface);
color: var(--r-color-fg);
}
.r-dialog__toolbar {
padding: 8px 14px;
background: rgba(255, 255, 255, 0.02);
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
background: var(--r-color-bg-elevated);
border-bottom: 1px solid var(--r-color-border);
}
.r-dialog__prepend,
@@ -263,7 +263,7 @@ void props;
width: 40px;
height: 40px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.12);
border: 2px solid var(--r-color-surface-hover);
border-top-color: var(--r-color-brand-primary);
animation: r-dialog-spin 0.8s linear infinite;
}
@@ -276,7 +276,7 @@ void props;
.r-dialog__footer {
padding: 10px 14px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
border-top: 1px solid var(--r-color-border);
display: flex;
align-items: center;
gap: 8px;
@@ -192,16 +192,16 @@ onBeforeUnmount(() => {
.r-slider-btn-group--segmented {
padding: 2px;
gap: 2px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
background: var(--r-color-bg-elevated);
border: 1px solid var(--r-color-border);
}
/* Tab — text-padded cluster (top-nav style). */
.r-slider-btn-group--tab {
padding: 4px;
gap: 2px;
background: rgba(255, 255, 255, 0.07);
border: 1px solid rgba(255, 255, 255, 0.1);
background: var(--r-color-surface);
border: 1px solid var(--r-color-border-strong);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
}
@@ -209,7 +209,7 @@ onBeforeUnmount(() => {
.r-slider-btn-group__indicator {
position: absolute;
left: 0;
background: #fff;
background: var(--r-color-fg);
border-radius: var(--r-radius-pill);
pointer-events: none;
will-change: transform, width;
@@ -270,7 +270,7 @@ onBeforeUnmount(() => {
height: 28px !important;
padding: 0 !important;
background: transparent !important;
color: rgba(255, 255, 255, 0.55) !important;
color: var(--r-color-fg-secondary) !important;
display: inline-grid;
place-items: center;
}
@@ -279,13 +279,13 @@ onBeforeUnmount(() => {
}
.r-slider-btn-group--segmented
.r-slider-btn-group__btn:hover:not(.r-slider-btn-group__btn--active) {
color: rgba(255, 255, 255, 0.9) !important;
background: rgba(255, 255, 255, 0.08) !important;
color: var(--r-color-fg) !important;
background: var(--r-color-surface) !important;
transform: scale(1.08);
}
.r-slider-btn-group--segmented .r-slider-btn-group__btn--active,
.r-slider-btn-group--segmented .r-slider-btn-group__btn--active:hover {
color: #111 !important;
color: var(--r-color-bg) !important;
}
/* Tab sizing + colors. */
@@ -293,7 +293,7 @@ onBeforeUnmount(() => {
padding: 7px 22px;
font-size: 13.5px;
font-weight: var(--r-font-weight-medium);
color: rgba(255, 255, 255, 0.62) !important;
color: var(--r-color-fg-secondary) !important;
display: inline-flex;
align-items: center;
gap: 6px;
@@ -301,61 +301,12 @@ onBeforeUnmount(() => {
.r-slider-btn-group--tab
.r-slider-btn-group__btn:hover:not(.r-slider-btn-group__btn--active) {
color: var(--r-color-fg) !important;
background: rgba(255, 255, 255, 0.09);
background: var(--r-color-surface-hover);
}
.r-slider-btn-group--tab .r-slider-btn-group__btn--active,
.r-slider-btn-group--tab .r-slider-btn-group__btn--active:hover {
color: #111 !important;
color: var(--r-color-bg) !important;
background: transparent !important;
font-weight: var(--r-font-weight-semibold);
}
/* Light theme. */
:global(.r-v2.r-v2-light) .r-slider-btn-group--segmented {
background: rgba(17, 17, 23, 0.05);
border-color: rgba(17, 17, 23, 0.08);
}
:global(.r-v2.r-v2-light) .r-slider-btn-group--tab {
background: rgba(17, 17, 23, 0.06);
border-color: rgba(17, 17, 23, 0.1);
}
:global(.r-v2.r-v2-light) .r-slider-btn-group__indicator {
background: #111;
}
:global(.r-v2.r-v2-light)
.r-slider-btn-group--segmented
.r-slider-btn-group__btn {
color: rgba(17, 17, 23, 0.55) !important;
}
:global(.r-v2.r-v2-light)
.r-slider-btn-group--segmented
.r-slider-btn-group__btn:hover:not(.r-slider-btn-group__btn--active) {
color: rgba(17, 17, 23, 0.9) !important;
background: rgba(17, 17, 23, 0.06) !important;
}
:global(.r-v2.r-v2-light)
.r-slider-btn-group--segmented
.r-slider-btn-group__btn--active,
:global(.r-v2.r-v2-light)
.r-slider-btn-group--segmented
.r-slider-btn-group__btn--active:hover {
color: #fff !important;
}
:global(.r-v2.r-v2-light) .r-slider-btn-group--tab .r-slider-btn-group__btn {
color: rgba(17, 17, 23, 0.62) !important;
}
:global(.r-v2.r-v2-light)
.r-slider-btn-group--tab
.r-slider-btn-group__btn:hover:not(.r-slider-btn-group__btn--active) {
background: rgba(17, 17, 23, 0.09);
}
:global(.r-v2.r-v2-light)
.r-slider-btn-group--tab
.r-slider-btn-group__btn--active,
:global(.r-v2.r-v2-light)
.r-slider-btn-group--tab
.r-slider-btn-group__btn--active:hover {
color: #fff !important;
background: transparent !important;
}
</style>