feat(context_menu): report open/close and reset on compositor dismissal
This commit is contained in:
parent
aac833d37d
commit
fd20f09729
4 changed files with 85 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ pub enum Button {
|
|||
IconVertical,
|
||||
Image,
|
||||
Link,
|
||||
LinkActive,
|
||||
ListItem([f32; 4]),
|
||||
MenuFolder,
|
||||
MenuItem,
|
||||
|
|
@ -121,6 +122,13 @@ pub fn appearance(
|
|||
corner_radii = &cosmic.corner_radii.radius_0;
|
||||
}
|
||||
|
||||
Button::LinkActive => {
|
||||
appearance.background = Some(Background::Color(cosmic.text_button.hover.into()));
|
||||
appearance.icon_color = Some(cosmic.accent_text_color().into());
|
||||
appearance.text_color = Some(cosmic.accent_text_color().into());
|
||||
corner_radii = &cosmic.corner_radii.radius_xs;
|
||||
}
|
||||
|
||||
Button::Custom { .. } => (),
|
||||
Button::AppletMenu => {
|
||||
let (background, _, _) = color(&cosmic.text_button);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue