fix flags

This commit is contained in:
Alexander Frick 2023-10-17 08:05:12 -05:00
parent 89c42414b6
commit 0d1f69571e
2 changed files with 8 additions and 8 deletions

View File

@ -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.",

View File

@ -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_;
}