Allow customizing the pane's following border width in the theme

This commit is contained in:
Max Brunsfeld 2022-03-22 11:43:30 -07:00
parent 4ed8f6fbb4
commit c105802b2d
3 changed files with 4 additions and 2 deletions

View file

@ -36,6 +36,7 @@ pub struct Workspace {
pub active_tab: Tab, pub active_tab: Tab,
pub pane_divider: Border, pub pane_divider: Border,
pub leader_border_opacity: f32, pub leader_border_opacity: f32,
pub leader_border_width: f32,
pub left_sidebar: Sidebar, pub left_sidebar: Sidebar,
pub right_sidebar: Sidebar, pub right_sidebar: Sidebar,
pub status_bar: StatusBar, pub status_bar: StatusBar,

View file

@ -111,7 +111,7 @@ impl Member {
.editor .editor
.replica_selection_style(leader.replica_id) .replica_selection_style(leader.replica_id)
.cursor; .cursor;
border = Border::all(1.0, leader_color); border = Border::all(theme.workspace.leader_border_width, leader_color);
border border
.color .color
.fade_out(1. - theme.workspace.leader_border_opacity); .fade_out(1. - theme.workspace.leader_border_opacity);

View file

@ -4,7 +4,8 @@ base = { family = "Zed Sans", size = 14 }
[workspace] [workspace]
background = "$surface.0" background = "$surface.0"
pane_divider = { width = 1, color = "$border.0" } pane_divider = { width = 1, color = "$border.0" }
leader_border_opacity = 0.6 leader_border_opacity = 0.7
leader_border_width = 2.0
[workspace.titlebar] [workspace.titlebar]
height = 32 height = 32