Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change osnap activated to use snapshot's primary blue color #109

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 2 additions & 18 deletions src/components/SettingsTreasuryActivateOsnapButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@ defineProps<{
}>();

// handling some theming here locally so as not to interfere with the global style.scss file
const activeStyles = computed(() => {
return theme.value === 'light'
? {
div: 'bg-[hsla(122,100%,45%,0.13)] text-[hsla(122,100%,21%,1)]',
span: 'bg-[hsla(122,100%,45%,1)]'
}
: {
div: 'bg-[hsla(122,100%,45%,0.13)] text-[hsla(122,100%,45%,1)]',
span: 'bg-[hsla(122,100%,45%,1)]'
};
});

const inactiveStyles = computed(() => {
return theme.value === 'light'
Expand All @@ -34,14 +23,9 @@ const inactiveStyles = computed(() => {
<template>
<button
v-if="isOsnapEnabled"
:class="[
'flex items-center gap-2 rounded-full px-3 py-2',
activeStyles.div
]"
class="flex items-center gap-2 rounded-full px-3 py-2 bg-primary text-white"
>
<span
:class="['block h-[6px] w-[6px] rounded-full', activeStyles.span]"
/>oSnap activated
<span class="block h-[6px] w-[6px] rounded-full bg-green" />oSnap activated
</button>
<button
v-else
Expand Down