Skip to content

Commit

Permalink
Applied latest split view bg color to priv/tor window
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhong committed Dec 13, 2024
1 parent a87142a commit d33777c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions browser/ui/color/brave_color_id.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down
9 changes: 7 additions & 2 deletions browser/ui/tabs/brave_tab_color_mixer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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,
Expand All @@ -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

0 comments on commit d33777c

Please sign in to comment.