Browse Source

fixing themes

Nostr-Signature: b415f46b54a30f022ece43f9acc4e13ffddaa56abfd6febe447a852c54ace23c 573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc acec0d1ea91d8c77b7ac98f0837eae225eca1272d7f871c3c5ccefc744706cb933d2f20732d9a1e42dee4f978c2ca7d17d0bc4033088a8db0a39e66cf982cb62
main
Silberengel 3 weeks ago
parent
commit
7be862acb2
  1. 1
      nostr/commit-signatures.jsonl
  2. 20
      src/app.css
  3. 27
      src/lib/components/NavBar.svelte
  4. 40
      src/routes/repos/[npub]/[repo]/+page.svelte

1
nostr/commit-signatures.jsonl

@ -10,3 +10,4 @@
{"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771529356,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","update transfer workflow"]],"content":"Signed commit: update transfer workflow","id":"5d6d6909666a881f88f240389d30f5bedd36dba5d69a9d24dca86557b0098867","sig":"d13caca8b3e1009469e28c352bdfacf5eb78e2e9f5ac80c8511a9e2c6c5ac7031b83374d2d91b93b8018b5a3402e3e9c7114332da89ee2cb039f64aa3207f3f4"} {"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771529356,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","update transfer workflow"]],"content":"Signed commit: update transfer workflow","id":"5d6d6909666a881f88f240389d30f5bedd36dba5d69a9d24dca86557b0098867","sig":"d13caca8b3e1009469e28c352bdfacf5eb78e2e9f5ac80c8511a9e2c6c5ac7031b83374d2d91b93b8018b5a3402e3e9c7114332da89ee2cb039f64aa3207f3f4"}
{"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771529918,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","get rid of settings page\nimplement transfer on cli and api"]],"content":"Signed commit: get rid of settings page\nimplement transfer on cli and api","id":"a312986953d2b408aae10a51ec29b51aca8a2e6396e5b5ec7fd969bb12c5b882","sig":"09b7bff4ce945ac120a413246a0a6111bf9afc14e570524f1e2e4f8ee8e22a2a2c71fd00fedb836e030245d3cbc1e42fcb8c5bde7c643fde2551582f63942851"} {"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771529918,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","get rid of settings page\nimplement transfer on cli and api"]],"content":"Signed commit: get rid of settings page\nimplement transfer on cli and api","id":"a312986953d2b408aae10a51ec29b51aca8a2e6396e5b5ec7fd969bb12c5b882","sig":"09b7bff4ce945ac120a413246a0a6111bf9afc14e570524f1e2e4f8ee8e22a2a2c71fd00fedb836e030245d3cbc1e42fcb8c5bde7c643fde2551582f63942851"}
{"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771530049,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","update docs"]],"content":"Signed commit: update docs","id":"23e1028e3df47a06cee8aaee5da173a73d1317bc6bede818cc002fa002041175","sig":"ac48caad27206d5e1fd7fccbe6afe77ff0a7dd14d4c07b07a91caac1f91f9482960e019531fdb66025c90a4cda6ba0b570ddfe3f64eb7b979e06daeb551b1dad"} {"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771530049,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","update docs"]],"content":"Signed commit: update docs","id":"23e1028e3df47a06cee8aaee5da173a73d1317bc6bede818cc002fa002041175","sig":"ac48caad27206d5e1fd7fccbe6afe77ff0a7dd14d4c07b07a91caac1f91f9482960e019531fdb66025c90a4cda6ba0b570ddfe3f64eb7b979e06daeb551b1dad"}
{"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771531630,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","bug-fixes"]],"content":"Signed commit: bug-fixes","id":"a219cd3c4055c7e77a20f464b2192dfc236059eb6b0f4717c8e9cb26b80a959f","sig":"fb9eef37d37242483dde59b9d3d96fc2a3ff9f9fb1893000327d45e3a1c73bd028b358bfbb43df19633661cc9b9c6798a76a3fc9323d2f89a3dea50fdd035f16"}

20
src/app.css

@ -90,8 +90,8 @@
/* GitRepublic Black Theme - GitHub-style all black */ /* GitRepublic Black Theme - GitHub-style all black */
[data-theme="black"] { [data-theme="black"] {
/* Black theme colors - GitHub-inspired */ /* Black theme colors - GitHub-inspired with burgundy/red accent */
--royal-plum: #9a2a7f; --royal-plum: #C41E3A; /* Crimson/burgundy red */
--snow: #0d1117; /* GitHub's black background */ --snow: #0d1117; /* GitHub's black background */
--lavender-blush: #161b22; /* GitHub's slightly lighter black */ --lavender-blush: #161b22; /* GitHub's slightly lighter black */
--thistle: #21262d; /* GitHub's border color */ --thistle: #21262d; /* GitHub's border color */
@ -106,21 +106,21 @@
--text-muted: #8b949e; /* GitHub's muted text color */ --text-muted: #8b949e; /* GitHub's muted text color */
--border-color: #30363d; /* GitHub's border color */ --border-color: #30363d; /* GitHub's border color */
--border-light: #21262d; /* Lighter border */ --border-light: #21262d; /* Lighter border */
--accent: var(--royal-plum); --accent: var(--royal-plum); /* Crimson red */
--accent-hover: #b84a8a; --accent-hover: #DC143C; /* Brighter crimson for hover */
--accent-light: #6a3a5a; --accent-light: #8B4A5A; /* Lighter burgundy */
--accent-text: #ffffff; --accent-text: #ffffff;
--link-color: #58a6ff; /* GitHub's link color */ --link-color: #FF6B6B; /* Light red for links */
--link-hover: #79c0ff; /* GitHub's link hover */ --link-hover: #FF8E8E; /* Brighter red for link hover */
--card-bg: #161b22; /* GitHub's card background */ --card-bg: #161b22; /* GitHub's card background */
--card-border: #30363d; /* GitHub's card border */ --card-border: #30363d; /* GitHub's card border */
--button-primary: var(--royal-plum); --button-primary: var(--royal-plum); /* Crimson red */
--button-primary-hover: #b84a8a; --button-primary-hover: #DC143C; /* Brighter crimson */
--button-secondary: #30363d; /* GitHub's secondary button - lighter for contrast */ --button-secondary: #30363d; /* GitHub's secondary button - lighter for contrast */
--button-secondary-hover: #484f58; /* GitHub's secondary button hover - even lighter */ --button-secondary-hover: #484f58; /* GitHub's secondary button hover - even lighter */
--input-bg: #0d1117; /* GitHub's input background */ --input-bg: #0d1117; /* GitHub's input background */
--input-border: #30363d; /* GitHub's input border */ --input-border: #30363d; /* GitHub's input border */
--input-focus: var(--royal-plum); --input-focus: var(--royal-plum); /* Crimson red for focus */
--input-placeholder: #6e7681; /* GitHub's placeholder color */ --input-placeholder: #6e7681; /* GitHub's placeholder color */
--error-bg: #3d1f1f; --error-bg: #3d1f1f;
--error-text: #f85149; /* GitHub's error color */ --error-text: #f85149; /* GitHub's error color */

27
src/lib/components/NavBar.svelte

@ -337,6 +337,33 @@
width: 20px; width: 20px;
height: 20px; height: 20px;
display: block; 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 */
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 */ /* Mobile responsive styles */

40
src/routes/repos/[npub]/[repo]/+page.svelte

@ -3084,17 +3084,23 @@
{/if} {/if}
</button> </button>
{/if} {/if}
<select bind:value={currentBranch} onchange={handleBranchChange} class="branch-select" disabled={branches.length === 0 && loading}> {#if branches.length === 0 && !loading}
{#if branches.length === 0} <div class="branch-select branch-select-empty" title="No branches available">
<!-- Show current branch even if branches haven't loaded yet --> No branches detected
<option value={currentBranch}>{currentBranch}{loading ? ' (loading...)' : ''}</option> </div>
{:else} {:else}
{#each branches as branch} <select bind:value={currentBranch} onchange={handleBranchChange} class="branch-select" disabled={branches.length === 0 && loading}>
{@const branchName = typeof branch === 'string' ? branch : (branch as { name: string }).name} {#if branches.length === 0}
<option value={branchName}>{branchName}</option> <!-- Show current branch even if branches haven't loaded yet -->
{/each} <option value={currentBranch}>{currentBranch}{loading ? ' (loading...)' : ''}</option>
{/if} {:else}
</select> {#each branches as branch}
{@const branchName = typeof branch === 'string' ? branch : (branch as { name: string }).name}
<option value={branchName}>{branchName}</option>
{/each}
{/if}
</select>
{/if}
{#if isMaintainer && branches.length > 0 && currentBranch && branches.length > 1} {#if isMaintainer && branches.length > 0 && currentBranch && branches.length > 1}
{@const canDelete = defaultBranch !== null && currentBranch !== defaultBranch} {@const canDelete = defaultBranch !== null && currentBranch !== defaultBranch}
{#if canDelete && currentBranch} {#if canDelete && currentBranch}
@ -4994,6 +5000,18 @@
font-family: 'IBM Plex Serif', serif; font-family: 'IBM Plex Serif', serif;
} }
.branch-select-empty {
padding: 0.5rem;
border: 1px solid var(--input-border);
border-radius: 0.25rem;
background: var(--input-bg);
color: var(--text-muted);
font-family: 'IBM Plex Serif', serif;
opacity: 0.7;
cursor: not-allowed;
user-select: none;
}
.repo-view { .repo-view {
flex: 1; flex: 1;

Loading…
Cancel
Save