feat: cube transparency toggle
All checks were successful
Deploy to Production / deploy (push) Successful in 6s

This commit is contained in:
2026-02-22 20:48:29 +00:00
parent a75c148a5b
commit 4aea776207
3 changed files with 34 additions and 4 deletions

View File

@@ -1,9 +1,9 @@
<script setup>
import { Sun, Moon, Layers } from 'lucide-vue-next';
import { Sun, Moon, Layers, Grid2x2 } from 'lucide-vue-next';
import { ref, onMounted } from 'vue';
import { useSettings } from '../composables/useSettings';
const { showProjections, toggleProjections } = useSettings();
const { showProjections, toggleProjections, isCubeTranslucent, toggleCubeTranslucent } = useSettings();
const isDark = ref(true);
const setTheme = (dark) => {
@@ -39,6 +39,16 @@ onMounted(() => {
<Layers :size="20" />
</button>
<!-- Cube Opacity Toggle -->
<button
class="btn-neon nav-btn icon-only"
@click="toggleCubeTranslucent"
:title="isCubeTranslucent ? 'Wyłącz przezroczystość kostki' : 'Włącz przezroczystość kostki'"
:class="{ active: isCubeTranslucent }"
>
<Grid2x2 :size="20" />
</button>
<!-- Theme Toggle -->
<button class="btn-neon nav-btn icon-only" @click="toggleTheme" :title="isDark ? 'Przełącz na jasny' : 'Przełącz na ciemny'">
<Sun v-if="isDark" :size="20" />