fix: test
This commit is contained in:
parent
bb0145c566
commit
be499d01af
5 changed files with 21 additions and 21 deletions
|
|
@ -385,13 +385,11 @@ where
|
|||
my_state: &mut MenuBarState,
|
||||
) {
|
||||
if self.window_id != window::Id::NONE && self.on_surface_action.is_some() {
|
||||
use crate::{
|
||||
surface::action::{LiveSettings, destroy_popup},
|
||||
theme::THEME,
|
||||
};
|
||||
use iced_runtime::platform_specific::wayland::{
|
||||
CornerRadius,
|
||||
popup::{SctkPopupSettings, SctkPositioner},
|
||||
use crate::surface::action::{LiveSettings, destroy_popup};
|
||||
use crate::theme::THEME;
|
||||
use iced_runtime::platform_specific::wayland::CornerRadius;
|
||||
use iced_runtime::platform_specific::wayland::popup::{
|
||||
SctkPopupSettings, SctkPositioner,
|
||||
};
|
||||
|
||||
let surface_action = self.on_surface_action.as_ref().unwrap();
|
||||
|
|
|
|||
|
|
@ -999,12 +999,13 @@ impl<Message: std::clone::Clone + 'static> Widget<Message, crate::Theme, crate::
|
|||
if matches!(WINDOWING_SYSTEM.get(), Some(WindowingSystem::Wayland))
|
||||
&& let Some((new_root, new_ms)) = new_root
|
||||
{
|
||||
use iced_runtime::platform_specific::wayland::{
|
||||
CornerRadius,
|
||||
popup::{SctkPopupSettings, SctkPositioner},
|
||||
use iced_runtime::platform_specific::wayland::CornerRadius;
|
||||
use iced_runtime::platform_specific::wayland::popup::{
|
||||
SctkPopupSettings, SctkPositioner,
|
||||
};
|
||||
|
||||
use crate::{surface::action::LiveSettings, theme::THEME};
|
||||
use crate::surface::action::LiveSettings;
|
||||
use crate::theme::THEME;
|
||||
let overlay_offset = Point::ORIGIN - viewport.position();
|
||||
|
||||
let overlay_cursor = cursor.position().unwrap_or_default() - overlay_offset;
|
||||
|
|
|
|||
|
|
@ -941,13 +941,11 @@ where
|
|||
let my_state = state.menu_state.clone();
|
||||
|
||||
if self.window_id != window::Id::NONE {
|
||||
use crate::{
|
||||
surface::action::{LiveSettings, destroy_popup},
|
||||
widget::menu::StyleSheet,
|
||||
};
|
||||
use iced_runtime::platform_specific::wayland::{
|
||||
CornerRadius,
|
||||
popup::{SctkPopupSettings, SctkPositioner},
|
||||
use crate::surface::action::{LiveSettings, destroy_popup};
|
||||
use crate::widget::menu::StyleSheet;
|
||||
use iced_runtime::platform_specific::wayland::CornerRadius;
|
||||
use iced_runtime::platform_specific::wayland::popup::{
|
||||
SctkPopupSettings, SctkPositioner,
|
||||
};
|
||||
|
||||
let Some(surface_action) = self.on_surface_action.as_ref() else {
|
||||
|
|
@ -2855,6 +2853,7 @@ mod tests {
|
|||
where
|
||||
Model<SelectionMode>: Selectable,
|
||||
SelectionMode: Default,
|
||||
Message: Clone,
|
||||
{
|
||||
const VERTICAL: bool = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue