Skip to content

Commit

Permalink
新特性:
Browse files Browse the repository at this point in the history
* 抛弃GDI绘制文字,仅支持Windows 8.1或以上版本系统
* 候选窗口圆角
* 支持半透明颜色 格式  0xaabbggbb,旧配置中的0xbbggrr会被解析成0xffbbggrr
* 阴影特性,编码/高亮候选/普通候选/输入窗口 均可设置独立阴影色,默认透明不绘制
* 标签,注解字体可独立定义,字号可独立定义
* 字体回退顺序可根据字体设置执行,可定义各个字体的生效范围
* 彩色字体支持,Windows 10 周年构建版之前的系统,需要使用COLR格式的彩色字体,之后的版本可使用SVG字体
* Windows 10或者Windows 11(构建版本不大于22000)下可使能窗口背景模糊(毛玻璃效果)
* 重构布局相关计算,新增竖直文字布局,可定义流向(flow direction),可定义是否超长换行显示
* 支持多行候选(使用\r换行)内容的显示,定义max_width或者max_height时,文本超长可自动折行/列显示
* 天圆地方特性,竖排文字组合换列或者水平布局组合换行时无此特性。即 水平布局一行显示,竖直布局, 竖排每列一候选状态的时候,可以支持天圆地方,条件是margin 和 hilite_padding之间的数值大小比较
* margin_x 或者 margin_y设置负值时,隐藏输入窗口,不影响方案选单/tips的显示
* 新增可选的鼠标点击截图功能,点击高亮候选截图高亮候选,其他截图整个候选窗口。开启后潜在可能会让响应比未开启时有性能损失。
* 新增一个preedit_type : preview_all, 配合隐藏窗口 和inine_preedit 使用尤佳
* 新增参数,实现类似Windows 11 系统自带输入法的高亮提示标记,标记符号可自定义,默认无内容,透明
* 新增参数,实现候选边框颜色绘制,默认透明不绘制
* 新增参数,实现方案中文图标在切换时显示
* 新增半角,全角图标,新绘制高清weaselserver图标
* github 自动构建,使用librime 1.8.5,修复上游文件路径变化引起的构建失败问题

修复:
* 无法在Windows 10的开始菜单等位置输入
* 候选文字过长时崩溃
* 使用较新的librime(如librime 1.7.3)时,如果用户目录下没有default.custom.yaml或者weasel.custom.yaml的情况下设定窗口无法弹出

改善:
* 减少ui对象重复销毁和创建,一个session只创建一次
* 减少窗口重绘次数降低闪烁

参考配置 [weasel config](https://github.com/fxliang/weasel_config)
  • Loading branch information
fxliang authored and lotem committed May 11, 2023
1 parent e069d97 commit 60d5a48
Show file tree
Hide file tree
Showing 65 changed files with 8,771 additions and 5,521 deletions.
2 changes: 1 addition & 1 deletion PyWeasel/targetver.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista.
#define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows.
#define _WIN32_WINNT 0x0603 // Change this to the appropriate value to target other versions of Windows.
#endif

Loading

0 comments on commit 60d5a48

Please sign in to comment.