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