Skip to content

Commit

Permalink
Replaced chrome_dark_logo.svg with ours
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhong committed Sep 21, 2023
1 parent ecbbb36 commit 2e38cc6
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions build/commands/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,20 @@ Config.prototype.getBrandingPathProduct = function () {
return this.isOfficialBuild() ? "brave" : "brave-development"
}

Config.prototype.getBraveLogoIconName = function () {
let iconName = "brave-icon-debug-color.svg"
if (this.isBraveReleaseBuild()) {
if (this.channel === "beta") {
iconName = "brave-icon-beta-color.svg"
} else if (this.channel === "nightly") {
iconName = "brave-icon-nightly-color.svg"
} else {
iconName = "brave-icon-release-color.svg"
}
}
return iconName
}

Config.prototype.buildArgs = function () {
const version = this.braveVersion
let version_parts = version.split('+')[0]
Expand Down
6 changes: 6 additions & 0 deletions build/commands/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,12 @@ const util = {
// Replace webui CSS to use our fonts.
fileMap.add([path.join(config.braveCoreDir, 'ui', 'webui', 'resources', 'css', 'text_defaults_md.css'),
path.join(config.srcDir, 'ui', 'webui', 'resources', 'css', 'text_defaults_md.css')])
// Replace chrome dark logo with channel specific brave logo.
fileMap.add([
path.join(config.braveCoreDir, 'node_modules', '@brave', 'leo', 'icons',
config.getBraveLogoIconName()),
path.join(config.srcDir, 'ui', 'webui', 'resources', 'images',
'chrome_logo_dark.svg')])

let explicitSourceFiles = new Set()
if (config.getTargetOS() === 'mac') {
Expand Down

0 comments on commit 2e38cc6

Please sign in to comment.