remove deprecated classes

This commit is contained in:
yggverse 2024-12-19 18:52:46 +02:00
parent effb833cd6
commit 4132d734f9
6 changed files with 6 additions and 10 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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)

View File

@ -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();

View File

@ -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();

View File

@ -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)