如何更改 Chromium 浏览器徽标和名称? [英] How to change Chromium browser logo and name?

查看:103
本文介绍了如何更改 Chromium 浏览器徽标和名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经根据其

接下来我要实现的是在浏览器上随处更改 Chromium 的徽标和名称(例如 MyBrowser).我被困在这一步.有没有办法通过修改代码或者更换图标来实现?

解决方案

您将不得不进行大量更改.在替换这些文件之前,请确保您要替换的文件也匹配分辨率和格式.

如果您想更改 Chromium 的标志,请将这些文件替换为您的标志

src/chrome/app/theme/chromium/product_logo_22_mono.pngsrc/chrome/app/theme/chromium/product_logo_24.pngsrc/chrome/app/theme/chromium/product_logo_48.pngsrc/chrome/app/theme/chromium/product_logo_64.pngsrc/chrome/app/theme/chromium/product_logo_128.pngsrc/chrome/app/theme/chromium/product_logo_256.pngsrc/chrome/app/theme/default_100_percent/chromium/product_logo_16.pngsrc/chrome/app/theme/default_100_percent/chromium/product_logo_32.pngsrc/chrome/app/theme/default_100_percent/chromium/product_logo_name_22.pngsrc/chrome/app/theme/default_200_percent/chromium/product_logo_16.pngsrc/chrome/app/theme/default_200_percent/chromium/product_logo_32.pngsrc/chrome/app/theme/default_200_percent/chromium/product_logo_name_22.pngsrc/chrome/app/theme/default_200_percent/chromium/product_logo_name_48.pngsrc/chrome/app/theme/chromium/win/tiles/Logo.pngsrc/chrome/app/theme/chromium/win/tiles/SmallLogo.png

然后替换这个图标文件:对于 Windows:

src/chrome/app/theme/chromium/win/chromium.ico

对于 macOS:

src/chrome/app/theme/chromium/mac/app.icns

要更改 Chromium 中显示的浏览器名称和消息,请打开并修改这些文件

src/chrome/app/theme/chromium/BRANDINGsrc/chrome/app/generated_resources.grdsrc/chrome/app/chromium_strings.grd

您应该用您的品牌替换上述文件中的 ChromiumChrome 引用

I've built the Chromium browser on my Windows from its source code (Github) by following this documentation. After doing this successfully, I've a chrome.exe file which is able to launch the browser (see screenshot).

The next thing I want to implement is to change the logo and name of Chromium (say, MyBrowser) everywhere on the browser. I'm stuck at this step. Is there any way to achieve this by modifying the code or replacing the icon?

解决方案

You will have to make lots of changes. Before replacing these files, please make sure the files that you are replacing with matches the resolution and format too.

If you want to change the logo of Chromium then replace these files with yours

src/chrome/app/theme/chromium/product_logo_22_mono.png
src/chrome/app/theme/chromium/product_logo_24.png
src/chrome/app/theme/chromium/product_logo_48.png
src/chrome/app/theme/chromium/product_logo_64.png
src/chrome/app/theme/chromium/product_logo_128.png
src/chrome/app/theme/chromium/product_logo_256.png
src/chrome/app/theme/default_100_percent/chromium/product_logo_16.png
src/chrome/app/theme/default_100_percent/chromium/product_logo_32.png
src/chrome/app/theme/default_100_percent/chromium/product_logo_name_22.png
src/chrome/app/theme/default_200_percent/chromium/product_logo_16.png
src/chrome/app/theme/default_200_percent/chromium/product_logo_32.png
src/chrome/app/theme/default_200_percent/chromium/product_logo_name_22.png
src/chrome/app/theme/default_200_percent/chromium/product_logo_name_48.png
src/chrome/app/theme/chromium/win/tiles/Logo.png
src/chrome/app/theme/chromium/win/tiles/SmallLogo.png

Then replace this icon file: For Windows:

src/chrome/app/theme/chromium/win/chromium.ico

For macOS:

src/chrome/app/theme/chromium/mac/app.icns

To change the name of the browser and messages displayed in Chromium, open and modify these files

src/chrome/app/theme/chromium/BRANDING
src/chrome/app/generated_resources.grd
src/chrome/app/chromium_strings.grd

You should replace Chromium or Chrome references from the above files with your brand

这篇关于如何更改 Chromium 浏览器徽标和名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆