diff --git a/.gitignore b/.gitignore index de0bee3aaad76d59e03167b5af625b645241c11c..0e42bc706bbe79e664a17ac2b9db5316615bd073 100644 --- a/.gitignore +++ b/.gitignore @@ -38,3 +38,5 @@ supabase/.temp .output app/components.d.ts + +.data \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index f7a202aaea6768e117caf46565eece76d109c207..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,25 +0,0 @@ -

-Chalk.ist -

- -

Create beautiful images of your source code

- -

-Go to App -

- -[![](./.github/screenshot.png)](https://chalk.ist) - -## Development - -``` -pnpm install -``` - -``` -pnpm run dev -``` - -## License - -MIT - Kasper Mikiewicz 2022 diff --git a/app/components/Canvas.vue b/app/components/Canvas.vue index 632268723d75c4fd3beab9a0c48ccdf27a9cd079..2c5d104425bf06d292bd17c469a407a3e973d54b 100644 --- a/app/components/Canvas.vue +++ b/app/components/Canvas.vue @@ -4,6 +4,7 @@ import { computed, ref, watch } from "vue"; import { store } from "~/lib/store"; import { BlockType } from "~/lib/enums"; import { persistentState } from "~/lib/persistent-state"; +import { isLightTheme } from "~/lib/themes"; const container = ref(); const editorFrame = ref(); @@ -74,6 +75,7 @@ const transform = computed(() => { v-if="block.type === BlockType.Code" :store="store" :mode="block.mode" + :is-light-theme="isLightTheme(store.colorTheme)" > diff --git a/app/components/Menu.vue b/app/components/Menu.vue index 06f9f5b51ee345099cb57825f8bc434c311805ce..10000f7f729f825cc9dc32abaeb4089d66dd4921 100644 --- a/app/components/Menu.vue +++ b/app/components/Menu.vue @@ -50,46 +50,34 @@ function clearLineDecorations() { v-model="currentMenu" class="flex items-center overflow-auto border-b border-b-zinc-800 bg-zinc-900 pwa:sm:border-t pwa:sm:border-t-black pwa:sm:shadow-[inset_0_1px_0_rgb(39_39_42)]" > - - - Chalk - - - - - + + - - - Follow on X - - - - View source on GitHub - - - - Buy me a coffee - - - - - + + + + + + + + + + + + + + + +
- + Decorations @@ -170,7 +158,7 @@ function clearLineDecorations() { v-if="persistentState.lastCopyMethod === 'copy_png'" :tabindex="0" @pointerdown.stop.prevent="copyPngToClipboard" - class="-ml-1 mr-2 flex size-8 items-center justify-center rounded hover:bg-slate-700" + class="-ml-2 mr-2 flex size-8 items-center justify-center rounded hover:bg-slate-700" > @@ -178,7 +166,7 @@ function clearLineDecorations() { v-if="persistentState.lastCopyMethod === 'download_png'" :tabindex="0" @pointerdown.stop.prevent="downloadPNG" - class="-ml-1 mr-2 flex size-8 items-center justify-center rounded hover:bg-slate-700" + class="-ml-2 mr-2 flex size-8 items-center justify-center rounded hover:bg-slate-700" > diff --git a/app/components/shared/SliderAlt.vue b/app/components/shared/SliderAlt.vue index f5c8b4c54b045fc570e8a006344497a47a9e20bc..aa34a63873be9faffabb764faad89f3183cafc98 100644 --- a/app/components/shared/SliderAlt.vue +++ b/app/components/shared/SliderAlt.vue @@ -8,6 +8,7 @@ defineProps<{ min: number; max: number; step: number; + disabled?: boolean; }>(); const emit = defineEmits<{ @@ -28,7 +29,7 @@ if (import.meta.client && !CSS.supports("animation-timeline: scroll()")) {