From d33777c00fbcecf858ececdb14b97e9ebcf0d3b9 Mon Sep 17 00:00:00 2001 From: Simon Hong Date: Fri, 13 Dec 2024 22:56:00 +0900 Subject: [PATCH] Applied latest split view bg color to priv/tor window --- browser/ui/color/brave_color_id.h | 1 + browser/ui/tabs/brave_tab_color_mixer.cc | 9 +++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/browser/ui/color/brave_color_id.h b/browser/ui/color/brave_color_id.h index e81904152c0d..82c87802ef08 100644 --- a/browser/ui/color/brave_color_id.h +++ b/browser/ui/color/brave_color_id.h @@ -128,6 +128,7 @@ #define BRAVE_SPLIT_VIEW_COLOR_IDS \ E_CPONLY(kColorBraveSplitViewTileBackgroundHorizontal) \ E_CPONLY(kColorBraveSplitViewTileBackgroundVertical) \ + E_CPONLY(kColorBraveSplitViewTileDivider) \ E_CPONLY(kColorBraveSplitViewActiveWebViewBorder) \ E_CPONLY(kColorBraveSplitViewInactiveWebViewBorder) \ E_CPONLY(kColorBraveSplitViewMenuButtonIcon) \ diff --git a/browser/ui/tabs/brave_tab_color_mixer.cc b/browser/ui/tabs/brave_tab_color_mixer.cc index 61f068899043..0c743580b5a6 100644 --- a/browser/ui/tabs/brave_tab_color_mixer.cc +++ b/browser/ui/tabs/brave_tab_color_mixer.cc @@ -40,6 +40,8 @@ void AddBraveTabThemeColorMixer(ui::ColorProvider* provider, nala::kColorDesktopbrowserTabbarSplitViewBackgroundHorizontal}; mixer[kColorBraveSplitViewTileBackgroundVertical] = { nala::kColorDesktopbrowserTabbarSplitViewBackgroundVertical}; + mixer[kColorBraveSplitViewTileDivider] = { + nala::kColorDesktopbrowserTabbarSplitViewDivider}; mixer[kColorBraveSplitViewMenuItemIcon] = {nala::kColorIconDefault}; mixer[kColorBraveSplitViewUrl] = {nala::kColorTextTertiary}; mixer[kColorBraveSplitViewMenuButtonBorder] = {nala::kColorDividerSubtle}; @@ -67,9 +69,11 @@ void AddBraveTabPrivateThemeColorMixer(ui::ColorProvider* provider, mixer[kColorBraveVerticalTabInactiveBackground] = { mixer.GetResultColor(kColorToolbar)}; mixer[kColorBraveSplitViewTileBackgroundHorizontal] = { - SkColorSetRGB(0x2A, 0xD, 0x58)}; + nala::kColorPrimitivePrivateWindow10}; mixer[kColorBraveSplitViewTileBackgroundVertical] = { kColorBraveSplitViewTileBackgroundHorizontal}; + mixer[kColorBraveSplitViewTileDivider] = { + nala::kColorPrimitivePrivateWindow20}; } void AddBraveTabTorThemeColorMixer(ui::ColorProvider* provider, @@ -80,9 +84,10 @@ void AddBraveTabTorThemeColorMixer(ui::ColorProvider* provider, mixer[kColorBraveVerticalTabInactiveBackground] = { mixer.GetResultColor(kColorToolbar)}; mixer[kColorBraveSplitViewTileBackgroundHorizontal] = { - SkColorSetRGB(0x35, 0x0B, 0x49)}; + nala::kColorPrimitiveTorWindow10}; mixer[kColorBraveSplitViewTileBackgroundVertical] = { kColorBraveSplitViewTileBackgroundHorizontal}; + mixer[kColorBraveSplitViewTileDivider] = {nala::kColorPrimitiveTorWindow20}; } } // namespace tabs