linux: Indicate when the window is focused (#14266)
fixes #14202 Release Notes: - Added a representation of the current focus state to Zed's window style ([#14202](https://github.com/zed-industries/zed/issues/14202))
This commit is contained in:
@@ -50,6 +50,7 @@ impl ThemeColors {
|
||||
icon_accent: blue().light().step_11(),
|
||||
status_bar_background: neutral().light().step_2(),
|
||||
title_bar_background: neutral().light().step_2(),
|
||||
title_bar_inactive_background: neutral().light_alpha().step_3(),
|
||||
toolbar_background: neutral().light().step_1(),
|
||||
tab_bar_background: neutral().light().step_2(),
|
||||
tab_inactive_background: neutral().light().step_2(),
|
||||
@@ -147,6 +148,7 @@ impl ThemeColors {
|
||||
icon_accent: blue().dark().step_11(),
|
||||
status_bar_background: neutral().dark().step_2(),
|
||||
title_bar_background: neutral().dark().step_2(),
|
||||
title_bar_inactive_background: neutral().dark_alpha().step_3(),
|
||||
toolbar_background: neutral().dark().step_1(),
|
||||
tab_bar_background: neutral().dark().step_2(),
|
||||
tab_inactive_background: neutral().dark().step_2(),
|
||||
|
||||
@@ -76,6 +76,7 @@ pub(crate) fn one_dark() -> Theme {
|
||||
icon_accent: blue,
|
||||
status_bar_background: bg,
|
||||
title_bar_background: bg,
|
||||
title_bar_inactive_background: SystemColors::default().transparent,
|
||||
toolbar_background: editor,
|
||||
tab_bar_background: bg,
|
||||
tab_inactive_background: bg,
|
||||
|
||||
@@ -300,6 +300,9 @@ pub struct ThemeColorsContent {
|
||||
#[serde(rename = "title_bar.background")]
|
||||
pub title_bar_background: Option<String>,
|
||||
|
||||
#[serde(rename = "title_bar.inactive_background")]
|
||||
pub title_bar_inactive_background: Option<String>,
|
||||
|
||||
#[serde(rename = "toolbar.background")]
|
||||
pub toolbar_background: Option<String>,
|
||||
|
||||
@@ -663,6 +666,10 @@ impl ThemeColorsContent {
|
||||
.title_bar_background
|
||||
.as_ref()
|
||||
.and_then(|color| try_parse_color(color).ok()),
|
||||
title_bar_inactive_background: self
|
||||
.title_bar_inactive_background
|
||||
.as_ref()
|
||||
.and_then(|color| try_parse_color(color).ok()),
|
||||
toolbar_background: self
|
||||
.toolbar_background
|
||||
.as_ref()
|
||||
|
||||
@@ -113,6 +113,7 @@ pub struct ThemeColors {
|
||||
// ===
|
||||
pub status_bar_background: Hsla,
|
||||
pub title_bar_background: Hsla,
|
||||
pub title_bar_inactive_background: Hsla,
|
||||
pub toolbar_background: Hsla,
|
||||
pub tab_bar_background: Hsla,
|
||||
pub tab_inactive_background: Hsla,
|
||||
|
||||
Reference in New Issue
Block a user