chore: update iced
This commit is contained in:
parent
42f24b7ee2
commit
484417787a
2 changed files with 4 additions and 13 deletions
2
iced
2
iced
|
|
@ -1 +1 @@
|
||||||
Subproject commit 8656300f0b4789297c8eeb5952fbc7e3db107475
|
Subproject commit b98c0f2006bae371afadb52d4799ea95aacdbb77
|
||||||
|
|
@ -20,8 +20,7 @@ use iced_core::{
|
||||||
layout, mouse, renderer, Background, Clipboard, Color, Layout, Length, Radians, Rectangle,
|
layout, mouse, renderer, Background, Clipboard, Color, Layout, Length, Radians, Rectangle,
|
||||||
Renderer, Shell, Vector, Widget,
|
Renderer, Shell, Vector, Widget,
|
||||||
};
|
};
|
||||||
#[cfg(feature = "wayland")]
|
|
||||||
use iced_sctk::commands::data_device::set_selection;
|
|
||||||
use iced_style::slider::{HandleShape, RailBackground};
|
use iced_style::slider::{HandleShape, RailBackground};
|
||||||
use iced_widget::{canvas, column, horizontal_space, row, scrollable, vertical_space, Row};
|
use iced_widget::{canvas, column, horizontal_space, row, scrollable, vertical_space, Row};
|
||||||
use lazy_static::lazy_static;
|
use lazy_static::lazy_static;
|
||||||
|
|
@ -158,16 +157,8 @@ impl ColorPickerModel {
|
||||||
}
|
}
|
||||||
ColorPickerUpdate::Copied(t) => {
|
ColorPickerUpdate::Copied(t) => {
|
||||||
self.copied_at = Some(t);
|
self.copied_at = Some(t);
|
||||||
#[cfg(feature = "wayland")]
|
|
||||||
return set_selection(
|
return iced::clipboard::write(self.input_color.clone());
|
||||||
crate::widget::SUPPORTED_TEXT_MIME_TYPES
|
|
||||||
.iter()
|
|
||||||
.map(ToString::to_string)
|
|
||||||
.collect(),
|
|
||||||
Box::new(crate::widget::text_input::TextInputString(
|
|
||||||
self.input_color.clone(),
|
|
||||||
)),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
ColorPickerUpdate::Reset => {
|
ColorPickerUpdate::Reset => {
|
||||||
self.must_clear_cache.store(true, Ordering::SeqCst);
|
self.must_clear_cache.store(true, Ordering::SeqCst);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue