MCPcopy Create free account
hub / github.com/error311/FileRise / themeToggleButton

Function themeToggleButton

public/js/dragAndDrop.js:70–77  ·  view source on GitHub ↗
(btn)

Source from the content-addressed store, hash-verified

68}
69
70function themeToggleButton(btn) {
71 if (!btn) return;
72 const dark = document.body.classList.contains('dark-mode');
73 btn.style.background = dark ? '#2c2c2c' : '#fff';
74 btn.style.border = dark ? '1px solid #555' : '1px solid #ccc';
75 btn.style.boxShadow = dark ? '0 2px 6px rgba(0,0,0,.35)' : '0 2px 6px rgba(0,0,0,.15)';
76 btn.style.color = dark ? '#e0e0e0' : '#222';
77}
78
79function animateVerticalSlide(card) {
80 card.style.transform = 'translateY(30px)';

Callers 3

ensureZonesToggleFunction · 0.85
updateZonesToggleUIFunction · 0.85
dragAndDrop.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected