From 28d33ed39f0f694cb2de27548ae208ff3e255088 Mon Sep 17 00:00:00 2001 From: xiaoyifang <105986+xiaoyifang@users.noreply.github.com> Date: Sat, 29 Apr 2023 10:19:26 +0800 Subject: [PATCH] opt: relayout the preference language controls fix #602 --- src/ui/preferences.ui | 308 +++++++++++++++++++++--------------------- 1 file changed, 152 insertions(+), 156 deletions(-) diff --git a/src/ui/preferences.ui b/src/ui/preferences.ui index f3842586..48a35d34 100644 --- a/src/ui/preferences.ui +++ b/src/ui/preferences.ui @@ -53,121 +53,47 @@ 9 - - + + - Normally, clicking on a link, double-clicking on a word or looking up -selection in an article loads the translation and almost immediately -scrolls to the article from the same dictionary. With this option off, -however, the article from the topmost dictionary is shown. + When enabled, an icon appears in the system tray area which can be used +to open main window and perform other tasks. - - Automatically scroll to target article + + Enable system tray icon - + + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + false + + true - - - - - - - - - - Interface language: - - - - - - - Dictionary Font: - - - - - - - QComboBox::AdjustToContents - - - - - - - - 0 - 0 - - - - set the fallback font family for dictionary - - - - - - - - - - - Article Display style: - - - - - - - - - - Add-on style: - - - - - - - - - - - - Turn the UI to dark. - - - Dark Mode - - - - - - - Turn the article display style to dark. - - - Dark Reader Mode - - - - - - - - - Startup + + false - + - + - Automatically starts GoldenDict after operation system bootup. + With this on, the application starts directly to system tray without showing +its main window. - Start with system + Start to system tray + + + + + + + With this on, an attempt to close main window would hide it instead of closing +the application. + + + Close to system tray @@ -185,6 +111,22 @@ With this on however, it will hide the main window. + + + + Normally, clicking on a link, double-clicking on a word or looking up +selection in an article loads the translation and almost immediately +scrolls to the article from the same dictionary. With this option off, +however, the article from the topmost dictionary is shown. + + + Automatically scroll to target article + + + true + + + @@ -234,14 +176,40 @@ With this on however, it will hide the main window. - - + + + + Startup + + + + + + Automatically starts GoldenDict after operation system bootup. + + + Start with system + + + + + + + + - Double-click translates the word clicked + Interface language: - + + + + Dictionary Font: + + + + Qt::Vertical @@ -254,51 +222,65 @@ With this on however, it will hide the main window. - - + + + + + + Turn the UI to dark. + + + Dark Mode + + + + + + + Turn the article display style to dark. + + + Dark Reader Mode + + + + + + + - When enabled, an icon appears in the system tray area which can be used -to open main window and perform other tasks. + Turn this option on if you want to select words by single mouse click - - Enable system tray icon + + Select word by single click - - Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter + + + + + + QComboBox::AdjustToContents - - false + + + + + + + 0 + 0 + - - true + + set the fallback font family for dictionary - - false + + + + + + Double-click translates the word clicked - - - - - With this on, the application starts directly to system tray without showing -its main window. - - - Start to system tray - - - - - - - With this on, an attempt to close main window would hide it instead of closing -the application. - - - Close to system tray - - - - @@ -354,15 +336,29 @@ be the last ones. - - - - Turn this option on if you want to select words by single mouse click - - - Select word by single click - - + + + + + + Article Display style: + + + + + + + + + + Add-on style: + + + + + + +