Style titlebar via theme and give it a bottom border

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-09-07 12:52:10 -06:00
co-authored by Max Brunsfeld
parent b29e673c43
commit 59931a472b
3 changed files with 11 additions and 3 deletions
+1
View File
@@ -33,6 +33,7 @@ pub struct SyntaxTheme {
#[derive(Deserialize)]
pub struct Workspace {
pub background: Color,
pub titlebar: ContainerStyle,
pub tab: Tab,
pub active_tab: Tab,
pub sidebar: Sidebar,
+7 -3
View File
@@ -952,9 +952,13 @@ impl View for Workspace {
Container::new(
Flex::column()
.with_child(
ConstrainedBox::new(Empty::new().boxed())
.with_height(32.)
.named("titlebar"),
ConstrainedBox::new(
Container::new(Empty::new().boxed())
.with_style(&settings.theme.workspace.titlebar)
.boxed(),
)
.with_height(32.)
.named("titlebar"),
)
.with_child(
Expanded::new(