Skip to content

Commit

Permalink
Merge pull request #1142 from rainlanguage/01/13/25-Fix-telegram-icon…
Browse files Browse the repository at this point in the history
…-in-sidebar

Fix telegram link in sidebar to respect darkmode
  • Loading branch information
hardingjam authored Jan 15, 2025
2 parents a82995c + 9e78618 commit 4eb790d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
13 changes: 5 additions & 8 deletions packages/ui-components/src/lib/components/IconTelegram.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<script lang="ts">
export let dark = false;
</script>

<svg
width="24px"
height="24px"
viewBox="0 0 24 24"
class={`h-5 w-5 fill-current ${dark ? 'text-white dark:text-black' : 'text-black dark:text-white'}`}
class="h-5 w-5 text-gray-800 dark:text-white"
style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"
><path
id="telegram-1"
stroke="currentColor"
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M18.384,22.779c0.322,0.228 0.737,0.285 1.107,0.145c0.37,-0.141 0.642,-0.457 0.724,-0.84c0.869,-4.084 2.977,-14.421 3.768,-18.136c0.06,-0.28 -0.04,-0.571 -0.26,-0.758c-0.22,-0.187 -0.525,-0.241 -0.797,-0.14c-4.193,1.552 -17.106,6.397 -22.384,8.35c-0.335,0.124 -0.553,0.446 -0.542,0.799c0.012,0.354 0.25,0.661 0.593,0.764c2.367,0.708 5.474,1.693 5.474,1.693c0,0 1.452,4.385 2.209,6.615c0.095,0.28 0.314,0.5 0.603,0.576c0.288,0.075 0.596,-0.004 0.811,-0.207c1.216,-1.148 3.096,-2.923 3.096,-2.923c0,0 3.572,2.619 5.598,4.062Zm-11.01,-8.677l1.679,5.538l0.373,-3.507c0,0 6.487,-5.851 10.185,-9.186c0.108,-0.098 0.123,-0.262 0.033,-0.377c-0.089,-0.115 -0.253,-0.142 -0.376,-0.064c-4.286,2.737 -11.894,7.596 -11.894,7.596Z"
/></svg
>
2 changes: 1 addition & 1 deletion packages/webapp/src/routes/test/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<IconInfo />
<IconLedger />
<IconSuccess />
<IconTelegram dark />
<IconTelegram />
<IconWalletConnect />
<IconWarning />
<CodeMirrorDotrain
Expand Down
2 changes: 1 addition & 1 deletion tauri-app/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>
<div class="flex items-center gap-x-2">
<Button target="_blank" href="https://t.me/+W0aQ36ptN_E2MjZk">
<IconTelegram dark />
<IconTelegram />
<span class="ml-2">Join the community</span>
</Button>
<Button target="_blank" href="https://docs.rainlang.xyz/raindex/getting-started"
Expand Down

0 comments on commit 4eb790d

Please sign in to comment.