Skip to content
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

[Feature Request] 由主题控制预编辑区文本和背景颜色 #31

Closed
hosxy opened this issue Dec 27, 2019 · 3 comments
Closed

[Feature Request] 由主题控制预编辑区文本和背景颜色 #31

hosxy opened this issue Dec 27, 2019 · 3 comments

Comments

@hosxy
Copy link

hosxy commented Dec 27, 2019

Fcitx5 最近加入了我非常喜欢的 inline_preedit 模式,但是我发现 预编辑区那块的文本和背景颜色 好像不能由主题控制,
比如同一个主题,fcitx5自带pinyin和fcitx5-rime 行为就不一致,如图:
fcitx5-rime:深度截图_选择区域_20191227151405
fcitx5-pinyin:深度截图_选择区域_20191227151453

而且同样是fcitx5-rime,在gtk和qt程序中也不一致:

GTK:深度截图_选择区域_20191227151405
QT:深度截图_选择区域_20191227152006

这一块的 文本颜色和背景高亮颜色 能否直接由fcitx5主题来控制,这样的话不同输入法在不同程序中也能做到外观一直

@wengxt
Copy link
Member

wengxt commented Dec 29, 2019

首先fcitx正是使用主题颜色,出现如图的情况应该是你的主题配置/应用程序人为设置高亮颜色为那个颜色。
其次,每个输入法引擎可以自己选择是否使用“类高亮”来显示,不一致只是在实现上的选择而已。rime使用高亮只是为了和其他rime实现一致,而我自己其实不喜欢高亮所以fcitx自带拼音没有采用类似的方式。

@wengxt wengxt closed this as completed Dec 29, 2019
@hosxy
Copy link
Author

hosxy commented Dec 30, 2019

首先fcitx正是使用主题颜色,出现如图的情况应该是你的主题配置/应用程序人为设置高亮颜色为那个颜色。
其次,每个输入法引擎可以自己选择是否使用“类高亮”来显示,不一致只是在实现上的选择而已。rime使用高亮只是为了和其他rime实现一致,而我自己其实不喜欢高亮所以fcitx自带拼音没有采用类似的方式。

其实我的意思是
如果没有开 PreeditInApplicaation 那键入的字符显示在候选框里,这时候键入字符和背景高亮的确是受主题里的HighlightColorHighlightBackgroundColor控制

但是如果开了 PreeditInApplicaation 的话,键入字符显示在预编辑区,这时候就不受主题里的HighlightColorHighlightBackgroundColor控制了(其实我想表达的是预编辑区文本颜色和高亮不受主题控制)

@wengxt
Copy link
Member

wengxt commented Dec 31, 2019

Screenshot_20191230_183951

Screenshot_20191230_184130

参见图,我是不知道咋就不符合主题了

当然,如果你的意思是不符合皮肤的主题,那确实,因为程序中的预编辑是要符合程序自己的主题的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants