fix flags
This commit is contained in:
parent
89c42414b6
commit
0d1f69571e
|
@ -21,14 +21,14 @@
|
||||||
"Enable High Contrast Mode",
|
"Enable High Contrast Mode",
|
||||||
"Enables high contrast mode for all Thorium instances.",
|
"Enables high contrast mode for all Thorium instances.",
|
||||||
kOsAll, SINGLE_VALUE_TYPE("force-high-contrast")},
|
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",
|
||||||
"Force Enable Tab Outlines",
|
"Enable Tab Outlines",
|
||||||
"Force enables tab outline strokes, improving accessiblity in dark mode, incognito mode, and low contrast themes.",
|
"Force enables tab outline strokes, improving accessiblity in dark mode, incognito mode, and low contrast themes.",
|
||||||
kOsAll, SINGLE_VALUE_TYPE("force-enable-tab-outlines")},
|
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-ntp",
|
||||||
"Custom New Tab Page",
|
"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.",
|
"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.",
|
||||||
|
|
|
@ -527,10 +527,10 @@ TabStyle::TabColors GM2TabStyleViews::CalculateTargetColors() const {
|
||||||
|
|
||||||
const gfx::FontList& GM2TabStyleViews::GetFontList() const {
|
const gfx::FontList& GM2TabStyleViews::GetFontList() const {
|
||||||
// Don't want to have to keep re-computing this value.
|
// 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() &&
|
if (prominent_dark_mode_titles && tab_->IsActive()) {
|
||||||
color_utils::IsDark(GetCurrentTabBackgroundColor(TabStyle::TabSelectionState::kActive, false))) {
|
|
||||||
return heavy_font_;
|
return heavy_font_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue