diff --git a/nostr/commit-signatures.jsonl b/nostr/commit-signatures.jsonl index aa78f51..0ea2f32 100644 --- a/nostr/commit-signatures.jsonl +++ b/nostr/commit-signatures.jsonl @@ -72,3 +72,4 @@ {"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771952814,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","more work on branches"]],"content":"Signed commit: more work on branches","id":"adaaea7f2065a00cfd04c9de9bf82b1b976ac3d20c32389a8bd8aa7ad0a95677","sig":"71ce678d0a0732beab1f49f8318cbfe3d8b33d45eacf13392fdb9553e8b1f4732c28d8ffc33b50c9736a8324cf7604c223bb71ff4cfd32f41d7f3e81e1591fcc"} {"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771956701,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","implemented releases and code serach\nadd contributors to private repos\napply/merge buttons for patches and PRs\nhighlgihts and comments on patches and prs\nadded tagged downloads"]],"content":"Signed commit: implemented releases and code serach\nadd contributors to private repos\napply/merge buttons for patches and PRs\nhighlgihts and comments on patches and prs\nadded tagged downloads","id":"e822be2b0fbf3285bbedf9d8f9d1692b5503080af17a4d28941a1dc81c96187c","sig":"70c8b6e499551ce43478116cf694992102a29572d5380cbe3b070a3026bc2c9e35177587712c7414f25d1ca50038c9614479f7758bbdc48f69cc44cd52bf4842"} {"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771958124,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","fix crash on download"]],"content":"Signed commit: fix crash on download","id":"3fdcc681cdda4b523f9c3752309b8cf740b58178ca02dcff4ef97ec714bf394c","sig":"e405612a5aafeef66818f0a3c683e322f862d1fc3c662c32f618f516fd8c11ece5f4539b94893583301d31fd2ecd3de3b6d7a953505e2696915afe10710a16d7"} +{"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771964922,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","fix page crash on download"]],"content":"Signed commit: fix page crash on download","id":"eafa232557affbacb430b467507febc201f0a8f54f4b9ecf57e315c32e51a589","sig":"53c58aabe0bfad6e432a8bb980c2046fc14bc8163825fde2ac766a449ce4418adb1049ac732c7fc7ecc7ad050539fb68c023d54f2b6c390e478616b5c0b91a31"} diff --git a/src/app.html b/src/app.html index 06f427a..54f3652 100644 --- a/src/app.html +++ b/src/app.html @@ -10,9 +10,7 @@ // Use localStorage as quick fallback, layout will load proper theme from IndexedDB (function() { const savedTheme = localStorage.getItem('theme'); - if (savedTheme === 'gitrepublic-light') { - document.documentElement.setAttribute('data-theme', 'light'); - } else if (savedTheme === 'gitrepublic-black') { + if (savedTheme === 'gitrepublic-black') { document.documentElement.setAttribute('data-theme', 'black'); } else { // Default to gitrepublic-dark (purple) diff --git a/src/lib/components/NavBar.svelte b/src/lib/components/NavBar.svelte index d70d3d3..74acf81 100644 --- a/src/lib/components/NavBar.svelte +++ b/src/lib/components/NavBar.svelte @@ -491,35 +491,16 @@ width: 20px; height: 20px; display: block; - filter: brightness(0) saturate(100%) invert(1) !important; /* Default white for dark themes */ - opacity: 1 !important; - } - - /* Light theme: black icon */ - :global([data-theme="light"]) .hamburger-icon { - filter: brightness(0) saturate(100%) !important; /* Black in light theme */ - opacity: 1 !important; - } - - /* Dark themes: white icon */ - :global([data-theme="dark"]) .hamburger-icon, - :global([data-theme="black"]) .hamburger-icon { - filter: brightness(0) saturate(100%) invert(1) !important; /* White in dark themes */ + /* White icon for both dark themes */ + filter: brightness(0) saturate(100%) invert(1) !important; opacity: 1 !important; } - /* Hover: white for visibility */ .mobile-menu-toggle:hover .hamburger-icon { filter: brightness(0) saturate(100%) invert(1) !important; opacity: 1 !important; } - /* Light theme hover: keep black */ - :global([data-theme="light"]) .mobile-menu-toggle:hover .hamburger-icon { - filter: brightness(0) saturate(100%) !important; - opacity: 1 !important; - } - /* Mobile responsive styles */ @media (max-width: 768px) { .header-container { diff --git a/src/lib/components/SettingsButton.svelte b/src/lib/components/SettingsButton.svelte index 3dc3b0a..0a5fc11 100644 --- a/src/lib/components/SettingsButton.svelte +++ b/src/lib/components/SettingsButton.svelte @@ -52,32 +52,13 @@ width: 16px; height: 16px; display: block; - filter: brightness(0) saturate(100%) invert(1) !important; /* Default white for dark themes */ - opacity: 1 !important; - } - - /* Light theme: black icon */ - :global([data-theme="light"]) .settings-icon { - filter: brightness(0) saturate(100%) !important; /* Black in light theme */ - opacity: 1 !important; - } - - /* Dark themes: white icon */ - :global([data-theme="dark"]) .settings-icon, - :global([data-theme="black"]) .settings-icon { - filter: brightness(0) saturate(100%) invert(1) !important; /* White in dark themes */ + /* White icon for both dark themes */ + filter: brightness(0) saturate(100%) invert(1) !important; opacity: 1 !important; } - /* Hover: white for visibility */ .settings-button:hover .settings-icon { filter: brightness(0) saturate(100%) invert(1) !important; opacity: 1 !important; } - - /* Light theme hover: keep black */ - :global([data-theme="light"]) .settings-button:hover .settings-icon { - filter: brightness(0) saturate(100%) !important; - opacity: 1 !important; - } diff --git a/src/lib/components/SettingsModal.svelte b/src/lib/components/SettingsModal.svelte index 898faef..7f23ebf 100644 --- a/src/lib/components/SettingsModal.svelte +++ b/src/lib/components/SettingsModal.svelte @@ -18,7 +18,7 @@ let autoSave = $state(false); let userName = $state(''); let userEmail = $state(''); - let theme = $state<'gitrepublic-light' | 'gitrepublic-dark' | 'gitrepublic-black'>('gitrepublic-dark'); + let theme = $state<'gitrepublic-dark' | 'gitrepublic-black'>('gitrepublic-dark'); let defaultBranch = $state('master'); let loading = $state(false); let saving = $state(false); @@ -121,23 +121,21 @@ } } - function applyTheme(newTheme: 'gitrepublic-light' | 'gitrepublic-dark' | 'gitrepublic-black') { + function applyTheme(newTheme: 'gitrepublic-dark' | 'gitrepublic-black') { // Remove all theme attributes first document.documentElement.removeAttribute('data-theme'); document.documentElement.removeAttribute('data-theme-light'); document.documentElement.removeAttribute('data-theme-black'); // Apply the selected theme - if (newTheme === 'gitrepublic-light') { - document.documentElement.setAttribute('data-theme', 'light'); - } else if (newTheme === 'gitrepublic-dark') { + if (newTheme === 'gitrepublic-dark') { document.documentElement.setAttribute('data-theme', 'dark'); } else if (newTheme === 'gitrepublic-black') { document.documentElement.setAttribute('data-theme', 'black'); } } - function handleThemeChange(newTheme: 'gitrepublic-light' | 'gitrepublic-dark' | 'gitrepublic-black') { + function handleThemeChange(newTheme: 'gitrepublic-dark' | 'gitrepublic-black') { theme = newTheme; // Preview theme change immediately (don't save yet) applyTheme(newTheme); @@ -232,14 +230,6 @@ Theme
-
-