+ テキスト追加ボタンの表示
+
+
+
+ 右下にテキスト追加ボタンを表示します。
+
+
+
+
+
+
+
@@ -922,6 +944,40 @@ const changeShowTextLineNumber = (showTextLineNumber: boolean) => {
});
};
+// エディタの+ボタン表示設定
+const showAddAudioItemButton = computed(
+ () => store.state.showAddAudioItemButton
+);
+const changeShowAddAudioItemButton = (showAddAudioItemButton: boolean) => {
+ store.dispatch("SET_SHOW_ADD_AUDIO_ITEM_BUTTON", {
+ showAddAudioItemButton,
+ });
+
+ // 設定をオフにする場合はヒントを表示
+ if (!showAddAudioItemButton) {
+ $q.dialog({
+ title: "エディタの+ボタンを非表示にする",
+ message: "テキスト欄は Shift + Enter で追加できます",
+ persistent: true, // ダイアログ外側押下時にユーザが設定ができたと思い込むことを防止する
+ ok: {
+ flat: true,
+ label: "OK",
+ textColor: "display",
+ },
+ cancel: {
+ flat: true,
+ label: "キャンセル",
+ textColor: "display",
+ },
+ }).onCancel(() => {
+ // キャンセルしたら設定を元に戻す
+ store.dispatch("SET_SHOW_ADD_AUDIO_ITEM_BUTTON", {
+ showAddAudioItemButton: true,
+ });
+ });
+ }
+};
+
const currentAudioOutputDeviceComputed = computed<{
key: string;
label: string;
diff --git a/src/store/setting.ts b/src/store/setting.ts
index bc06aa7691..273c5fa1bc 100644
--- a/src/store/setting.ts
+++ b/src/store/setting.ts
@@ -42,6 +42,7 @@ export const settingStoreState: SettingStoreState = {
},
editorFont: "default",
showTextLineNumber: false,
+ showAddAudioItemButton: true,
acceptRetrieveTelemetry: "Unconfirmed",
experimentalSetting: {
enablePreset: false,
@@ -96,6 +97,12 @@ export const settingStore = createPartialStore