fix(grub-theme): Fix incomplete display of GRUB theme menu text on arm64, loongarch64, and sw64 architectures#179
Conversation
There was a problem hiding this comment.
Sorry @electricface, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
76a14a4 to
cae0d67
Compare
arm64, loongarch64, and sw64 architectures - Add support for V25 GRUB theme adjustments - Migrate the original deepin theme resources to the deepin-v20 directory - Copy a theme from deepin-fallback to the deepin theme - Upgrade the theme adjustment tool version from 18 to 19 - Specifically increase the menu width when GFXMODE is set to 1024x768 --- fix(grub-theme): 修复arm64,loongarch64,sw64架构的 GRUB主题菜单文字显示不全 - 新增 V25 GRUB 主题调整支持 - 将原有的 deepin 主题资源迁移到 deepin-v20 目录 - 从 deepin-fallback 复制一份主题到 deepin 主题 - 主题调整工具版本号从 18 升级到 19 - 在GFXMODE为1024x7682,特别地增加启动菜单宽度 Log: 修复arm64,loongarch64,sw64架构的GRUB主题菜单文字显示不全 Influence: GRUB主题 PMS: BUG-277733, BUG-291909
cae0d67 to
aa6f2f1
Compare
deepin pr auto reviewGit Diff 代码审查报告总体概述这个 diff 主要对 GRUB 主题调整工具进行了重大更新,包括:
详细审查意见1. 语法逻辑1.1 GRUB 参数加载逻辑改进位置: 改进点:
建议: // 当前实现
func loadGrubParams(grubParamsFilePaths []string) map[string]string {
params := make(map[string]string)
// First read the main configuration file
for _, grubParamsFilePath := range grubParamsFilePaths {
if err := readGrubParamsFile(grubParamsFilePath, params); err != nil {
logger.Warningf("Failed to read grub params file %s: %v", grubParamsFilePath, err)
}
}
return params
}
// 建议改进:添加注释说明参数合并规则(后读取的文件会覆盖先读取的参数)
func loadGrubParams(grubParamsFilePaths []string) map[string]string {
// 参数合并规则:后读取的文件中的参数会覆盖先读取的文件中的同名参数
// 这与GRUB实际行为一致,后加载的配置文件优先级更高
params := make(map[string]string)
for _, grubParamsFilePath := range grubParamsFilePaths {
if err := readGrubParamsFile(grubParamsFilePath, params); err != nil {
logger.Warningf("Failed to read grub params file %s: %v", grubParamsFilePath, err)
}
}
return params
}1.2
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: electricface, fly602 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/forcemerge |
Uh oh!
There was an error while loading. Please reload this page.