diff --git a/.gitignore b/.gitignore index aa282bd..486146d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ .aider* output/* -# Created by https://www.toptal.com/developers/gitignore/api/Vim,macOS,Python,venv -# Edit at https://www.toptal.com/developers/gitignore?templates=Vim,macOS,Python,venv + +cheatsheets/* +!cheatsheets/example.yaml ### macOS ### # General diff --git a/assets/icons/KoalaKeys.png b/assets/icons/KoalaKeys.png index 4a14aa3..a29665c 100644 Binary files a/assets/icons/KoalaKeys.png and b/assets/icons/KoalaKeys.png differ diff --git a/assets/icons/KoalaKeys_Large.png b/assets/icons/KoalaKeys_Large.png deleted file mode 100644 index 31664bb..0000000 Binary files a/assets/icons/KoalaKeys_Large.png and /dev/null differ diff --git a/cheatsheets/example.yaml b/cheatsheets/example.yaml index 12fdf67..6541bb8 100644 --- a/cheatsheets/example.yaml +++ b/cheatsheets/example.yaml @@ -1,12 +1,15 @@ -title: Example +title: "Default macOS Keyboard Shortcuts" +layout: + keyboard: US + system: Darwin shortcuts: - File Operations: - "Cmd+C": - description: "Copy" - "Cmd+V": - description: "Paste" - "Cmd+S": - description: "Save" - Window Management: - "CMD+H": - description: "Hide Current Window" + General: + "CMD+C": + description: "Copy selected item" + "CMD+X": + description: "Cut selected item" + File and App Management: + "CMD+N": + description: "Open new window or document" + "CMD+O": + description: "Open selected item or display dialog to choose file to open" diff --git a/src/cheatsheet_template.html b/src/cheatsheet_template.html index dbb0f65..c742d19 100644 --- a/src/cheatsheet_template.html +++ b/src/cheatsheet_template.html @@ -347,34 +347,6 @@ height: 25px; font-size: 14px; } - #dark-mode-toggle { - position: fixed; - top: 20px; - right: 20px; - padding: 10px 15px; - background-color: var(--latte-lavender); - color: var(--latte-base); - border: none; - border-radius: 8px; - cursor: pointer; - transition: - background-color 0.3s, - transform 0.2s; - font-weight: 600; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); - } - #dark-mode-toggle:hover { - background-color: var(--latte-sapphire); - transform: translateY(-2px); - } - body.dark-mode #dark-mode-toggle { - background-color: var(--mocha-peach); - color: var(--mocha-base); - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); - } - body.dark-mode #dark-mode-toggle:hover { - background-color: var(--mocha-maroon); - } .wide { width: 65px; } @@ -485,7 +457,7 @@ transform: translateX(-50%); } - #theme-toggle { + #dark-mode-toggle { flex: 0 0 auto; position: relative; z-index: 1002; @@ -497,7 +469,7 @@ transition: color 0.3s; } - body.dark-mode #theme-toggle { + body.dark-mode #dark-mode-toggle { color: var(--mocha-text); } @@ -627,8 +599,8 @@

{{ title }}

/> +
+ +

Cheatsheet Index

+ +
@@ -354,8 +459,12 @@

Cheatsheet Index

const nextPageButton = document.getElementById('next-page'); const body = document.body; + const themeIcon = document.getElementById("theme-icon"); + function updateDarkModeToggle() { - darkModeToggle.textContent = body.classList.contains('dark-mode') ? 'Toggle Light Mode' : 'Toggle Dark Mode'; + themeIcon.textContent = body.classList.contains("dark-mode") + ? "☀️" + : "🌙"; } darkModeToggle.addEventListener('click', () => { @@ -460,4 +569,29 @@

Cheatsheet Index

updateCheatsheets(); +