From f72f9b15b06de23f71450dc0f095c3e61f11721a Mon Sep 17 00:00:00 2001 From: Pavel Laptev Date: Tue, 16 Jan 2024 16:56:38 +0100 Subject: [PATCH] =?UTF-8?q?updated=20icons,=20=E2=80=9Cdisabled=E2=80=9D?= =?UTF-8?q?=20state=20for=20the=20Tag=20component?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gitbutler-ui/src/lib/icons/icons.json | 13 +++++++++---- .../src/routes/[projectId]/components/Tag.svelte | 10 +++++++++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/gitbutler-ui/src/lib/icons/icons.json b/gitbutler-ui/src/lib/icons/icons.json index 663366384..e572a6093 100644 --- a/gitbutler-ui/src/lib/icons/icons.json +++ b/gitbutler-ui/src/lib/icons/icons.json @@ -1,7 +1,7 @@ { "mail": "M0 5.83C0 4.12153 0 3.26729 0.33776 2.61708C0.622386 2.06915 1.06915 1.62239 1.61708 1.33776C2.26729 1 3.12153 1 4.83 1H11.17C12.8785 1 13.7327 1 14.3829 1.33776C14.9309 1.62239 15.3776 2.06915 15.6622 2.61708C16 3.26729 16 4.12153 16 5.83V10.17C16 11.8785 16 12.7327 15.6622 13.3829C15.3776 13.9309 14.9309 14.3776 14.3829 14.6622C13.7327 15 12.8785 15 11.17 15H4.83C3.12153 15 2.26729 15 1.61708 14.6622C1.06915 14.3776 0.622386 13.9309 0.33776 13.3829C0 12.7327 0 11.8785 0 10.17V5.83ZM4.83 2.5H11.17C12.0494 2.5 12.6173 2.50121 13.0492 2.53707C13.4631 2.57145 13.6161 2.62976 13.6915 2.66888C13.9654 2.81119 14.1888 3.03457 14.3311 3.30854C14.352 3.34874 14.3783 3.41107 14.4036 3.5234L8.81349 8.31493C8.34537 8.71617 7.65462 8.71617 7.18651 8.31493L1.5964 3.52341C1.62165 3.41107 1.648 3.34874 1.66888 3.30854C1.81119 3.03457 2.03457 2.81119 2.30854 2.66888C2.38385 2.62976 2.53687 2.57145 2.95083 2.53707C3.38275 2.50121 3.95059 2.5 4.83 2.5ZM1.50025 5.41662C1.50003 5.54634 1.5 5.68387 1.5 5.83V10.17C1.5 11.0494 1.50121 11.6173 1.53707 12.0492C1.57145 12.4631 1.62976 12.6161 1.66888 12.6915C1.81119 12.9654 2.03457 13.1888 2.30854 13.3311C2.38385 13.3702 2.53687 13.4285 2.95083 13.4629C3.38275 13.4988 3.95059 13.5 4.83 13.5H11.17C12.0494 13.5 12.6173 13.4988 13.0492 13.4629C13.4631 13.4285 13.6161 13.3702 13.6915 13.3311C13.9654 13.1888 14.1888 12.9654 14.3311 12.6915C14.3702 12.6161 14.4285 12.4631 14.4629 12.0492C14.4988 11.6173 14.5 11.0494 14.5 10.17V5.83C14.5 5.68387 14.5 5.54634 14.4997 5.41661L9.78967 9.45382C8.75982 10.3365 7.24017 10.3365 6.21032 9.45382L1.50025 5.41662Z", - "pr": "M4.5 0.75C2.98122 0.75 1.75 1.98122 1.75 3.5C1.75 4.75878 2.59575 5.82002 3.75 6.14648V9.85352C2.59575 10.18 1.75 11.2412 1.75 12.5C1.75 14.0188 2.98122 15.25 4.5 15.25C6.01878 15.25 7.25 14.0188 7.25 12.5C7.25 11.2412 6.40425 10.18 5.25 9.85352V6.14648C6.40425 5.82002 7.25 4.75878 7.25 3.5C7.25 1.98122 6.01878 0.75 4.5 0.75ZM3.25 3.5C3.25 2.80964 3.80964 2.25 4.5 2.25C5.19036 2.25 5.75 2.80964 5.75 3.5C5.75 4.19036 5.19036 4.75 4.5 4.75C3.80964 4.75 3.25 4.19036 3.25 3.5ZM3.25 12.5C3.25 11.8096 3.80964 11.25 4.5 11.25C5.19036 11.25 5.75 11.8096 5.75 12.5C5.75 13.1904 5.19036 13.75 4.5 13.75C3.80964 13.75 3.25 13.1904 3.25 12.5Z M12.25 2.25H8V3.75H10.75V9.85352C9.59575 10.18 8.75 11.2412 8.75 12.5C8.75 14.0188 9.98122 15.25 11.5 15.25C13.0188 15.25 14.25 14.0188 14.25 12.5C14.25 11.2412 13.4043 10.18 12.25 9.85352V2.25ZM11.5 11.25C10.8096 11.25 10.25 11.8096 10.25 12.5C10.25 13.1904 10.8096 13.75 11.5 13.75C12.1904 13.75 12.75 13.1904 12.75 12.5C12.75 11.8096 12.1904 11.25 11.5 11.25Z", - "branch": "M5 0.25C3.48122 0.25 2.25 1.48122 2.25 3C2.25 4.25877 3.09575 5.32001 4.25 5.64648V10.3535C3.09575 10.68 2.25 11.7412 2.25 13C2.25 14.5188 3.48122 15.75 5 15.75C6.51878 15.75 7.74999 14.5188 7.74999 13C7.74999 12.0539 7.27224 11.2194 6.54483 10.7246L9.53828 8.32984C9.96171 8.59605 10.4628 8.75002 10.9999 8.75002C12.5187 8.75002 13.7499 7.51881 13.7499 6.00003C13.7499 4.48125 12.5187 3.25003 10.9999 3.25003C9.48115 3.25003 8.24994 4.48125 8.24994 6.00003C8.24994 6.43583 8.35131 6.84796 8.53177 7.21411L5.75 9.43953V5.64648C6.90425 5.32001 7.74999 4.25877 7.74999 3C7.74999 1.48122 6.51878 0.25 5 0.25ZM3.75 3C3.75 2.30964 4.30964 1.75 5 1.75C5.69035 1.75 6.24999 2.30964 6.24999 3C6.24999 3.69035 5.69035 4.24999 5 4.24999C4.30964 4.24999 3.75 3.69035 3.75 3ZM10.9999 4.75003C10.3096 4.75003 9.74994 5.30967 9.74994 6.00003C9.74994 6.69038 10.3096 7.25002 10.9999 7.25002C11.6903 7.25002 12.2499 6.69038 12.2499 6.00003C12.2499 5.30967 11.6903 4.75003 10.9999 4.75003ZM5 11.75C4.30964 11.75 3.75 12.3096 3.75 13C3.75 13.6904 4.30964 14.25 5 14.25C5.69035 14.25 6.24999 13.6904 6.24999 13C6.24999 12.3096 5.69035 11.75 5 11.75Z", + "pr": "M8 2.25V0L2 3L8 6V3.75H10C10.6904 3.75 11.25 4.30964 11.25 5V9.85352C10.0957 10.18 9.25 11.2412 9.25 12.5C9.25 14.0188 10.4812 15.25 12 15.25C13.5188 15.25 14.75 14.0188 14.75 12.5C14.75 11.2412 13.9043 10.18 12.75 9.85352V5C12.75 3.48122 11.5188 2.25 10 2.25H8ZM12 11.25C11.3096 11.25 10.75 11.8096 10.75 12.5C10.75 13.1904 11.3096 13.75 12 13.75C12.6904 13.75 13.25 13.1904 13.25 12.5C13.25 11.8096 12.6904 11.25 12 11.25Z M5.75 6.5L5.75 9.85352C6.90425 10.18 7.75 11.2412 7.75 12.5C7.75 14.0188 6.51878 15.25 5 15.25C3.48122 15.25 2.25 14.0188 2.25 12.5C2.25 11.2412 3.09575 10.18 4.25 9.85352L4.25 6.5H5.75ZM5 11.25C4.30964 11.25 3.75 11.8096 3.75 12.5C3.75 13.1904 4.30964 13.75 5 13.75C5.69036 13.75 6.25 13.1904 6.25 12.5C6.25 11.8096 5.69036 11.25 5 11.25Z", + "branch": "M8.75 3C8.75 1.48122 9.98122 0.25 11.5 0.25C13.0188 0.25 14.25 1.48122 14.25 3C14.25 4.27987 13.3757 5.35553 12.1917 5.66227C11.8789 7.41747 10.3451 8.75 8.5 8.75H7.5C6.47256 8.75 5.60597 9.43866 5.33663 10.3796C6.44632 10.7336 7.24999 11.7729 7.24999 13C7.24999 14.5188 6.01878 15.75 4.5 15.75C2.98122 15.75 1.75 14.5188 1.75 13C1.75 11.7412 2.59575 10.68 3.75 10.3535L3.75 5.64648C2.59575 5.32001 1.75 4.25877 1.75 3C1.75 1.48122 2.98122 0.25 4.5 0.25C6.01878 0.25 7.24999 1.48122 7.24999 3C7.24999 4.25877 6.40425 5.32001 5.25 5.64648V7.99973C5.87675 7.52896 6.6558 7.25 7.5 7.25H8.5C9.52744 7.25 10.394 6.56134 10.6634 5.62042C9.55368 5.26643 8.75 4.22707 8.75 3ZM11.5 1.75C10.8096 1.75 10.25 2.30964 10.25 3C10.25 3.69035 10.8096 4.24999 11.5 4.24999C12.1904 4.24999 12.75 3.69035 12.75 3C12.75 2.30964 12.1904 1.75 11.5 1.75ZM4.5 11.75C3.80964 11.75 3.25 12.3096 3.25 13C3.25 13.6904 3.80964 14.25 4.5 14.25C5.19035 14.25 5.74999 13.6904 5.74999 13C5.74999 12.3096 5.19035 11.75 4.5 11.75ZM3.25 3C3.25 2.30964 3.80964 1.75 4.5 1.75C5.19035 1.75 5.74999 2.30964 5.74999 3C5.74999 3.69035 5.19035 4.24999 4.5 4.24999C3.80964 4.24999 3.25 3.69035 3.25 3Z", "chevron-down": "M8.17677 9.76257C8.07914 9.8602 7.92085 9.8602 7.82322 9.76257L3.53033 5.46967L2.46967 6.53033L6.76256 10.8232C7.44598 11.5066 8.55402 11.5066 9.23743 10.8232L13.5303 6.53033L12.4697 5.46967L8.17677 9.76257Z", "select-chevron": "M7.84999 4.05C7.93888 3.98333 8.0611 3.98333 8.14999 4.05L11.55 6.6L12.45 5.4L9.04999 2.85C8.42777 2.38333 7.57221 2.38333 6.94999 2.85L3.54999 5.4L4.44999 6.6L7.84999 4.05Z M7.84999 11.95C7.93888 12.0167 8.0611 12.0167 8.14999 11.95L11.55 9.4L12.45 10.6L9.04999 13.15C8.42777 13.6167 7.57221 13.6167 6.94999 13.15L3.54999 10.6L4.44999 9.4L7.84999 11.95Z", "copy": "M7 1.25C6.0335 1.25 5.25 2.0335 5.25 3V4.25H3C2.0335 4.25 1.25 5.0335 1.25 6V13C1.25 13.9665 2.0335 14.75 3 14.75H9C9.9665 14.75 10.75 13.9665 10.75 13V11.75H13C13.9665 11.75 14.75 10.9665 14.75 10V3C14.75 2.0335 13.9665 1.25 13 1.25H7ZM10.75 10.25H13C13.1381 10.25 13.25 10.1381 13.25 10V3C13.25 2.86193 13.1381 2.75 13 2.75H7C6.86193 2.75 6.75 2.86193 6.75 3V4.25H9C9.9665 4.25 10.75 5.0335 10.75 6V10.25ZM2.75 6C2.75 5.86193 2.86193 5.75 3 5.75H9C9.13807 5.75 9.25 5.86193 9.25 6V13C9.25 13.1381 9.13807 13.25 9 13.25H3C2.86193 13.25 2.75 13.1381 2.75 13V6Z", @@ -27,7 +27,7 @@ "tick-small": "M6.91418 9.67239C7.01349 9.78274 7.18652 9.78274 7.28583 9.67239L11.9425 4.49828L13.0575 5.50172L8.40077 10.6758C7.7056 11.4483 6.49441 11.4483 5.79924 10.6758L2.94254 7.50172L4.05748 6.49828L6.91418 9.67239Z", "empty": "", "open-link": "M5.5 4.75C5.08579 4.75 4.75 5.08579 4.75 5.5V10.5C4.75 10.9142 5.08579 11.25 5.5 11.25H10.5C10.9142 11.25 11.25 10.9142 11.25 10.5V10H12.75V10.5C12.75 11.7426 11.7426 12.75 10.5 12.75H5.5C4.25736 12.75 3.25 11.7426 3.25 10.5V5.5C3.25 4.25736 4.25736 3.25 5.5 3.25H6V4.75H5.5Z M10.1893 4.75H8V3.25H12.75V8H11.25V5.81066L7.53033 9.53033L6.46967 8.46967L10.1893 4.75Z", - "pr-small": "M7 5C7 5.83934 6.48296 6.55793 5.75 6.85462V9.14538C6.48296 9.44207 7 10.1607 7 11C7 12.1046 6.10457 13 5 13C3.89543 13 3 12.1046 3 11C3 10.1607 3.51704 9.44207 4.25 9.14538V6.85462C3.51704 6.55793 3 5.83934 3 5C3 3.89543 3.89543 3 5 3C6.10457 3 7 3.89543 7 5Z M11.75 4.25H8V5.75H10.25V9.14538C9.51704 9.44207 9 10.1607 9 11C9 12.1046 9.89543 13 11 13C12.1046 13 13 12.1046 13 11C13 10.1607 12.483 9.44207 11.75 9.14538V4.25Z", + "pr-small": "M3 6L8 3V5.25H10C11.5188 5.25 12.75 6.48122 12.75 8V13H11.25V8C11.25 7.30964 10.6904 6.75 10 6.75H8V9L3 6Z M4.25 9L4.25 13H5.75L5.75 9H4.25Z", "chevron-down-small": "M8.17678 8.76256C8.07915 8.86019 7.92086 8.86019 7.82323 8.76256L4.53033 5.46967L3.46967 6.53033L6.76257 9.82322C7.44599 10.5066 8.55402 10.5066 9.23744 9.82322L12.5303 6.53033L11.4697 5.46967L8.17678 8.76256Z", "chevron-up-small": "M7.82323 7.23744C7.92086 7.13981 8.07915 7.13981 8.17678 7.23744L11.4697 10.5303L12.5303 9.46967L9.23744 6.17678C8.55402 5.49336 7.44598 5.49336 6.76257 6.17678L3.46967 9.46967L4.53033 10.5303L7.82323 7.23744Z", "chevron-left-small": "M7.14018 8.27406C7.04255 8.17643 7.04255 8.01814 7.14018 7.92051L10.4331 4.62762L9.37241 3.56696L6.07952 6.85985C5.3961 7.54327 5.3961 8.65131 6.07952 9.33472L9.37241 12.6276L10.4331 11.567L7.14018 8.27406Z", @@ -63,5 +63,10 @@ "vscode": "M10.587 0.48643C10.8501 0.251559 11.2308 0.203518 11.544 0.365687L15.2909 2.30603C15.5729 2.45208 15.75 2.7432 15.75 3.06082V12.9392C15.75 13.2568 15.5729 13.5479 15.2909 13.694L11.544 15.6343C11.2308 15.7965 10.8501 15.7484 10.587 15.5136L5.51792 10.9877L2.37075 13.5777L0.00970483 10.4296L2.43933 8L0.00970459 5.57037L2.37075 2.42232L5.51792 5.01231L10.587 0.48643ZM11.2519 1.90364L5.55769 6.98768L2.62923 4.57768L1.99027 5.42962L4.56065 8L1.99027 10.5704L2.62923 11.4223L5.55769 9.01232L11.2519 14.0964L14.25 12.5438V3.4562L11.2519 1.90364ZM10.3879 6.62148L8.7656 8L10.3879 9.37852V6.62148ZM10.4875 4.56846C11.0396 4.09933 11.8879 4.49171 11.8879 5.2162V10.7838C11.8879 11.5083 11.0396 11.9007 10.4875 11.4315L6.44909 8L10.4875 4.56846Z", "video": "M6.20374 4.26334C5.30612 3.81454 4.25 4.46725 4.25 5.47082V10.5292C4.25 11.5327 5.30612 12.1855 6.20374 11.7367L11.2621 9.20748C12.2571 8.70997 12.2571 7.29003 11.2621 6.79252L6.20374 4.26334ZM10.3229 8L5.75 10.2865V5.71353L10.3229 8Z M0 5C0 2.23858 2.23858 0 5 0H11C13.7614 0 16 2.23858 16 5V11C16 13.7614 13.7614 16 11 16H5C2.23858 16 0 13.7614 0 11V5ZM5 1.5H11C12.933 1.5 14.5 3.067 14.5 5V11C14.5 12.933 12.933 14.5 11 14.5H5C3.067 14.5 1.5 12.933 1.5 11V5C1.5 3.067 3.067 1.5 5 1.5Z", "draggable-narrow": "M5 4C5 3.44772 5.44772 3 6 3C6.55228 3 7 3.44772 7 4C7 4.55228 6.55228 5 6 5C5.44772 5 5 4.55228 5 4Z M9 4C9 3.44772 9.44772 3 10 3C10.5523 3 11 3.44772 11 4C11 4.55228 10.5523 5 10 5C9.44772 5 9 4.55228 9 4Z M5 8C5 7.44772 5.44772 7 6 7C6.55228 7 7 7.44772 7 8C7 8.55228 6.55228 9 6 9C5.44772 9 5 8.55228 5 8Z M9 8C9 7.44772 9.44772 7 10 7C10.5523 7 11 7.44772 11 8C11 8.55228 10.5523 9 10 9C9.44772 9 9 8.55228 9 8Z M5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12Z M9 12C9 11.4477 9.44772 11 10 11C10.5523 11 11 11.4477 11 12C11 12.5523 10.5523 13 10 13C9.44772 13 9 12.5523 9 12Z", - "repo-book": "M5.53149 3.58565L7.55804 5.20689L6.3292 7.66459L7.67084 8.33541L8.74735 6.18239L11.0199 8.07617L11.9802 6.92383L8.97439 4.41903L6.46854 2.41435L5.53149 3.58565Z M7 12H3V13C3 13.5523 3.44772 14 4 14H6C6.55228 14 7 13.5523 7 13V12Z M0 11.17C0 11.7039 0 12.1544 0.0103077 12.5413C0.00347971 12.6266 0 12.7129 0 12.8C0 13.0455 0.0276545 13.2846 0.0800187 13.5143C0.129319 13.8575 0.208995 14.135 0.33776 14.3829C0.622386 14.9309 1.06915 15.3776 1.61708 15.6622C1.86496 15.791 2.1425 15.8707 2.48571 15.92C2.71539 15.9723 2.95446 16 3.2 16L16 16V0H4.83C3.12153 0 2.26729 0 1.61708 0.33776C1.06915 0.622386 0.622386 1.06915 0.33776 1.61708C0 2.26729 0 3.12153 0 4.83V11.17ZM14.5 1.5H4.83C3.98356 1.5 3.42577 1.50112 3 1.53318V9.60615C3.06614 9.60207 3.13283 9.6 3.2 9.6H14.5V1.5ZM1.53707 13.0492C1.54276 13.1176 1.5491 13.179 1.5559 13.234C1.71126 13.8241 2.17589 14.2887 2.76599 14.4441C2.82102 14.4509 2.88235 14.4572 2.95083 14.4629C3.37618 14.4982 3.93335 14.5 4.7901 14.5L14.5 14.5V11.1H3.2C2.33098 11.1 1.61426 11.7521 1.5124 12.5936C1.51787 12.7627 1.52574 12.9127 1.53707 13.0492Z" + "repo-book": "M5.53149 3.58565L7.55804 5.20689L6.3292 7.66459L7.67084 8.33541L8.74735 6.18239L11.0199 8.07617L11.9802 6.92383L8.97439 4.41903L6.46854 2.41435L5.53149 3.58565Z M7 12H3V13C3 13.5523 3.44772 14 4 14H6C6.55228 14 7 13.5523 7 13V12Z M0 11.17C0 11.7039 0 12.1544 0.0103077 12.5413C0.00347971 12.6266 0 12.7129 0 12.8C0 13.0455 0.0276545 13.2846 0.0800187 13.5143C0.129319 13.8575 0.208995 14.135 0.33776 14.3829C0.622386 14.9309 1.06915 15.3776 1.61708 15.6622C1.86496 15.791 2.1425 15.8707 2.48571 15.92C2.71539 15.9723 2.95446 16 3.2 16L16 16V0H4.83C3.12153 0 2.26729 0 1.61708 0.33776C1.06915 0.622386 0.622386 1.06915 0.33776 1.61708C0 2.26729 0 3.12153 0 4.83V11.17ZM14.5 1.5H4.83C3.98356 1.5 3.42577 1.50112 3 1.53318V9.60615C3.06614 9.60207 3.13283 9.6 3.2 9.6H14.5V1.5ZM1.53707 13.0492C1.54276 13.1176 1.5491 13.179 1.5559 13.234C1.71126 13.8241 2.17589 14.2887 2.76599 14.4441C2.82102 14.4509 2.88235 14.4572 2.95083 14.4629C3.37618 14.4982 3.93335 14.5 4.7901 14.5L14.5 14.5V11.1H3.2C2.33098 11.1 1.61426 11.7521 1.5124 12.5936C1.51787 12.7627 1.52574 12.9127 1.53707 13.0492Z", + "remote-branch-small": "M5.75 7.99973V4H4.25V12H5.75V10.9988C5.75065 9.75671 6.75776 8.75 8 8.75C10.0711 8.75 11.75 7.07107 11.75 5V4H10.25V5C10.25 6.24264 9.24264 7.25 8 7.25C7.1558 7.25 6.37675 7.52896 5.75 7.99973Z", + "virtual-branch-small": "M5.75 4V7H4.25V4H5.75Z M11.75 4V5C11.75 7.07107 10.0711 8.75 8 8.75C6.75736 8.75 5.75 9.75736 5.75 11V12H4.25V11C4.25 8.92893 5.92893 7.25 8 7.25C9.24264 7.25 10.25 6.24264 10.25 5V4H11.75Z", + "removed-branch-small": "M3.38588 10.6431L8.00002 7.87463L12.6142 10.6431L13.3859 9.35687L9.45775 6.99999L13.3859 4.64311L12.6141 3.35687L8.00002 6.12534L3.38589 3.35687L2.61415 4.64311L6.54228 6.99999L2.61414 9.35687L3.38588 10.6431Z M8.75002 13V9.99999H7.25002V13H8.75002Z", + "target": "M5.24988 7.99805C5.24988 6.47926 6.48109 5.24805 7.99988 5.24805C9.51866 5.24805 10.7499 6.47926 10.7499 7.99805C10.7499 9.51683 9.51866 10.748 7.99988 10.748C6.48109 10.748 5.24988 9.51683 5.24988 7.99805ZM7.99988 6.74805C7.30952 6.74805 6.74988 7.30769 6.74988 7.99805C6.74988 8.6884 7.30952 9.24805 7.99988 9.24805C8.69023 9.24805 9.24988 8.6884 9.24988 7.99805C9.24988 7.30769 8.69023 6.74805 7.99988 6.74805Z M2.25 8C2.25 4.82436 4.82436 2.25 8 2.25C11.1756 2.25 13.75 4.82436 13.75 8C13.75 11.1756 11.1756 13.75 8 13.75C4.82436 13.75 2.25 11.1756 2.25 8ZM8 3.75C5.65279 3.75 3.75 5.65279 3.75 8C3.75 10.3472 5.65279 12.25 8 12.25C10.3472 12.25 12.25 10.3472 12.25 8C12.25 5.65279 10.3472 3.75 8 3.75Z", + "pin": "M4.65842 2.07243L1.94734 4.78351C1.1397 5.59115 1.1397 6.9006 1.94735 7.70824C2.47262 8.23351 3.22365 8.4253 3.91415 8.25174L4.95432 9.82158C4.42239 10.6621 4.53518 11.7726 5.25174 12.4892C6.09106 13.3285 7.45187 13.3285 8.29119 12.4892L9.79734 10.983L13.3089 14.4946L14.3696 13.4339L10.858 9.92235L12.3641 8.41628C13.2034 7.57697 13.2034 6.21616 12.3641 5.37685C11.6475 4.66024 10.5369 4.54748 9.69633 5.07953L8.12657 4.03941C8.30021 3.34887 8.10844 2.59775 7.58312 2.07243C6.77549 1.2648 5.46605 1.2648 4.65842 2.07243ZM3.00801 5.84417L5.71908 3.13309C5.94093 2.91124 6.30061 2.91124 6.52246 3.13309C6.71029 3.32092 6.74288 3.61383 6.60094 3.83835L6.16002 4.53577L9.75834 6.92001L10.4452 6.38456C10.7036 6.18309 11.0717 6.2058 11.3034 6.43751C11.5569 6.69104 11.5569 7.10209 11.3034 7.35562L7.23053 11.4285C6.97699 11.682 6.56594 11.682 6.3124 11.4285C6.08069 11.1968 6.05798 10.8287 6.25944 10.5703L7.98437 8.59718L6.95997 7.54196L5.94244 8.59718L5.18683 7.45682L5.95283 6.73243L4.92218 5.64258L3.90389 6.60557L3.71328 6.72606C3.48875 6.86801 3.19584 6.83541 3.00801 6.64758C2.78615 6.42572 2.78615 6.06602 3.00801 5.84417Z" } diff --git a/gitbutler-ui/src/routes/[projectId]/components/Tag.svelte b/gitbutler-ui/src/routes/[projectId]/components/Tag.svelte index 0113df600..3bf471b89 100644 --- a/gitbutler-ui/src/routes/[projectId]/components/Tag.svelte +++ b/gitbutler-ui/src/routes/[projectId]/components/Tag.svelte @@ -7,9 +7,10 @@ import type iconsJson from '$lib/icons/icons.json'; export let icon: keyof typeof iconsJson | undefined = undefined; - export let color: TagColor; + export let color: TagColor = 'neutral-light'; export let border = false; export let filled = false; + export let disabled = false; export let clickable = false; @@ -22,6 +23,7 @@ class:ghost={color == 'ghost'} class:tag-border={border} class:filled + class:disabled class:not-button={!clickable} on:click role={clickable ? 'button' : undefined} @@ -144,4 +146,10 @@ .not-button { pointer-events: none; } + + .disabled { + pointer-events: none; + background-color: color-mix(in srgb, var(--clr-theme-scale-ntrl-50) 10%, transparent); + color: var(--clr-core-ntrl-50); + }