From 7c331b9c632b990fd109ade6ccbfb752051a88fc Mon Sep 17 00:00:00 2001 From: Silberengel Date: Thu, 19 Feb 2026 18:00:22 +0100 Subject: [PATCH] correct icons Nostr-Signature: 3d630436d21542aa097b574829ba03f9700db4d707f3d7065bc24000321d0ba2 573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc 6e345bb8ca6fef352400dd10a801d1f41b8798b7a0307eba9af84ea3b4045235b50510905ab2cc9cbdd2894b56a0d1524560a9347c137f39cf756c43ca72c326 --- nostr/commit-signatures.jsonl | 1 + src/lib/components/ForwardingConfig.svelte | 28 +++++----- src/lib/components/NavBar.svelte | 4 +- src/lib/components/ThemeToggle.svelte | 23 ++++---- src/lib/services/messaging/event-forwarder.ts | 4 +- src/routes/dashboard/+page.svelte | 55 +++++++++++++++---- src/routes/repos/+page.svelte | 2 +- src/routes/users/[npub]/+page.svelte | 16 +++++- static/icons/bell.svg | 4 ++ static/icons/clipboard-list.svg | 8 +++ static/icons/git-branch.svg | 6 ++ static/icons/git-pull-request.svg | 6 ++ static/icons/github.svg | 2 +- static/icons/gitlab.svg | 3 + static/icons/hammer.svg | 10 ++++ static/icons/layout-dashboard.svg | 6 ++ static/icons/menu.svg | 5 ++ static/icons/message-circle.svg | 3 + static/icons/moon.svg | 3 + static/icons/palette.svg | 7 +++ static/icons/refresh-cw.svg | 6 ++ static/icons/settings.svg | 4 ++ static/icons/smartphone.svg | 4 ++ static/icons/sun.svg | 11 ++++ 24 files changed, 177 insertions(+), 44 deletions(-) create mode 100644 static/icons/bell.svg create mode 100644 static/icons/clipboard-list.svg create mode 100644 static/icons/git-branch.svg create mode 100644 static/icons/git-pull-request.svg create mode 100644 static/icons/gitlab.svg create mode 100644 static/icons/hammer.svg create mode 100644 static/icons/layout-dashboard.svg create mode 100644 static/icons/menu.svg create mode 100644 static/icons/message-circle.svg create mode 100644 static/icons/moon.svg create mode 100644 static/icons/palette.svg create mode 100644 static/icons/refresh-cw.svg create mode 100644 static/icons/settings.svg create mode 100644 static/icons/smartphone.svg create mode 100644 static/icons/sun.svg diff --git a/nostr/commit-signatures.jsonl b/nostr/commit-signatures.jsonl index ac4d1c5..87d83dc 100644 --- a/nostr/commit-signatures.jsonl +++ b/nostr/commit-signatures.jsonl @@ -3,3 +3,4 @@ {"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771502215,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","added push-all to the cli\nimplement black theme\nimplement swagger API docs"]],"content":"Signed commit: added push-all to the cli\nimplement black theme\nimplement swagger API docs","id":"c15ce3d2f1ae613492802533a7e71b96df919a2ff52d501630c6ee64abf6a718","sig":"ba72d348528a2846c5e44474af821e79fcdb377caa0d905ae7e7fc9115b77ea92f65325a8f0000f83467983068f643ecf3beaca784666d361a8883160ae3a936"} {"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771513666,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","setup separate repos"]],"content":"Signed commit: setup separate repos","id":"62fa7c667e07791d898d0af8971165a57df5a061585e4a71447e52f7444dc687","sig":"25ef4575b03248381920985338e0ff4605f0af3fcaf8615d7906e3e116e3fbb64de3f3927f511fd45340e7dbdc4a2c3ea7fa150e5e9c75a6b5880cecaa4d2851"} {"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771516332,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","security fixes"]],"content":"Signed commit: security fixes","id":"a16b9538d6ce6ce2f1030042a4106534e2af1583642315893cc56d9f2e7cd385","sig":"0be95c5f2d720c008b52a1d38cef9952b1a615ecd3ef34b5b373266a2afb880e30347d3ee467b4ea42eca4a0e57808f98795ada878357ad39ca1a3063d6b6a22"} +{"kind":1640,"pubkey":"573634b648634cbad10f2451776089ea21090d9407f715e83c577b4611ae6edc","created_at":1771519913,"tags":[["author","Silberengel","silberengel7@protonmail.com"],["message","fix swagger"]],"content":"Signed commit: fix swagger","id":"c0eb40be64306e1b11eba642ad357fd877776f50c8e64867cff845b92851c60e","sig":"194bedf752e25da9924bcf16b55eec0b29ae5da8bcd3f2a646e072f08d2d8f499269d42fafe6c056effb22840be0101c243aa1852b41899a73b242e6d6ad2932"} diff --git a/src/lib/components/ForwardingConfig.svelte b/src/lib/components/ForwardingConfig.svelte index ed37822..7ea6e20 100644 --- a/src/lib/components/ForwardingConfig.svelte +++ b/src/lib/components/ForwardingConfig.svelte @@ -115,15 +115,15 @@ function getPlatformIcon(platform: string): string { const icons: Record = { - github: '🐙', - gitlab: 'đŸĻŠ', - gitea: '🐈', - codeberg: 'đŸĻĢ', - forgejo: '🔨', - onedev: 'đŸ“Ļ', - custom: 'âš™ī¸' + github: '/icons/github.svg', + gitlab: '/icons/gitlab.svg', + gitea: '/icons/git-branch.svg', + codeberg: '/icons/git-branch.svg', + forgejo: '/icons/hammer.svg', + onedev: '/icons/package.svg', + custom: '/icons/settings.svg' }; - return icons[platform.toLowerCase()] || 'đŸ“Ļ'; + return icons[platform.toLowerCase()] || '/icons/package.svg'; } function getPlatformName(platform: string): string { @@ -179,21 +179,21 @@
{#if summary.platforms.telegram}
- 📱 + Telegram Telegram
{/if} {#if summary.platforms.simplex}
- đŸ’Ŧ + SimpleX SimpleX
{/if} {#if summary.platforms.email}
- 📧 + Email Email
{/if} @@ -201,7 +201,7 @@ {#if summary.platforms.gitPlatforms && summary.platforms.gitPlatforms.length > 0} {#each summary.platforms.gitPlatforms as gitPlatform}
- {getPlatformIcon(gitPlatform.platform)} + {getPlatformName(gitPlatform.platform)} {getPlatformName(gitPlatform.platform)} {#if !compact} @@ -282,7 +282,9 @@ } .platform-icon { - font-size: 1.2rem; + width: 18px; + height: 18px; + flex-shrink: 0; } .platform-name { diff --git a/src/lib/components/NavBar.svelte b/src/lib/components/NavBar.svelte index 2cf0b42..aea995b 100644 --- a/src/lib/components/NavBar.svelte +++ b/src/lib/components/NavBar.svelte @@ -198,7 +198,7 @@ {/if}
@@ -334,6 +334,8 @@ } .hamburger-icon { + width: 20px; + height: 20px; display: block; } diff --git a/src/lib/components/ThemeToggle.svelte b/src/lib/components/ThemeToggle.svelte index 6dca792..6bb35cd 100644 --- a/src/lib/components/ThemeToggle.svelte +++ b/src/lib/components/ThemeToggle.svelte @@ -87,10 +87,7 @@ title="Theme settings" bind:this={buttonElement} > - - - - + Theme {#if dropdownOpen} @@ -100,7 +97,7 @@ class:active={currentTheme === 'gitrepublic-light'} onclick={() => selectTheme('gitrepublic-light')} > - âšĒ + Light theme Light @@ -156,9 +153,10 @@ transform: scale(0.98); } - .theme-toggle svg { + .theme-toggle .theme-icon { width: 16px; height: 16px; + display: block; } .theme-dropdown { @@ -211,13 +209,14 @@ font-weight: 600; } - .theme-option .theme-circle { - font-size: 1.25rem; - line-height: 1; + .theme-option .theme-icon-option { + width: 18px; + height: 18px; display: inline-block; + flex-shrink: 0; } - .theme-option.active .theme-circle { + .theme-option.active .theme-icon-option { transform: scale(1.1); } diff --git a/src/lib/services/messaging/event-forwarder.ts b/src/lib/services/messaging/event-forwarder.ts index c276104..8659d0e 100644 --- a/src/lib/services/messaging/event-forwarder.ts +++ b/src/lib/services/messaging/event-forwarder.ts @@ -195,7 +195,7 @@ function formatEventMessage(event: NostrEvent, userPubkeyHex: string): string { .filter(tag => tag[0] === 'p' && tag[1]) .map(tag => tag[1].slice(0, 16) + '...'); - let message = `đŸ’Ŧ Public Message from ${userShort}`; + let message = `Public Message from ${userShort}`; if (recipients.length > 0) { message += ` to ${recipients.join(', ')}`; } @@ -204,7 +204,7 @@ function formatEventMessage(event: NostrEvent, userPubkeyHex: string): string { return message; } - let message = `🔔 ${kindName} published by ${userShort}\n\n`; + let message = `${kindName} published by ${userShort}\n\n`; if (event.content) { const content = event.content.length > 500 diff --git a/src/routes/dashboard/+page.svelte b/src/routes/dashboard/+page.svelte index c7c99d8..a02753e 100644 --- a/src/routes/dashboard/+page.svelte +++ b/src/routes/dashboard/+page.svelte @@ -107,15 +107,15 @@ function getPlatformIcon(platform: string): string { const icons: Record = { - github: '🐙', - gitlab: 'đŸĻŠ', - gitea: '🐈', - codeberg: 'đŸĻĢ', - forgejo: '🔨', - onedev: 'đŸ“Ļ', - custom: 'âš™ī¸' + github: '/icons/github.svg', + gitlab: '/icons/gitlab.svg', + gitea: '/icons/git-branch.svg', + codeberg: '/icons/git-branch.svg', + forgejo: '/icons/hammer.svg', + onedev: '/icons/package.svg', + custom: '/icons/settings.svg' }; - return icons[platform] || 'đŸ“Ļ'; + return icons[platform] || '/icons/package.svg'; } function formatDate(dateString: string): string { @@ -164,7 +164,12 @@

Aggregated issues and pull requests from all your configured git platforms

{#if userPubkeyHex} {/if} @@ -220,7 +225,13 @@
- {isPR ? '🔀 PR' : '📋 Issue'} + {#if isPR} + PR + PR + {:else} + Issue + Issue + {/if}
- {getPlatformIcon(item.platform)} {getPlatformName(item.platform)} + {getPlatformName(item.platform)} + {getPlatformName(item.platform)} {getRepoDisplay(item)} {#if item.number} @@ -263,7 +275,10 @@ {/if} Updated {formatDate(item.updated_at)} {#if item.comments_count !== undefined && item.comments_count > 0} - đŸ’Ŧ {item.comments_count} + + Comments + {item.comments_count} + {/if}
{#if item.labels && item.labels.length > 0} @@ -331,6 +346,9 @@ cursor: pointer; font-size: 0.9rem; transition: background 0.2s; + display: inline-flex; + align-items: center; + gap: 0.5rem; } .refresh-button:hover:not(:disabled) { @@ -415,6 +433,9 @@ font-size: 0.75rem; font-weight: 600; flex-shrink: 0; + display: inline-flex; + align-items: center; + gap: 0.25rem; } .item-type-badge.pr { @@ -454,6 +475,9 @@ background: var(--bg-secondary); border-radius: 4px; font-weight: 500; + display: inline-flex; + align-items: center; + gap: 0.25rem; } .repo-name { @@ -535,6 +559,13 @@ gap: 0.25rem; } + .icon-inline { + width: 14px; + height: 14px; + display: inline-block; + vertical-align: middle; + } + .item-labels { display: flex; flex-wrap: wrap; diff --git a/src/routes/repos/+page.svelte b/src/routes/repos/+page.svelte index 9583203..35665ba 100644 --- a/src/routes/repos/+page.svelte +++ b/src/routes/repos/+page.svelte @@ -542,7 +542,7 @@ {#if repoImage} {getRepoName(repo)} {:else} -
đŸ“Ļ
+ Repository {/if} {getRepoName(repo)}
diff --git a/src/routes/users/[npub]/+page.svelte b/src/routes/users/[npub]/+page.svelte index fcd5c81..63dd6fd 100644 --- a/src/routes/users/[npub]/+page.svelte +++ b/src/routes/users/[npub]/+page.svelte @@ -319,7 +319,10 @@ {#if getForwardingPubkey()} {/if} @@ -740,7 +743,9 @@ } .dashboard-button { - display: inline-block; + display: inline-flex; + align-items: center; + gap: 0.5rem; padding: 0.75rem 1.5rem; background: var(--accent); color: white; @@ -751,6 +756,13 @@ transition: background 0.2s; } + .icon-inline { + width: 16px; + height: 16px; + display: inline-block; + vertical-align: middle; + } + .dashboard-button:hover { background: var(--accent-dark); } diff --git a/static/icons/bell.svg b/static/icons/bell.svg new file mode 100644 index 0000000..b3c32f1 --- /dev/null +++ b/static/icons/bell.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/clipboard-list.svg b/static/icons/clipboard-list.svg new file mode 100644 index 0000000..1f18f47 --- /dev/null +++ b/static/icons/clipboard-list.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/static/icons/git-branch.svg b/static/icons/git-branch.svg new file mode 100644 index 0000000..a19ec5b --- /dev/null +++ b/static/icons/git-branch.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/static/icons/git-pull-request.svg b/static/icons/git-pull-request.svg new file mode 100644 index 0000000..8561163 --- /dev/null +++ b/static/icons/git-pull-request.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/static/icons/github.svg b/static/icons/github.svg index 06e3bbf..ddbe30b 100644 --- a/static/icons/github.svg +++ b/static/icons/github.svg @@ -1,4 +1,4 @@ - + diff --git a/static/icons/gitlab.svg b/static/icons/gitlab.svg new file mode 100644 index 0000000..1b4b0bb --- /dev/null +++ b/static/icons/gitlab.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/hammer.svg b/static/icons/hammer.svg new file mode 100644 index 0000000..e15dd75 --- /dev/null +++ b/static/icons/hammer.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/static/icons/layout-dashboard.svg b/static/icons/layout-dashboard.svg new file mode 100644 index 0000000..66db815 --- /dev/null +++ b/static/icons/layout-dashboard.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/static/icons/menu.svg b/static/icons/menu.svg new file mode 100644 index 0000000..357561c --- /dev/null +++ b/static/icons/menu.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/static/icons/message-circle.svg b/static/icons/message-circle.svg new file mode 100644 index 0000000..5408c36 --- /dev/null +++ b/static/icons/message-circle.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/moon.svg b/static/icons/moon.svg new file mode 100644 index 0000000..90d9875 --- /dev/null +++ b/static/icons/moon.svg @@ -0,0 +1,3 @@ + + + diff --git a/static/icons/palette.svg b/static/icons/palette.svg new file mode 100644 index 0000000..9279167 --- /dev/null +++ b/static/icons/palette.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/static/icons/refresh-cw.svg b/static/icons/refresh-cw.svg new file mode 100644 index 0000000..a5b3b04 --- /dev/null +++ b/static/icons/refresh-cw.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/static/icons/settings.svg b/static/icons/settings.svg new file mode 100644 index 0000000..12609b5 --- /dev/null +++ b/static/icons/settings.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/smartphone.svg b/static/icons/smartphone.svg new file mode 100644 index 0000000..afa0de7 --- /dev/null +++ b/static/icons/smartphone.svg @@ -0,0 +1,4 @@ + + + + diff --git a/static/icons/sun.svg b/static/icons/sun.svg new file mode 100644 index 0000000..822e0eb --- /dev/null +++ b/static/icons/sun.svg @@ -0,0 +1,11 @@ + + + + + + + + + + +