|
28 | 28 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
29 | 29 |
|
30 | 30 | (menu-bind full-text-format-menu |
31 | | - (if (qt-gui?) |
32 | | - ;; ImGui 前端精简:移除 Format 的 Font / Color |
33 | | - (group "Font") |
34 | | - (link text-font-menu) |
35 | | - (if (simple-menus?) (-> "Color" (link color-menu))) |
36 | | - ) ;if |
| 31 | + (group "Font") |
| 32 | + (link text-font-menu) |
| 33 | + (if (simple-menus?) (-> "Color" (link color-menu))) |
37 | 34 | (if (detailed-menus?) --- (group "Text") (link text-properties-menu)) |
38 | | - (if (qt-gui?) |
39 | | - ;; ImGui 前端精简:移除 Format 的 Paragraph / Page |
40 | | - --- |
41 | | - (group "Paragraph") |
42 | | - (link paragraph-menu) |
43 | | - --- |
44 | | - (when (in-main-flow?) |
45 | | - (group "Page") |
46 | | - (link page-menu) |
47 | | - ) ;when |
48 | | - ) ;if |
| 35 | + --- |
| 36 | + (group "Paragraph") |
| 37 | + (link paragraph-menu) |
| 38 | + --- |
| 39 | + (when (in-main-flow?) |
| 40 | + (group "Page") |
| 41 | + (link page-menu) |
| 42 | + ) ;when |
49 | 43 | ) ;menu-bind |
50 | 44 |
|
51 | 45 | (menu-bind compressed-text-format-menu |
52 | | - (if (qt-gui?) |
53 | | - ;; ImGui 前端精简:移除 Format 的 Font / Paragraph / Page / Cell / Table |
54 | | - ("Font" (interactive open-font-selector)) |
55 | | - ("Paragraph" (open-paragraph-format)) |
56 | | - (when (in-main-flow?) |
57 | | - ("Page" (open-page-format)) |
58 | | - ) ;when |
59 | | - (when (inside? 'table) |
60 | | - ("Cell" (open-cell-properties)) |
61 | | - ("Table" (open-table-properties)) |
62 | | - ) ;when |
63 | | - --- |
64 | | - ) ;if |
65 | | - ;; (-> "Whitespace" (link space-menu)) |
66 | | - (-> "Indentation" (link indentation-menu)) |
67 | | - (-> "Break" (link break-menu)) |
68 | | - (when (and (selection-active-small?) (tm-atomic? (selection-tree))) |
69 | | - ("Hyphenate as" (interactive hyphenate-selection-as)) |
70 | | - ) ;when |
71 | | - --- |
72 | | - (if (qt-gui?) |
73 | | - ;; ImGui 前端精简:移除 Format 的 Color |
74 | | - (-> "Color" |
75 | | - (if (== (get-preference "experimental alpha") "on") |
76 | | - (-> "Opacity" (link opacity-menu)) |
77 | | - --- |
78 | | - ) ;if |
79 | | - (link color-menu) |
80 | | - ) ;-> |
81 | | - ) ;if |
82 | | - (-> "Adjust" (link adjust-menu)) |
83 | | - (-> "Transform" (link linear-transform-menu)) |
84 | | - (-> "Specific" (link specific-menu)) |
85 | | - (-> "Special" (link format-special-menu)) |
86 | | - (-> "Font effects" (link text-font-effects-menu)) |
87 | | - (assuming (== (get-preference "bitmap effects") "on") |
88 | | - (-> "Graphical effects" (link text-effects-menu)) |
89 | | - ) ;assuming |
| 46 | + ("Font" (interactive open-font-selector)) |
| 47 | + ("Paragraph" (open-paragraph-format)) |
| 48 | + (when (in-main-flow?) |
| 49 | + ("Page" (open-page-format)) |
| 50 | + ) ;when |
| 51 | + (when (inside? 'table) |
| 52 | + ("Cell" (open-cell-properties)) |
| 53 | + ("Table" (open-table-properties)) |
| 54 | + ) ;when |
| 55 | + --- |
| 56 | + ;; (-> "Whitespace" (link space-menu)) |
| 57 | + (-> "Indentation" (link indentation-menu)) |
| 58 | + (-> "Break" (link break-menu)) |
| 59 | + (when (and (selection-active-small?) (tm-atomic? (selection-tree))) |
| 60 | + ("Hyphenate as" (interactive hyphenate-selection-as)) |
| 61 | + ) ;when |
| 62 | + --- |
| 63 | + (if (qt-gui?) |
| 64 | + ;; ImGui 前端精简:移除 Format 的 Color |
| 65 | + (-> "Color" |
| 66 | + (if (== (get-preference "experimental alpha") "on") |
| 67 | + (-> "Opacity" (link opacity-menu)) |
| 68 | + --- |
| 69 | + ) ;if |
| 70 | + (link color-menu) |
| 71 | + ) ;-> |
| 72 | + ) ;if |
| 73 | + (-> "Adjust" (link adjust-menu)) |
| 74 | + (-> "Transform" (link linear-transform-menu)) |
| 75 | + (-> "Specific" (link specific-menu)) |
| 76 | + (-> "Special" (link format-special-menu)) |
| 77 | + (-> "Font effects" (link text-font-effects-menu)) |
| 78 | + (assuming (== (get-preference "bitmap effects") "on") |
| 79 | + (-> "Graphical effects" (link text-effects-menu)) |
| 80 | + ) ;assuming |
90 | 81 | ) ;menu-bind |
91 | 82 |
|
92 | 83 | (menu-bind text-format-menu |
|
0 commit comments