Skip to content

Commit

Permalink
fix: update primary color to improve UI consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
elikoga committed Dec 2, 2024
1 parent bbbbcb5 commit 57c4f63
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/Tabbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<Tabs
contentClass="mb-4"
defaultClass="flex flex-wrap gap-x-2"
activeClasses="inline-block text-sm font-medium text-center rounded-t-lg disabled:cursor-not-allowed p-2 text-primary-600 bg-gray-100 dark:bg-gray-800 dark:text-primary-500"
activeClasses="inline-block text-sm font-medium text-center rounded-t-lg disabled:cursor-not-allowed p-2 text-primary-600 bg-gray-100 dark:bg-gray-800 dark:text-primary-400"
inactiveClasses="inline-block text-sm font-medium text-center rounded-t-lg disabled:cursor-not-allowed p-2 hover:bg-gray-100 dark:hover:bg-gray-800"
>
{#each dynamicNavItems as item}
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/lib/config/ModuleCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
{#if sameOrigin(settings, other[0])}
{@const otherDefinitions = other.filter((o) => !sameOrigin(settings, o))}
<button class="btn p-0 ml-2 sm:ml-0" on:click={() => {}}>
<Route class="text-primary-500" />
<Route class="text-primary-400" />
</button>
<Tooltip type="auto" class="z-50">
<P size="sm" class="whitespace-pre-line">{$t('config.passed')}</P>
Expand All @@ -108,7 +108,7 @@
(o) => !sameOrigin(o, settings) && !sameOrigin(o, other[0])
)}
<button class="btn p-0 ml-2 sm:ml-0" on:click={() => {}}>
<RouteOff class="text-primary-500" />
<RouteOff class="text-primary-400" />
</button>
<Tooltip type="auto" class="z-50">
<P size="sm" class="whitespace-pre-line">{@html $t('config.notPassed')}</P>
Expand All @@ -128,15 +128,15 @@
{/if}
{:else if self !== undefined}
<button class="btn p-0 ml-2 sm:ml-0" on:click={() => {}}>
<Route class="text-primary-500" />
<Route class="text-primary-400" />
</button>
<Tooltip type="auto" class="z-50">
<P size="sm" class="whitespace-pre-line">{@html $t('config.passed')}</P>
<P size="sm" class="whitespace-pre-line mt-2">{$t('config.noOtherDefinitions')}</P>
</Tooltip>
{:else}
<button class="btn p-0 ml-2 sm:ml-0" on:click={() => {}}>
<RouteOff class="text-primary-500" />
<RouteOff class="text-primary-400" />
</button>
<Tooltip type="auto" class="z-50">
<P size="sm" class="whitespace-pre-line">{@html $t('config.notSet')}</P>
Expand Down
8 changes: 4 additions & 4 deletions frontend/src/lib/sidebar/GlobalNavSelect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@
<Button class="w-full flex gap-2 justify-start p-3 " color="alternative">
{#if $globalNavSelectedTag}
<TagIcon size={20} class="min-w-[20px]" />
<span class="text-base text-primary-500 truncate" title={$globalNavSelectedTag?.displayName}>
<span class="text-base text-primary-400 truncate" title={$globalNavSelectedTag?.displayName}>
{$globalNavSelectedTag?.displayName}
</span>
{:else if $globalNavSelectedDevice}
<HardDrive size={20} class="min-w-[20px]" />
<span class="text-base text-primary-500 truncate" title={$globalNavSelectedDevice?.displayName}>
<span class="text-base text-primary-400 truncate" title={$globalNavSelectedDevice?.displayName}>
{$globalNavSelectedDevice?.displayName}
</span>
{:else}
Expand Down Expand Up @@ -67,7 +67,7 @@
{#if isSearched(search, tag.displayName)}
<DropdownItem
href={`${subpage}?${buildGlobalNavSearchParam($page.url.search, 'tag', tag.identifier)}`}
class={`flex gap-2 my-1 p-1 hover:bg-primary-500 items-center rounded ${active ? 'text-primary-500' : ''}`}
class={`flex gap-2 my-1 p-1 hover:bg-primary-500 items-center rounded ${active ? 'text-primary-400' : ''}`}
on:click={() => (open = false)}
>
<TagIcon size={22} class="shrink-0" />
Expand All @@ -90,7 +90,7 @@
{#if isSearched(search, device.displayName)}
<DropdownItem
href={`${subpage}?${buildGlobalNavSearchParam($page.url.search, 'device', device.identifier)}`}
class={`flex gap-2 my-1 p-1 hover:bg-primary-500 items-center rounded ${active ? 'text-primary-500' : ''}`}
class={`flex gap-2 my-1 p-1 hover:bg-primary-500 items-center rounded ${active ? 'text-primary-400' : ''}`}
on:click={() => (open = false)}
>
<HardDrive size={22} class="shrink-0" />
Expand Down

0 comments on commit 57c4f63

Please sign in to comment.