From 0f83772c74d0caf656ffa6d44dda9aad53ee79f2 Mon Sep 17 00:00:00 2001 From: 31b4 Date: Sun, 8 Nov 2026 19:36:29 +0100 Subject: [PATCH 1/8] Meet contrast and minimum text size, follow system appearance, and slim mobile chrome --- client/src/App.tsx | 37 +++++---------- client/src/components/ApiSession.tsx | 2 +- .../analytics-module/AICashOutlookChart.tsx | 6 +-- .../components/analytics-module/Analytics.tsx | 6 +-- .../CashBalanceComparisonChart.tsx | 6 +-- .../CategoryBreakdownChart.tsx | 2 +- .../analytics-module/ExpensesChart.tsx | 4 +- .../analytics-module/FinancialOutlook.tsx | 2 +- .../analytics-module/IncomeBreakdownChart.tsx | 2 +- .../analytics-module/IncomeChart.tsx | 4 +- .../IncomeExpensesTrendChart.tsx | 8 ++-- .../analytics-module/MoneyMapChart.tsx | 12 ++--- .../analytics-module/PerAccountTrendChart.tsx | 2 +- .../analytics-module/TopExpensesList.tsx | 2 +- .../analytics-module/WidgetConfigPanel.tsx | 8 ++-- .../src/components/common/DateRangePicker.tsx | 10 ++--- client/src/components/common/button.tsx | 2 +- .../src/components/common/calendar-axis.tsx | 2 +- .../common/interactive-area-chart.tsx | 6 +-- .../dashboard-module/AccountList.tsx | 28 ++++++------ .../dashboard-module/AccountShortcuts.tsx | 20 ++++----- .../AccountTotalsSwitches.tsx | 2 +- .../RecurringTransactions.tsx | 10 ++--- .../dashboard-module/SplitLinesEditor.tsx | 2 +- .../dashboard-module/TransactionCalendar.tsx | 24 +++++----- .../dashboard-module/TransactionList.tsx | 6 +-- .../investments-module/HoldingsList.tsx | 6 +-- .../investments-module/InvestmentChart.tsx | 6 +-- .../InvestmentDetailModal.tsx | 22 ++++----- .../investments-module/Investments.tsx | 4 +- .../PortfolioAllocation.tsx | 4 +- .../PortfolioHistoryChart.tsx | 2 +- .../investments-module/TradeEditor.tsx | 4 +- .../search-module/SearchPalette.tsx | 6 +-- .../components/NavigationCard.tsx | 2 +- .../settings-module/components/ThemeCard.tsx | 10 ++--- .../components/settings-module/settings.css | 2 +- client/src/context/ThemeContext.test.tsx | 39 +++++++++++++--- client/src/context/ThemeContext.tsx | 45 ++++++++++++++++--- client/src/index.css | 28 +++++++++++- 40 files changed, 234 insertions(+), 161 deletions(-) diff --git a/client/src/App.tsx b/client/src/App.tsx index 19ea0403..dedf4653 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -1,9 +1,8 @@ import { useEffect, useMemo, useState } from 'react' import { NavLink, Outlet, useLocation, useNavigate } from 'react-router' -import { Wallet, BarChart3, LayoutDashboard, CreditCard, Settings as SettingsIcon, LineChart, Eye, EyeOff, RefreshCw, Plus, Sun, Moon, MoreHorizontal, Search } from 'lucide-react' +import { Wallet, BarChart3, LayoutDashboard, CreditCard, Settings as SettingsIcon, LineChart, Eye, EyeOff, RefreshCw, Plus, MoreHorizontal, Search } from 'lucide-react' import { getMasterCurrency, getStoredMenuVisibility, loadNavigationSettings } from './components/settings-module/settings.storage' import { MENU_VISIBILITY_EVENT, type MenuKey } from './components/settings-module/constants' -import { useTheme } from './context/ThemeContext' import { TransactionList } from './components/dashboard-module/TransactionList' import { Modal } from './components/common/modal' import { usePrivacy } from './context/PrivacyContext' @@ -33,7 +32,6 @@ function App() { const [visibleMenus, setVisibleMenus] = useState>(getStoredMenuVisibility) const [navigationReady, setNavigationReady] = useState(false) const { privacyMode, togglePrivacyMode } = usePrivacy() - const { colorMode, setColorMode } = useTheme() const [moreOpen, setMoreOpen] = useState(false) const [searchOpen, setSearchOpen] = useState(false) const hasUnfinishedChanges = useHasUnsavedChanges() @@ -135,11 +133,7 @@ function App() { document.addEventListener('keydown', keyDown) return () => document.removeEventListener('keydown', keyDown) }, [canCompose, searchOpen, hasUnfinishedChanges]) - const themeControl = - const privacyControl = @@ -148,13 +142,13 @@ function App() {
-
+

Finance

{title}

{privacyControl} - - {view !== 'dashboard' && } - {view !== 'dashboard' && } + +
{view !== 'dashboard' && view !== 'investments' && view !== 'settings' &&

{title}

} @@ -187,19 +177,16 @@ function App() {
-