Skip to content

Commit

Permalink
Fixed wrong active/hover color with custom theme in vertical tab
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhong committed Jan 7, 2025
1 parent c9ea17a commit 0628c16
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions browser/ui/tabs/brave_tab_color_mixer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ void AddBraveTabThemeColorMixer(ui::ColorProvider* provider,
mixer[kColorBraveSplitViewTileBackgroundBorder] = {
SkColorSetARGB(0x34, 0xFF, 0xFF, 0xFF)};
mixer[kColorBraveSplitViewTileDivider] = {kColorTabDividerFrameActive};
mixer[kColorBraveVerticalTabActiveBackground] = {
kColorTabBackgroundInactiveFrameActive};
mixer[kColorBraveVerticalTabHoveredBackground] = {
ui::AlphaBlend(kColorBraveVerticalTabActiveBackground,
kColorBraveVerticalTabInactiveBackground,
/* 40% opacity */ 0.4 * SK_AlphaOPAQUE)};
} else {
mixer[kColorBraveSplitViewTileBackgroundHorizontal] = {
nala::kColorDesktopbrowserTabbarSplitViewBackgroundHorizontal};
Expand All @@ -37,12 +43,12 @@ void AddBraveTabThemeColorMixer(ui::ColorProvider* provider,
mixer[kColorBraveSplitViewTileBackgroundBorder] = {SK_ColorTRANSPARENT};
mixer[kColorBraveSplitViewTileDivider] = {
nala::kColorDesktopbrowserTabbarSplitViewDivider};
mixer[kColorBraveVerticalTabActiveBackground] = {
nala::kColorDesktopbrowserTabbarActiveTabVertical};
mixer[kColorBraveVerticalTabHoveredBackground] = {
nala::kColorDesktopbrowserTabbarHoverTabVertical};
}

mixer[kColorBraveVerticalTabActiveBackground] = {
nala::kColorDesktopbrowserTabbarActiveTabVertical};
mixer[kColorBraveVerticalTabHoveredBackground] = {
nala::kColorDesktopbrowserTabbarHoverTabVertical};
mixer[kColorBraveVerticalTabInactiveBackground] = {kColorToolbar};
mixer[kColorBraveVerticalTabSeparator] = {kColorToolbarContentAreaSeparator};
mixer[kColorBraveVerticalTabNTBIconColor] = {
Expand Down

0 comments on commit 0628c16

Please sign in to comment.