style: complete Light Sepia theme overrides for user dashboard (#78)
Resolves #79 This Pull Request completes the visual implementation of the premium **"Warm Paper / Soft Sepia"** light theme across all user dashboard sub-modules and components. ### 🎨 Styling Refactoring & Light Sepia Layout We refactored isolated component styles (`.razor.css`) to ensure proper contrast, remove hardcoded dark tokens, and fix text visibility under the `.theme-light` environment: 1. **Dashboard & Sidebar Layouts:** * **MainHubLayout.razor.css** & **Dashboard.razor.css**: Replaced hardcoded dark backgrounds with `var(--bg-surface)` and `var(--bg-base)`. Overrode user name brackets, progress bar elements, active quiz cards, graph nodes, and buttons. 2. **Catalog & Library Pages:** * **Catalog.razor.css** & **MyBooks.razor.css**: Adjusted cover hover actions, overlay transparency, and progress tracks. Fixed course tile background gradients to use a warm, elegant `#e4e1d9` layer and `var(--text-main)` code text. 3. **Profile & Settings Views:** * **Profile.razor.css** & **Settings.razor.css**: Overrode token usage progress tracks, page title gradient transparency, section descriptions, and diagnostic button styling. 4. **Concepts Dashboard & Interactive Widgets:** * **ConceptsDashboard.razor.css** & **ConceptsMap.razor.css**: Transitioned node headers, unlocked/locked badges, warning blocks, and term pills to semantic colors. Removed neon glow animations for locked nodes. 5. **Intelligence Workspace & AI Responses:** * **Intelligence.razor.css** & **AiResponseRenderer.razor.css**: Refactored empty state welcome messages, placeholder styles, input fields, and robot avatar borders. Refined the linear-gradient mask fade effect to blend correctly into the light sepia surface environment rather than dropping into dark transparent channels. 6. **Dashboard Sidebar Widgets:** * **CurrentReadingWidget.razor.css** & **ContextualRecommendationsWidget.razor.css**: Replaced hardcoded `#1a1a1e` card containers and light text colors with semantic variables (`var(--bg-surface)`, `var(--border)`, `var(--text-main)`, and `var(--text-muted)`). ### 🛠️ Blazor CSS Isolation Compiler Compliance * Avoided the use of `:global(.theme-light)` selector overrides within isolated CSS rules because they are unsupported by Blazor's CSS isolation compiler and cause the compiled stylesheet to ignore them. * Replaced them with the correct standard selector format `.theme-light .some-class` which properly compiles to `.theme-light .some-class[b-xxxx]`, applying correct theme styles recursively to child scoped markup. ### 🧪 Verification * Checked that the solution builds cleanly with 0 compiler errors: `dotnet build NexusReader.slnx --no-restore` * Ran all unit tests successfully: `dotnet test NexusReader.slnx --no-restore` --------- Co-authored-by: Marek Jasiński <jasins.marek@gmail.com> Reviewed-on: #78 Co-authored-by: Antigravity <antigravity@google.com> Co-committed-by: Antigravity <antigravity@google.com>
This commit was merged in pull request #78.
This commit is contained in:
@@ -30,17 +30,17 @@
|
||||
}
|
||||
|
||||
.user-row .message-avatar {
|
||||
background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
|
||||
color: #ffffff;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
|
||||
background: var(--bg-surface);
|
||||
color: var(--text-main);
|
||||
border: 1px solid var(--border);
|
||||
box-shadow: 0 0 10px var(--border);
|
||||
}
|
||||
|
||||
.ai-row .message-avatar {
|
||||
background: linear-gradient(135deg, #005f38 0%, #004024 100%);
|
||||
color: #e6fffa;
|
||||
border: 1px solid rgba(0, 255, 153, 0.4);
|
||||
box-shadow: 0 0 10px rgba(0, 255, 153, 0.25);
|
||||
border: 1px solid var(--accent);
|
||||
box-shadow: 0 0 10px var(--accent-glow);
|
||||
}
|
||||
|
||||
.message-bubble {
|
||||
@@ -55,23 +55,23 @@
|
||||
}
|
||||
|
||||
.user-bubble {
|
||||
background: #1a1a1e;
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
color: #e4e4e7;
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text-main);
|
||||
border-top-right-radius: 4px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
|
||||
}
|
||||
|
||||
.ai-bubble {
|
||||
background: rgba(26, 26, 30, 0.6);
|
||||
border: 1px solid rgba(255, 255, 255, 0.05);
|
||||
color: #e2e8f0;
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text-main);
|
||||
border-top-left-radius: 4px;
|
||||
box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
|
||||
box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
|
||||
}
|
||||
|
||||
.paywalled-bubble {
|
||||
border-color: rgba(16, 185, 129, 0.15);
|
||||
border-color: var(--accent-glow);
|
||||
}
|
||||
|
||||
.message-header {
|
||||
@@ -109,8 +109,8 @@
|
||||
.paywall-teaser {
|
||||
position: relative;
|
||||
margin-bottom: 1.5rem;
|
||||
-webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
|
||||
mask-image: linear-gradient(to bottom, black 30%, transparent 100%);
|
||||
-webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
|
||||
mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
|
||||
filter: blur(2px);
|
||||
pointer-events: none;
|
||||
-webkit-user-select: none;
|
||||
@@ -119,12 +119,12 @@
|
||||
|
||||
/* Upsell Card */
|
||||
.upsell-card {
|
||||
background: #1a1a1e;
|
||||
background: var(--bg-base);
|
||||
border-radius: 12px;
|
||||
border: 1px solid rgba(16, 185, 129, 0.25);
|
||||
border: 1px solid var(--accent-glow);
|
||||
padding: 1.5rem;
|
||||
margin-top: 1rem;
|
||||
box-shadow: 0 8px 32px rgba(16, 185, 129, 0.08), 0 4px 12px rgba(0, 0, 0, 0.4);
|
||||
box-shadow: 0 8px 32px var(--accent-glow), 0 4px 12px var(--border);
|
||||
animation: card-slide-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
|
||||
}
|
||||
|
||||
@@ -141,14 +141,14 @@
|
||||
|
||||
.upsell-header h4 {
|
||||
margin: 0;
|
||||
color: #10b981;
|
||||
color: var(--accent);
|
||||
font-size: 1.1rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.upsell-text {
|
||||
color: rgba(255, 255, 255, 0.75);
|
||||
color: var(--text-main);
|
||||
font-size: 0.9rem;
|
||||
line-height: 1.55;
|
||||
margin: 0 0 1.25rem 0;
|
||||
@@ -177,15 +177,16 @@
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
background: #10b981;
|
||||
background: var(--accent);
|
||||
border: none;
|
||||
color: #121214;
|
||||
color: var(--bg-surface);
|
||||
}
|
||||
|
||||
.btn-primary:hover:not(:disabled) {
|
||||
background: #0d9668;
|
||||
background: var(--accent);
|
||||
opacity: 0.9;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
|
||||
box-shadow: 0 4px 15px var(--accent-glow);
|
||||
}
|
||||
|
||||
.btn-primary:active:not(:disabled) {
|
||||
@@ -193,19 +194,19 @@
|
||||
}
|
||||
|
||||
.btn-primary:disabled {
|
||||
background: rgba(16, 185, 129, 0.5);
|
||||
color: rgba(18, 18, 20, 0.6);
|
||||
background: var(--accent-glow);
|
||||
color: var(--text-muted);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.btn-secondary {
|
||||
background: transparent;
|
||||
border: 1px solid #10b981;
|
||||
color: #10b981;
|
||||
border: 1px solid var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.btn-secondary:hover {
|
||||
background: rgba(16, 185, 129, 0.05);
|
||||
background: var(--accent-glow);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
@@ -218,9 +219,9 @@
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.75rem;
|
||||
background: rgba(16, 185, 129, 0.1);
|
||||
border: 1px solid rgba(16, 185, 129, 0.3);
|
||||
color: #10b981;
|
||||
background: var(--accent-glow);
|
||||
border: 1px solid var(--accent);
|
||||
color: var(--accent);
|
||||
padding: 1rem;
|
||||
border-radius: 8px;
|
||||
margin-top: 1.25rem;
|
||||
@@ -238,8 +239,8 @@
|
||||
.payment-spinner {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border: 2px solid rgba(18, 18, 20, 0.2);
|
||||
border-top-color: #121214;
|
||||
border: 2px solid var(--border);
|
||||
border-top-color: var(--accent);
|
||||
border-radius: 50%;
|
||||
margin-right: 0.75rem;
|
||||
animation: spin 0.8s linear infinite;
|
||||
@@ -265,3 +266,49 @@
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
LIGHT THEME OVERRIDES — "Warm Paper / Soft Sepia"
|
||||
============================================================ */
|
||||
|
||||
.theme-light .ai-row .message-avatar {
|
||||
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
||||
color: #ffffff;
|
||||
border: 1px solid rgba(16, 185, 129, 0.2);
|
||||
box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
|
||||
}
|
||||
|
||||
.theme-light .user-row .message-avatar {
|
||||
box-shadow: 0 2px 8px rgba(139, 130, 115, 0.1);
|
||||
}
|
||||
|
||||
.theme-light .upsell-card {
|
||||
box-shadow: 0 8px 32px rgba(16, 185, 129, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.theme-light .btn-primary {
|
||||
background: var(--accent);
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.theme-light .btn-primary:hover:not(:disabled) {
|
||||
background: #059669;
|
||||
color: #ffffff;
|
||||
opacity: 1;
|
||||
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
|
||||
}
|
||||
|
||||
.theme-light .btn-secondary {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.theme-light .btn-secondary:hover {
|
||||
background: rgba(16, 185, 129, 0.05);
|
||||
}
|
||||
|
||||
.theme-light .paywall-teaser {
|
||||
-webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
|
||||
mask-image: linear-gradient(to bottom, #000 30%, transparent 100%);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
FocusMode.OnFocusModeChanged += HandleUpdate;
|
||||
ThemeService.OnThemeChanged += HandleThemeChangedAsync;
|
||||
ThemeService.OnThemeChanged += HandleThemeChanged;
|
||||
}
|
||||
|
||||
private async Task HandleClearCache()
|
||||
@@ -68,11 +68,11 @@
|
||||
|
||||
private Task HandleUpdate() => InvokeAsync(StateHasChanged);
|
||||
|
||||
private Task HandleThemeChangedAsync() => InvokeAsync(StateHasChanged);
|
||||
private void HandleThemeChanged(ThemeMode mode) => InvokeAsync(StateHasChanged);
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
FocusMode.OnFocusModeChanged -= HandleUpdate;
|
||||
ThemeService.OnThemeChanged -= HandleThemeChangedAsync;
|
||||
ThemeService.OnThemeChanged -= HandleThemeChanged;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -233,3 +233,126 @@
|
||||
.lock-icon {
|
||||
color: rgba(255, 255, 255, 0.2);
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
LIGHT THEME OVERRIDES — "Warm Paper / Soft Sepia"
|
||||
============================================================ */
|
||||
|
||||
.theme-light .concepts-map::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.theme-light .empty-map-state {
|
||||
background: rgba(0, 0, 0, 0.01);
|
||||
border-color: var(--border);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .empty-map-state .dim-icon {
|
||||
color: var(--text-muted);
|
||||
opacity: 0.4;
|
||||
}
|
||||
|
||||
.theme-light .timeline-step:hover {
|
||||
background: rgba(0, 0, 0, 0.02);
|
||||
}
|
||||
|
||||
.theme-light .timeline-step.unlocked:hover {
|
||||
border-color: rgba(16, 185, 129, 0.15);
|
||||
box-shadow: 0 4px 20px rgba(16, 185, 129, 0.05);
|
||||
}
|
||||
|
||||
.theme-light .timeline-step.selected {
|
||||
background: rgba(16, 185, 129, 0.04);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
|
||||
}
|
||||
|
||||
.theme-light .node-circle {
|
||||
background: var(--bg-surface);
|
||||
}
|
||||
|
||||
.theme-light .unlocked .node-circle {
|
||||
background: var(--bg-surface);
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.theme-light .locked .node-circle {
|
||||
background: var(--bg-base);
|
||||
border-color: var(--border);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .node-glow {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.theme-light .track-active {
|
||||
background: var(--accent);
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.theme-light .track-inactive {
|
||||
background: var(--border);
|
||||
}
|
||||
|
||||
.theme-light .node-content {
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.theme-light .timeline-step.selected .node-content {
|
||||
background: var(--bg-surface);
|
||||
border-color: rgba(16, 185, 129, 0.2);
|
||||
}
|
||||
|
||||
.theme-light .segment-tag {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .unlocked .segment-tag {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.theme-light .badge-unlocked {
|
||||
background: rgba(16, 185, 129, 0.08);
|
||||
color: var(--accent);
|
||||
border-color: rgba(16, 185, 129, 0.2);
|
||||
}
|
||||
|
||||
.theme-light .badge-locked {
|
||||
background: var(--bg-base);
|
||||
color: var(--text-muted);
|
||||
border-color: var(--border);
|
||||
}
|
||||
|
||||
.theme-light .node-title {
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
.theme-light .timeline-step.unlocked:hover .node-title {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.theme-light .locked .node-title {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .node-desc {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .locked .node-desc {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .check-icon {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.theme-light .lock-icon {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
|
||||
+5
-5
@@ -15,7 +15,7 @@
|
||||
|
||||
@if (_isLoading)
|
||||
{
|
||||
<div class="loading-state" role="status" aria-label="Ładowanie rekomendacji">
|
||||
<div @key='"loading"' class="loading-state" role="status" aria-label="Ładowanie rekomendacji">
|
||||
<div class="spinner-ring">
|
||||
<div class="spinner-track"></div>
|
||||
<div class="spinner-head"></div>
|
||||
@@ -25,24 +25,24 @@
|
||||
}
|
||||
else if (_hasError)
|
||||
{
|
||||
<div class="empty-state">
|
||||
<div @key='"error"' class="empty-state">
|
||||
<NexusIcon Name="alert-circle" Size="32" />
|
||||
<p>Nie udało się załadować rekomendacji.</p>
|
||||
</div>
|
||||
}
|
||||
else if (_recommendations is null || _recommendations.Count == 0)
|
||||
{
|
||||
<div class="empty-state">
|
||||
<div @key='"empty"' class="empty-state">
|
||||
<NexusIcon Name="book-open" Size="32" />
|
||||
<p>Zacznij czytać, aby odkryć powiązane tytuły.</p>
|
||||
</div>
|
||||
}
|
||||
else
|
||||
{
|
||||
<ul class="recommendations-list" role="list">
|
||||
<ul @key='"list"' class="recommendations-list" role="list">
|
||||
@foreach (var rec in _recommendations)
|
||||
{
|
||||
<li class="recommendation-item @(rec.IsPremiumUpsell ? "premium" : "owned")"
|
||||
<li @key="rec.TargetBookId" class="recommendation-item @(rec.IsPremiumUpsell ? "premium" : "owned")"
|
||||
role="listitem">
|
||||
<div class="rec-content">
|
||||
<div class="rec-meta">
|
||||
|
||||
+77
@@ -251,3 +251,80 @@
|
||||
padding: 1.25rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
LIGHT THEME OVERRIDES — "Warm Paper / Soft Sepia"
|
||||
============================================================ */
|
||||
|
||||
.theme-light .recommendations-panel {
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.theme-light .recommendations-panel:hover {
|
||||
box-shadow: 0 8px 24px rgba(139, 130, 115, 0.12);
|
||||
}
|
||||
|
||||
.theme-light .header-left h4 {
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
.theme-light .spinner-track {
|
||||
border: 3px solid rgba(0, 0, 0, 0.05);
|
||||
}
|
||||
|
||||
.theme-light .loading-label,
|
||||
.theme-light .empty-state {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .recommendation-item {
|
||||
background: rgba(0, 0, 0, 0.02);
|
||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.theme-light .recommendation-item:hover {
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.theme-light .recommendation-item.premium {
|
||||
border-color: rgba(245, 158, 11, 0.2);
|
||||
}
|
||||
|
||||
.theme-light .recommendation-item.premium:hover {
|
||||
border-color: rgba(245, 158, 11, 0.4);
|
||||
background: rgba(245, 158, 11, 0.04);
|
||||
}
|
||||
|
||||
.theme-light .recommendation-item.owned {
|
||||
border-color: rgba(16, 185, 129, 0.1);
|
||||
}
|
||||
|
||||
.theme-light .recommendation-item.owned:hover {
|
||||
border-color: rgba(16, 185, 129, 0.25);
|
||||
}
|
||||
|
||||
.theme-light .rec-book-title {
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
.theme-light .rec-chapter-title {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .rec-action-btn {
|
||||
border: 1px solid rgba(0, 0, 0, 0.08);
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .rec-action-btn:hover {
|
||||
background: rgba(16, 185, 129, 0.1);
|
||||
border-color: rgba(16, 185, 129, 0.3);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.theme-light .premium .rec-action-btn:hover {
|
||||
background: rgba(245, 158, 11, 0.1);
|
||||
border-color: rgba(245, 158, 11, 0.3);
|
||||
color: #f59e0b;
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<section class="current-reading-card glass-panel">
|
||||
@if (Book != null)
|
||||
{
|
||||
<div class="card-layout">
|
||||
<div @key='"current-reading-book"' class="card-layout">
|
||||
<div class="book-cover">
|
||||
<img src="@(Book.CoverUrl ?? "https://via.placeholder.com/120x180?text=No+Cover")" alt="@Book.Title" />
|
||||
</div>
|
||||
@@ -51,7 +51,7 @@
|
||||
}
|
||||
else
|
||||
{
|
||||
<div class="empty-state">
|
||||
<div @key='"current-reading-empty"' class="empty-state">
|
||||
<div class="empty-icon">
|
||||
<NexusIcon Name="book-open" Size="48" />
|
||||
</div>
|
||||
|
||||
@@ -210,3 +210,60 @@
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
/* ============================================================
|
||||
LIGHT THEME OVERRIDES — "Warm Paper / Soft Sepia"
|
||||
============================================================ */
|
||||
|
||||
.theme-light .current-reading-card {
|
||||
background: var(--bg-surface);
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
|
||||
.theme-light .current-reading-card:hover {
|
||||
background: var(--bg-surface);
|
||||
border-color: var(--accent);
|
||||
box-shadow: 0 10px 30px rgba(139, 130, 115, 0.12);
|
||||
}
|
||||
|
||||
.theme-light .book-cover img {
|
||||
box-shadow: 0 15px 35px rgba(139, 130, 115, 0.18);
|
||||
border: 1px solid rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.theme-light .book-title {
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
.theme-light .author-name {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .chapter-name {
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
.theme-light .progress-bar-container {
|
||||
background: #e4e1d9;
|
||||
}
|
||||
|
||||
.theme-light .progress-bar-fill {
|
||||
box-shadow: 0 0 6px rgba(16, 185, 129, 0.2);
|
||||
}
|
||||
|
||||
.theme-light .book-excerpt {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .empty-text h3 {
|
||||
color: var(--text-main);
|
||||
}
|
||||
|
||||
.theme-light .empty-text p {
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
.theme-light .empty-icon {
|
||||
color: var(--accent);
|
||||
filter: none;
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
ThemeService.OnThemeChanged += HandleThemeChanged;
|
||||
}
|
||||
|
||||
private Task HandleThemeChanged() => InvokeAsync(StateHasChanged);
|
||||
private void HandleThemeChanged(ThemeMode mode) => InvokeAsync(StateHasChanged);
|
||||
|
||||
private double GetDashOffset()
|
||||
{
|
||||
|
||||
@@ -127,7 +127,7 @@
|
||||
protected override async Task OnInitializedAsync()
|
||||
{
|
||||
await Coordinator.ClearAsync();
|
||||
ThemeService.OnThemeChanged += HandleUpdate;
|
||||
ThemeService.OnThemeChanged += HandleThemeChanged;
|
||||
NavigationService.OnNavigationChanged += OnNavigationChanged;
|
||||
QuizService.OnQuizUpdated += HandleUpdate;
|
||||
|
||||
@@ -451,6 +451,8 @@
|
||||
|
||||
private Task HandleUpdate() => InvokeAsync(StateHasChanged);
|
||||
|
||||
private void HandleThemeChanged(ThemeMode mode) => InvokeAsync(StateHasChanged);
|
||||
|
||||
private void HandleEscape()
|
||||
{
|
||||
if (ViewModel != null)
|
||||
@@ -466,7 +468,7 @@
|
||||
|
||||
public async ValueTask DisposeAsync()
|
||||
{
|
||||
ThemeService.OnThemeChanged -= HandleUpdate;
|
||||
ThemeService.OnThemeChanged -= HandleThemeChanged;
|
||||
NavigationService.OnNavigationChanged -= OnNavigationChanged;
|
||||
QuizService.OnQuizUpdated -= HandleUpdate;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user