Skip to content

Commit

Permalink
chore: update iced
Browse files Browse the repository at this point in the history
  • Loading branch information
wash2 authored Nov 9, 2023
1 parent 42f24b7 commit 4844177
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
15 changes: 3 additions & 12 deletions src/widget/color_picker/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ use iced_core::{
layout, mouse, renderer, Background, Clipboard, Color, Layout, Length, Radians, Rectangle,
Renderer, Shell, Vector, Widget,
};
#[cfg(feature = "wayland")]
use iced_sctk::commands::data_device::set_selection;

use iced_style::slider::{HandleShape, RailBackground};
use iced_widget::{canvas, column, horizontal_space, row, scrollable, vertical_space, Row};
use lazy_static::lazy_static;
Expand Down Expand Up @@ -158,16 +157,8 @@ impl ColorPickerModel {
}
ColorPickerUpdate::Copied(t) => {
self.copied_at = Some(t);
#[cfg(feature = "wayland")]
return set_selection(
crate::widget::SUPPORTED_TEXT_MIME_TYPES
.iter()
.map(ToString::to_string)
.collect(),
Box::new(crate::widget::text_input::TextInputString(
self.input_color.clone(),
)),
);

return iced::clipboard::write(self.input_color.clone());
}
ColorPickerUpdate::Reset => {
self.must_clear_cache.store(true, Ordering::SeqCst);
Expand Down

0 comments on commit 4844177

Please sign in to comment.