SHA256
Dependencies update
This commit is contained in:
1 parent
7e72abb528
commit
d494dbe3c8
2 files changed
+283
-432
No files matched your search
Generated
+279
-428
File diff suppressed because it is too large.
Load diff
@@ -20,7 +20,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use iced::{Alignment, Task, widget};
|
use iced::{Alignment, Task, widget};
|
||||||
use iced_moving_picture::widget::apng;
|
use iced_moving_picture::widget::moving_picture;
|
||||||
use log;
|
use log;
|
||||||
use rust_i18n::t;
|
use rust_i18n::t;
|
||||||
|
|
||||||
@@ -52,7 +52,7 @@ pub struct NetworkStage {
|
|||||||
internet_active: bool,
|
internet_active: bool,
|
||||||
state: State,
|
state: State,
|
||||||
use_net_settings: bool,
|
use_net_settings: bool,
|
||||||
spinner_frames: apng::Frames,
|
spinner_frames: moving_picture::Frames,
|
||||||
logo_handle: widget::image::Handle,
|
logo_handle: widget::image::Handle,
|
||||||
status_message: String,
|
status_message: String,
|
||||||
k_config: KiraConfig,
|
k_config: KiraConfig,
|
||||||
@@ -102,7 +102,7 @@ async fn check_connected() -> CheckResult {
|
|||||||
impl NetworkStage {
|
impl NetworkStage {
|
||||||
pub fn new(k_config: KiraConfig) -> Self {
|
pub fn new(k_config: KiraConfig) -> Self {
|
||||||
let spinner_frames =
|
let spinner_frames =
|
||||||
apng::Frames::from_bytes(crate::kira_theming::get_spiner_bytes()).unwrap();
|
moving_picture::Frames::from_bytes(crate::kira_theming::get_spiner_bytes(), moving_picture::Kind::Apng).unwrap();
|
||||||
|
|
||||||
let logo_handle = widget::image::Handle::from_bytes(crate::kira_theming::get_logo_bytes());
|
let logo_handle = widget::image::Handle::from_bytes(crate::kira_theming::get_logo_bytes());
|
||||||
|
|
||||||
@@ -188,7 +188,7 @@ impl NetworkStage {
|
|||||||
|
|
||||||
let spinner_container = match self.state {
|
let spinner_container = match self.state {
|
||||||
State::Cheking => widget::container(
|
State::Cheking => widget::container(
|
||||||
apng(&self.spinner_frames)
|
moving_picture(&self.spinner_frames)
|
||||||
.width(iced::Pixels(128.0).into())
|
.width(iced::Pixels(128.0).into())
|
||||||
.height(iced::Pixels(128.0).into()),
|
.height(iced::Pixels(128.0).into()),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in new issue
Block a user