-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
アプリのUIサイズを変更するショートカットの追加 #2380
アプリのUIサイズを変更するショートカットの追加 #2380
Changes from 3 commits
6b39e27
688cdac
75b5aed
9879908
3ca623a
e43daf7
e7100d5
d809f22
6726759
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -114,6 +114,31 @@ export const useMenuBarData = () => { | |
const [showSingCharacterPortrait, setShowSingCharacterPortrait] = | ||
useRootMiscSetting(store, "showSingCharacterPortrait"); | ||
const viewSubMenuData = computed<MenuItemData[]>(() => [ | ||
{ | ||
type: "button", | ||
label: "拡大", | ||
onClick: () => { | ||
void window.backend.zoomIn(); | ||
}, | ||
disableWhenUiLocked: false, | ||
}, | ||
{ | ||
type: "button", | ||
label: "縮小", | ||
onClick: () => { | ||
void window.backend.zoomOut(); | ||
}, | ||
disableWhenUiLocked: true, | ||
}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sing/talkで統一のメニューは統一して書くこともできるので、その形に変えさせていただきます! |
||
{ | ||
type: "button", | ||
label: "拡大率のリセット", | ||
onClick: () => { | ||
void window.backend.zoomReset(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. あ、あとwindow.backendを.vueとかから直接呼ぶのは避ける方針にしているのでそれも反映させていただきます! |
||
}, | ||
disableWhenUiLocked: true, | ||
}, | ||
{ type: "separator" }, | ||
{ | ||
type: "button", | ||
label: showSingCharacterPortrait.value | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,6 +116,18 @@ export const defaultHotkeySettings: HotkeySettingType[] = [ | |
action: "やり直す", | ||
combination: HotkeyCombination(!isMac ? "Ctrl Y" : "Shift Meta Z"), | ||
}, | ||
{ | ||
action: "拡大", | ||
combination: HotkeyCombination(!isMac ? "Ctrl +" : "Meta +"), | ||
}, | ||
{ | ||
action: "縮小", | ||
combination: HotkeyCombination(!isMac ? "Ctrl -" : "Meta -"), | ||
}, | ||
{ | ||
action: "拡大率のリセット", | ||
combination: HotkeyCombination(!isMac ? "Ctrl Alt 0" : "Meta Alt 0"), | ||
}, | ||
{ | ||
action: "新規プロジェクト", | ||
combination: HotkeyCombination(!isMac ? "Ctrl N" : "Meta N"), | ||
|
@@ -238,6 +250,9 @@ export interface Sandbox { | |
closeWindow(): void; | ||
minimizeWindow(): void; | ||
maximizeWindow(): void; | ||
zoomIn(): void; | ||
zoomOut(): void; | ||
zoomReset(): void; | ||
logError(...params: unknown[]): void; | ||
logWarn(...params: unknown[]): void; | ||
logInfo(...params: unknown[]): void; | ||
|
@@ -433,6 +448,9 @@ export const hotkeyActionNameSchema = z.enum([ | |
"テキスト欄にフォーカスを戻す", | ||
"元に戻す", | ||
"やり直す", | ||
"拡大", | ||
"縮小", | ||
"拡大率のリセット", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ちょっと後ろの方にさせていただきます! |
||
"新規プロジェクト", | ||
"プロジェクトを名前を付けて保存", | ||
"プロジェクトを上書き保存", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ちょっとコメントの形を変えさせていただいて、コメントの中身を統一させていただきます!