mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-08-27 14:49:23 +00:00
Merge branch 'V2' into UIUX/V2/StylingSnags
This commit is contained in:
commit
5d00425690
@ -2127,7 +2127,7 @@
|
|||||||
"selectedCount": "{{count}} selected",
|
"selectedCount": "{{count}} selected",
|
||||||
"download": "Download",
|
"download": "Download",
|
||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"unsupported":"Unsupported"
|
"unsupported": "Unsupported"
|
||||||
},
|
},
|
||||||
"storage": {
|
"storage": {
|
||||||
"temporaryNotice": "Files are stored temporarily in your browser and may be cleared automatically",
|
"temporaryNotice": "Files are stored temporarily in your browser and may be cleared automatically",
|
||||||
@ -2361,7 +2361,6 @@
|
|||||||
"save": "Save Configuration"
|
"save": "Save Configuration"
|
||||||
},
|
},
|
||||||
"copyToSaved": "Copy to Saved"
|
"copyToSaved": "Copy to Saved"
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"automation": {
|
"automation": {
|
||||||
"suggested": {
|
"suggested": {
|
||||||
|
@ -11,6 +11,8 @@ interface RainbowThemeHook {
|
|||||||
deactivateRainbow: () => void;
|
deactivateRainbow: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const allowRainbowMode = false; // Override to allow/disallow fun
|
||||||
|
|
||||||
export function useRainbowTheme(initialTheme: 'light' | 'dark' = 'light'): RainbowThemeHook {
|
export function useRainbowTheme(initialTheme: 'light' | 'dark' = 'light'): RainbowThemeHook {
|
||||||
// Get theme from localStorage or use initial
|
// Get theme from localStorage or use initial
|
||||||
const [themeMode, setThemeMode] = useState<ThemeMode>(() => {
|
const [themeMode, setThemeMode] = useState<ThemeMode>(() => {
|
||||||
@ -162,7 +164,7 @@ export function useRainbowTheme(initialTheme: 'light' | 'dark' = 'light'): Rainb
|
|||||||
lastToggleTime.current = currentTime;
|
lastToggleTime.current = currentTime;
|
||||||
|
|
||||||
// Easter egg: Activate rainbow mode after 10 rapid toggles
|
// Easter egg: Activate rainbow mode after 10 rapid toggles
|
||||||
if (toggleCount.current >= 10) {
|
if (allowRainbowMode && toggleCount.current >= 10) {
|
||||||
setThemeMode('rainbow');
|
setThemeMode('rainbow');
|
||||||
console.log('🌈 RAINBOW MODE ACTIVATED! 🌈 You found the secret easter egg!');
|
console.log('🌈 RAINBOW MODE ACTIVATED! 🌈 You found the secret easter egg!');
|
||||||
console.log('🌈 Button will be disabled for 3 seconds, then click once to exit!');
|
console.log('🌈 Button will be disabled for 3 seconds, then click once to exit!');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user