Skip to content

Commit 3667f32

Browse files
committed
fix(theme): preserve primary color in dark mode
1 parent 4e7a6df commit 3667f32

7 files changed

Lines changed: 14 additions & 14 deletions

File tree

src/components/dynamic/TxsElement.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const chain = useBlockchain();
4747
<td>{{ item.injected }}</td>
4848
<td>
4949
<span v-if="item.injected === 'Injected'">{{ item.hash }}</span>
50-
<RouterLink v-else :to="`/${chain.chainName}/tx/${item.hash}`" class="text-primary dark:invert">{{
50+
<RouterLink v-else :to="`/${chain.chainName}/tx/${item.hash}`" class="text-primary">{{
5151
item.hash
5252
}}</RouterLink>
5353
</td>

src/modules/[chain]/account/[address].vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ function mapAmount(events: { type: string; attributes: { key: string; value: str
185185
{{ format.calculatePercent(format.tokenAmountNumber(balanceItem), totalAmount) }}
186186
</div>
187187
</div>
188-
<div class="text-xs truncate relative py-1 px-3 rounded-full w-fit text-primary dark:invert mr-2">
188+
<div class="text-xs truncate relative py-1 px-3 rounded-full w-fit text-primary mr-2">
189189
<span class="inset-x-0 inset-y-0 opacity-10 absolute bg-primary dark:invert text-sm"></span>
190190
${{ format.tokenValue(balanceItem) }}
191191
</div>
@@ -204,7 +204,7 @@ function mapAmount(events: { type: string; attributes: { key: string; value: str
204204
{{ format.calculatePercent(format.tokenAmountNumber(delegationItem?.balance), totalAmount) }}
205205
</div>
206206
</div>
207-
<div class="text-xs truncate relative py-1 px-3 rounded-full w-fit text-primary dark:invert mr-2">
207+
<div class="text-xs truncate relative py-1 px-3 rounded-full w-fit text-primary mr-2">
208208
<span class="inset-x-0 inset-y-0 opacity-10 absolute bg-primary dark:invert text-sm"></span>
209209
${{ format.tokenValue(delegationItem?.balance) }}
210210
</div>
@@ -223,7 +223,7 @@ function mapAmount(events: { type: string; attributes: { key: string; value: str
223223
{{ format.calculatePercent(format.tokenAmountNumber(rewardItem), totalAmount) }}
224224
</div>
225225
</div>
226-
<div class="text-xs truncate relative py-1 px-3 rounded-full w-fit text-primary dark:invert mr-2">
226+
<div class="text-xs truncate relative py-1 px-3 rounded-full w-fit text-primary mr-2">
227227
<span class="inset-x-0 inset-y-0 opacity-10 absolute bg-primary dark:invert text-sm"></span>${{
228228
format.tokenValue(rewardItem)
229229
}}
@@ -256,7 +256,7 @@ function mapAmount(events: { type: string; attributes: { key: string; value: str
256256
}}
257257
</div>
258258
</div>
259-
<div class="text-xs truncate relative py-1 px-3 rounded-full w-fit text-primary dark:invert mr-2">
259+
<div class="text-xs truncate relative py-1 px-3 rounded-full w-fit text-primary mr-2">
260260
<span class="inset-x-0 inset-y-0 opacity-10 absolute bg-primary dark:invert"></span>
261261
${{
262262
format.tokenValue({
@@ -450,14 +450,14 @@ function mapAmount(events: { type: string; attributes: { key: string; value: str
450450
<td class="text-sm py-3">
451451
<RouterLink
452452
:to="`/${chain}/block/${v.height}`"
453-
class="text-primary dark:invert"
453+
class="text-primary"
454454
>{{ v.height }}</RouterLink
455455
>
456456
</td>
457457
<td class="truncate py-3" style="max-width: 200px">
458458
<RouterLink
459459
:to="`/${chain}/tx/${v.txhash}`"
460-
class="text-primary dark:invert"
460+
class="text-primary"
461461
>
462462
{{ v.txhash }}
463463
</RouterLink>
@@ -502,14 +502,14 @@ function mapAmount(events: { type: string; attributes: { key: string; value: str
502502
<td class="text-sm py-3">
503503
<RouterLink
504504
:to="`/${chain}/block/${v.height}`"
505-
class="text-primary dark:invert"
505+
class="text-primary"
506506
>{{ v.height }}</RouterLink
507507
>
508508
</td>
509509
<td class="truncate py-3" style="max-width: 200px">
510510
<RouterLink
511511
:to="`/${chain}/tx/${v.txhash}`"
512-
class="text-primary dark:invert"
512+
class="text-primary"
513513
>
514514
{{ v.txhash }}
515515
</RouterLink>

src/modules/[chain]/cosmwasm/[code_id]/transactions.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ const tab = ref('detail');
265265
<tr v-for="resp in txs?.tx_responses">
266266
<td>{{ resp.height }}</td>
267267
<td>
268-
<div class="text-xs truncate text-primary dark:invert">
268+
<div class="text-xs truncate text-primary">
269269
<RouterLink :to="`/${chainStore.chainName}/tx/${resp.txhash}`">{{ resp.txhash }} </RouterLink>
270270
</div>
271271
</td>

src/modules/[chain]/cosmwasm/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function gotoHistory() {
7676
<td>
7777
<RouterLink
7878
:to="`/${props.chain}/cosmwasm/${v.code_id}/contracts`"
79-
class="truncate max-w-[200px] block text-primary dark:invert"
79+
class="truncate max-w-[200px] block text-primary"
8080
:title="v.data_hash"
8181
>
8282
{{ v.data_hash }}

src/modules/[chain]/ibc/connection/[connection_id].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ function color(v: string) {
338338
<tr v-for="resp in txs?.tx_responses">
339339
<td>{{ resp.height }}</td>
340340
<td>
341-
<div class="text-xs truncate text-primary dark:invert">
341+
<div class="text-xs truncate text-primary">
342342
<RouterLink
343343
:to="`/${chainStore.chainName}/tx/${resp.txhash}`"
344344
>{{ resp.txhash }}</RouterLink

src/modules/[chain]/staking/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ loadAvatars();
337337
</div>
338338

339339
<div class="flex flex-col">
340-
<span class="text-sm text-primary dark:invert whitespace-nowrap overflow-hidden">
340+
<span class="text-sm text-primary whitespace-nowrap overflow-hidden">
341341
<RouterLink
342342
:to="{
343343
name: 'chain-staking-validator',

src/modules/[chain]/tx/[hash].vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const messages = computed(() => {
5656
<tr>
5757
<td>{{ $t('account.height') }}</td>
5858
<td>
59-
<RouterLink :to="`/${props.chain}/block/${tx.tx_response.height}`" class="text-primary dark:invert"
59+
<RouterLink :to="`/${props.chain}/block/${tx.tx_response.height}`" class="text-primary"
6060
>{{ tx.tx_response.height }}
6161
</RouterLink>
6262
</td>

0 commit comments

Comments
 (0)