diff --git a/.editorconfig b/.editorconfig index 3dce414..7d97d2b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -6,4 +6,7 @@ indent_style = space indent_size = 2 end_of_line = lf insert_final_newline = true -trim_trailing_whitespace = true \ No newline at end of file +trim_trailing_whitespace = true + +[*.py] +indent_size = 4 diff --git a/python-subprocess/main-gummy.py b/python-subprocess/main-gummy.py index a169a34..5b3903e 100644 --- a/python-subprocess/main-gummy.py +++ b/python-subprocess/main-gummy.py @@ -12,7 +12,7 @@ import sys import argparse def convert_audio_to_text(s_lang, t_lang, audio_type): - sys.stdout.reconfigure(line_buffering=True) + sys.stdout.reconfigure(line_buffering=True) # type: ignore stream = AudioStream(audio_type) stream.openStream() @@ -45,4 +45,3 @@ if __name__ == "__main__": args.target_language, 0 if args.audio_type == '0' else 1 ) - \ No newline at end of file diff --git a/src/main/types/index.ts b/src/main/types/index.ts index 0a2af4c..571145d 100644 --- a/src/main/types/index.ts +++ b/src/main/types/index.ts @@ -15,6 +15,7 @@ export interface Controls { } export interface Styles { + lineBreak: number, fontFamily: string, fontSize: number, fontColor: string, diff --git a/src/main/utils/AllConfig.ts b/src/main/utils/AllConfig.ts index 23e8382..5decb3e 100644 --- a/src/main/utils/AllConfig.ts +++ b/src/main/utils/AllConfig.ts @@ -7,6 +7,7 @@ import * as path from 'path' import * as fs from 'fs' const defaultStyles: Styles = { + lineBreak: 1, fontFamily: 'sans-serif', fontSize: 24, fontColor: '#000000', diff --git a/src/renderer/src/App.vue b/src/renderer/src/App.vue index 5f42c6d..3189e9e 100644 --- a/src/renderer/src/App.vue +++ b/src/renderer/src/App.vue @@ -4,17 +4,13 @@