-
Notifications
You must be signed in to change notification settings - Fork 581
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
feat(tsf): hide IME mode icon #1515
base: master
Are you sure you want to change the base?
Conversation
@@ -186,6 +186,16 @@ static int Run(LPTSTR lpCmdLine) { | |||
return SetRegKeyValue(HKEY_CURRENT_USER, L"Software\\Rime\\weasel", | |||
L"ToggleImeOnOpenClose", L"no", REG_SZ); | |||
} | |||
|
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.
/toggleime
, /toggleascii
, /hidemodeicon
, /showmodeicon
這些是否方便寫在配置文件 weasel.yaml
裏?
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.
我也是看之前有这样的先例,想着小众需求就也这样做吧,之前已经跟 @fxliang 交流过了。怎么说,要改么?
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.
不知道這個地方讀寫配置方不方便。我擔心註冊表開關越加越多,不統一了。
暂时没空处理这个pr,ipc部分还挺复杂的,一时半会不好解决。 如果谁有需要,可以使用我之前做的修改补丁,dUP2 制作的,包含源码。 |
原來是這樣。 那我接受不常用的前端功能暫時不受 YAML 配置控制。 我記得後端向前端傳了 UI style 的信息。以後找機會統一加上吧。 |
可以加到style里传递过去,然后在style更新的时候重新_UninitLanguageBar然后_InitLanguageBar一下,毕竟_InitLanguageBar里是可以调用_cand->style()的,IPC过程实现可以不用动也行 其实似乎还行,复杂度 只是这样操作我问题觉得有点奇怪怕空指针之类的东西出现,感觉要再围观一下这样 |
这也不算是style,跟随style传递总感觉不太好。 |
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.
不好改成YAML就先這樣。
可能要在文檔裏說明這些參數。
相关 issue:
微软文档:
https://learn.microsoft.com/en-us/windows/apps/design/input/input-method-editor-requirements#ime-mode-icon