mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-15 09:10:08 +00:00
remove deprecated classes
This commit is contained in:
parent
effb833cd6
commit
4132d734f9
@ -13,7 +13,7 @@ impl Widget {
|
|||||||
pub fn new(action_send: SimpleAction) -> Self {
|
pub fn new(action_send: SimpleAction) -> Self {
|
||||||
// Init main widget
|
// Init main widget
|
||||||
let button = Button::builder()
|
let button = Button::builder()
|
||||||
//.css_classes(["accent"])
|
.css_classes(["accent"]) // | `suggested-action`
|
||||||
.label("Send")
|
.label("Send")
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
use gtk::{prelude::BoxExt, Align, Box, Button, Label, Orientation};
|
use gtk::{prelude::BoxExt, Align, Box, Button, Label, Orientation};
|
||||||
|
|
||||||
const MARGIN: i32 = 8;
|
|
||||||
const SPACING: i32 = 8;
|
const SPACING: i32 = 8;
|
||||||
|
|
||||||
pub struct Widget {
|
pub struct Widget {
|
||||||
@ -13,7 +12,6 @@ impl Widget {
|
|||||||
// Init main widget
|
// Init main widget
|
||||||
let g_box = Box::builder()
|
let g_box = Box::builder()
|
||||||
.halign(Align::End)
|
.halign(Align::End)
|
||||||
.margin_bottom(MARGIN)
|
|
||||||
.orientation(Orientation::Horizontal)
|
.orientation(Orientation::Horizontal)
|
||||||
.spacing(SPACING)
|
.spacing(SPACING)
|
||||||
.build();
|
.build();
|
||||||
|
@ -28,6 +28,7 @@ impl Widget {
|
|||||||
let text_view = TextView::builder()
|
let text_view = TextView::builder()
|
||||||
.bottom_margin(MARGIN)
|
.bottom_margin(MARGIN)
|
||||||
.buffer(&buffer)
|
.buffer(&buffer)
|
||||||
|
.css_classes(["frame", "view"])
|
||||||
.extra_menu(&adapter.menu_model())
|
.extra_menu(&adapter.menu_model())
|
||||||
.left_margin(MARGIN)
|
.left_margin(MARGIN)
|
||||||
.right_margin(MARGIN)
|
.right_margin(MARGIN)
|
||||||
|
@ -1,7 +1,5 @@
|
|||||||
use gtk::{prelude::WidgetExt, Align, Label};
|
use gtk::{prelude::WidgetExt, Align, Label};
|
||||||
|
|
||||||
const MARGIN: i32 = 6;
|
|
||||||
|
|
||||||
pub struct Widget {
|
pub struct Widget {
|
||||||
pub label: Label,
|
pub label: Label,
|
||||||
}
|
}
|
||||||
@ -12,9 +10,6 @@ impl Widget {
|
|||||||
let label = Label::builder()
|
let label = Label::builder()
|
||||||
.css_classes(["heading"])
|
.css_classes(["heading"])
|
||||||
.halign(Align::Start)
|
.halign(Align::Start)
|
||||||
.margin_end(MARGIN)
|
|
||||||
.margin_start(MARGIN)
|
|
||||||
.margin_top(MARGIN)
|
|
||||||
.visible(false)
|
.visible(false)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
use adw::Clamp;
|
use adw::Clamp;
|
||||||
use gtk::{prelude::WidgetExt, Box};
|
use gtk::{prelude::WidgetExt, Box};
|
||||||
|
|
||||||
|
const MARGIN: i32 = 6;
|
||||||
|
|
||||||
pub struct Widget {
|
pub struct Widget {
|
||||||
pub clamp: Clamp,
|
pub clamp: Clamp,
|
||||||
}
|
}
|
||||||
@ -9,7 +11,8 @@ impl Widget {
|
|||||||
// Construct
|
// Construct
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
let clamp = Clamp::builder()
|
let clamp = Clamp::builder()
|
||||||
.css_classes(["osd"])
|
.margin_bottom(MARGIN)
|
||||||
|
.margin_top(MARGIN)
|
||||||
.maximum_size(800)
|
.maximum_size(800)
|
||||||
.visible(false)
|
.visible(false)
|
||||||
.build();
|
.build();
|
||||||
|
@ -33,7 +33,6 @@ impl Search {
|
|||||||
|
|
||||||
// Init main container
|
// Init main container
|
||||||
let g_box = Box::builder()
|
let g_box = Box::builder()
|
||||||
.css_classes(["osd"])
|
|
||||||
.homogeneous(true)
|
.homogeneous(true)
|
||||||
.orientation(Orientation::Horizontal)
|
.orientation(Orientation::Horizontal)
|
||||||
.valign(Align::Center)
|
.valign(Align::Center)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user