diff --git a/src/chrome/browser/thorium_flag_entries.h b/src/chrome/browser/thorium_flag_entries.h index f10516eb..d6a08632 100644 --- a/src/chrome/browser/thorium_flag_entries.h +++ b/src/chrome/browser/thorium_flag_entries.h @@ -21,14 +21,14 @@ "Enable High Contrast Mode", "Enables high contrast mode for all Thorium instances.", kOsAll, SINGLE_VALUE_TYPE("force-high-contrast")}, + {"prominent-active-tab-titles", + "Prominent Active Tab Titles", + "Makes the active tab title bolder so that it is easier to identify.", + kOsAll, SINGLE_VALUE_TYPE("prominent-active-tab-titles")}, {"force-enable-tab-outlines", - "Force Enable Tab Outlines", + "Enable Tab Outlines", "Force enables tab outline strokes, improving accessiblity in dark mode, incognito mode, and low contrast themes.", kOsAll, SINGLE_VALUE_TYPE("force-enable-tab-outlines")}, - {"prominent-dark-mode-active-tab-title", - "Prominent Dark Mode Active Tab Titles", - "Makes the active tab title bolder in dark mode so that it is easier to identify.", - kOsAll, SINGLE_VALUE_TYPE("prominent-dark-mode-active-tab-title")}, {"custom-ntp", "Custom New Tab Page", "Allows setting a custom URL for the New Tab Page (NTP). Value can be internal (e.g. `about:blank` or `chrome://new-tab-page`), external (e.g. `example.com`), or local (e.g. `file:///tmp/startpage.html`). This applies for incognito windows as well when not set to a `chrome://` internal page.", diff --git a/src/chrome/browser/ui/views/tabs/tab_style_views.cc b/src/chrome/browser/ui/views/tabs/tab_style_views.cc index 2fa972e7..f0fc5b50 100644 --- a/src/chrome/browser/ui/views/tabs/tab_style_views.cc +++ b/src/chrome/browser/ui/views/tabs/tab_style_views.cc @@ -527,10 +527,10 @@ TabStyle::TabColors GM2TabStyleViews::CalculateTargetColors() const { const gfx::FontList& GM2TabStyleViews::GetFontList() const { // Don't want to have to keep re-computing this value. - static const bool prominent_dark_mode_title = base::CommandLine::ForCurrentProcess()->HasSwitch("prominent-dark-mode-active-tab-title"); + static const bool prominent_dark_mode_titles = + base::CommandLine::ForCurrentProcess()->HasSwitch("prominent-active-tab-titles"); - if (prominent_dark_mode_title && tab_->IsActive() && - color_utils::IsDark(GetCurrentTabBackgroundColor(TabStyle::TabSelectionState::kActive, false))) { + if (prominent_dark_mode_titles && tab_->IsActive()) { return heavy_font_; }