Extract IBus related GTK style (4.0.0) #1
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR intends to add functionality to extract IBus related GTK styles so that users or IBus theme designers can easily modify those styles to adapt to their own needs.
GTK+ CSS Overview
Problems to solve (In Priority Order):
At present, it seems like that the styles in the original style sheet cannot be overwritten by specifying the
#IBusCandidate
name alone.目前似乎通过限定名称
#IBusCandidate
来单独指定出来并不可以覆盖原主题中的类样式。At present, there are many redundancies in the extracted styles, which can be further cleaned up.
目前拆解出来的样式存在许多冗余,可以进一步清理。
Extraction of the style sheets using like
@import url("resource:///...")
by extracting gresources files.通过解包gresources文件,实现对于类似于
@import url("resource:///...")
类的引用的样式表解析。Allow users to easily select a background picture for GTK themes and changing it's border radius.
允许用户很容易地为GTK主题选择一个背景图片并更改其圆角半径。
Handling resources use like pictures etc.
处理对于资源的引用,如图片等。
Merge multiple
gtk.gresource
files into one.将多重
gtk.gresource
文件合并为一个。Candidate Highlight seems not to be able to overwrite.
候选词高亮色似乎无法被覆盖。
Signed-off-by: Hollow Man hollowman@hollowman.ml
测试