mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-27 10:59:53 +00:00
Add active style when participant popover is open
This commit is contained in:
parent
0db6eb2fb8
commit
0a29e13d4a
2 changed files with 7 additions and 1 deletions
|
@ -96,7 +96,9 @@ impl CollabTitlebarItem {
|
|||
Stack::new()
|
||||
.with_child(
|
||||
MouseEventHandler::<ToggleAddParticipantPopover>::new(0, cx, |state, _| {
|
||||
let style = titlebar.add_participant_button.style_for(state, false);
|
||||
let style = titlebar
|
||||
.add_participant_button
|
||||
.style_for(state, self.add_participant_popover.is_some());
|
||||
Svg::new("icons/plus_8.svg")
|
||||
.with_color(style.color)
|
||||
.constrained()
|
||||
|
|
|
@ -124,6 +124,10 @@ export default function workspace(theme: Theme) {
|
|||
color: iconColor(theme, "secondary"),
|
||||
iconWidth: 8,
|
||||
buttonWidth: 20,
|
||||
active: {
|
||||
background: backgroundColor(theme, "on300", "active"),
|
||||
color: iconColor(theme, "active"),
|
||||
},
|
||||
hover: {
|
||||
background: backgroundColor(theme, "on300", "hovered"),
|
||||
color: iconColor(theme, "active"),
|
||||
|
|
Loading…
Reference in a new issue