element: Refactor remaining libcosmic elements for blur
This commit is contained in:
parent
6c76fdaa79
commit
db06770a6b
9 changed files with 444 additions and 142 deletions
|
|
@ -102,9 +102,8 @@ use self::zoom::{OutputZoomState, ZoomState};
|
|||
|
||||
use self::{
|
||||
element::{
|
||||
CosmicWindow, MaximizedState,
|
||||
resize_indicator::{ResizeIndicator, resize_indicator},
|
||||
swap_indicator::{SwapIndicator, swap_indicator},
|
||||
CosmicWindow, MaximizedState, resize_indicator::ResizeIndicator,
|
||||
swap_indicator::SwapIndicator,
|
||||
},
|
||||
focus::target::{KeyboardFocusTarget, PointerFocusTarget},
|
||||
grabs::{
|
||||
|
|
@ -2291,7 +2290,7 @@ impl Shell {
|
|||
OverviewMode::Started(_, _) | OverviewMode::Active(_)
|
||||
) {
|
||||
if matches!(trigger, Trigger::KeyboardSwap(_, _)) {
|
||||
self.swap_indicator = Some(swap_indicator(evlh, self.theme.clone()));
|
||||
self.swap_indicator = Some(SwapIndicator::new(evlh, self.theme.clone()));
|
||||
}
|
||||
self.overview_mode = OverviewMode::Started(trigger, Instant::now());
|
||||
}
|
||||
|
|
@ -2344,7 +2343,7 @@ impl Shell {
|
|||
} else {
|
||||
self.resize_mode = ResizeMode::Started(pattern, Instant::now(), direction);
|
||||
}
|
||||
self.resize_indicator = Some(resize_indicator(
|
||||
self.resize_indicator = Some(ResizeIndicator::new(
|
||||
direction,
|
||||
config,
|
||||
evlh,
|
||||
|
|
@ -3668,6 +3667,8 @@ impl Shell {
|
|||
return None;
|
||||
};
|
||||
|
||||
let mut theme = self.theme.clone();
|
||||
theme.transparent = theme.cosmic().frosted_windows;
|
||||
let grab = MenuGrab::new(
|
||||
GrabStartData::Pointer(start_data),
|
||||
seat,
|
||||
|
|
@ -3676,7 +3677,7 @@ impl Shell {
|
|||
MenuAlignment::CORNER,
|
||||
None,
|
||||
evlh.clone(),
|
||||
self.theme.clone(),
|
||||
theme,
|
||||
);
|
||||
|
||||
Some((grab, Focus::Keep))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue