Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main/MainMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function enableDisableMainMenu(enable: boolean): electron.Menu | null {
}

const aboutEditorMenuItem: electron.MenuItemConstructorOptions = {
label: 'About the Editor',
label: 'About CellDL Editor',
click: () => {
application.currentWindow?.send('about')
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/components/EditorApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ const activeInstanceUid = vueCommon.activeInstanceUid()

const editorTheme = vue.ref<Theme|undefined>(props.theme)

const darkMode = vue.ref<boolean>(props.theme === 'dark')
const darkMode = vue.ref<boolean>(vueCommon.useTheme().useDarkMode())

function onDarkMode() {
if (darkMode.value) {
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/components/MainMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const menuItems = [
visible: fileOperationsAvailable
},
{
label: 'Save...',
label: 'Save',
shortcut: isWindowsOrLinux ? 'Ctrl+S' : isMacOs ? '⌘S' : undefined,
command: () => {
emit('file-action', 'save')
Expand Down Expand Up @@ -279,7 +279,7 @@ WIP ***/
},
{ separator: true },
{
label: 'About the Editor',
label: 'About CellDL Editor',
command: () => {
emit('about')
}
Expand Down
22 changes: 17 additions & 5 deletions src/renderer/src/components/dialogs/AboutDialog.vue
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
<template lang="pug">
Dialog(
Dialog.w-139(header=" "
v-model:visible="visibleModel"
:modal="true"
appendTo="self"
:dismissableMask="true"
:pt:mask:style="{ position: 'absolute' }"
)
div(class="text-2xl font-bold") CellDL Editor
div.text-xs Copyright (c) 2022 - 2026 David Brooks
div.text Version {{ currentVersion }}
.space-y-7
.text-center
.text-3xl.font-bold CellDL Editor {{ currentVersion }}
.space-y-2
div
| #[a(href="https://github.com/CellDL/CellDLEditor", target="_blank", rel="noopener") CellDL Editor] is an editor that can be used to create #[a(href="https://en.wikipedia.org/wiki/SVG", target="_blank", rel="noopener") SVG]-based #[a(href="https://en.wikipedia.org/wiki/Bond_graph", target="_blank", rel="noopener") bond graph] diagrams and generate #[a(href="https://cellml.org/", target="_blank", rel="noopener") CellML] files from them.
.space-y-0
template(v-slot:footer)
Button(label="OK", autofocus, @click="$emit('close')")
</template>

<script setup lang="ts">
import { currentVersion } from '../../common/version.ts'

defineEmits<(event: 'close') => void>()
const visibleModel = defineModel('visible', { type: Boolean })

function close() {
visibleModel.value = false
}
</script>