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:
Mikayla Maki
2024-07-12 14:20:58 -07:00
committed by GitHub
parent 11178eacc7
commit fe3fe945a9
15 changed files with 62 additions and 3 deletions
+2
View File
@@ -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(),
+1
View File
@@ -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,
+7
View File
@@ -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()
+1
View File
@@ -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,