feat(wrapper): use pure Box component instead deleted Wrapper component

feat(wrapper): use pure Box component instead deleted Wrapper component
This commit is contained in:
2024-08-16 23:26:53 +04:00
parent f12c499df0
commit bafa837931
2 changed files with 9 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ use gtk4 as gtk;
use crate::{
model::builder_traits::Product,
view::{
components::{info_bar::InfoBar, input::Input, wrapper::*},
components::{info_bar::InfoBar, input::Input},
properties::*,
},
view_utils::{hamming_code_utils::start_hamming_algorithm, input_utils::clearing},
@@ -47,13 +47,15 @@ pub fn hamming_code_page(wrapper: &Box) {
let crypt_mode_label = Label::builder().label("Режим: кодирование").build();
let crypt_mode_wrapper = Wrapper::col_builder()
let crypt_mode_wrapper = Box::builder()
.orientation(Orientation::Horizontal)
.set_align(Alignment::new(Align::Fill, Align::Center))
.hexpand(true)
.spacing(10)
.build();
let action_components_wrapper = Wrapper::col_builder()
let action_components_wrapper = Box::builder()
.orientation(Orientation::Horizontal)
.set_align(Alignment::new(Align::Fill, Align::Fill))
.set_margin(MarginData::MultipleMargin((0, 5, 0, 5)))
.spacing(10)