diff --git a/src/app/browser/window/tab/item/page/input/response/control/send/widget.rs b/src/app/browser/window/tab/item/page/input/response/control/send/widget.rs index d8b376c4..326a28fe 100644 --- a/src/app/browser/window/tab/item/page/input/response/control/send/widget.rs +++ b/src/app/browser/window/tab/item/page/input/response/control/send/widget.rs @@ -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(); diff --git a/src/app/browser/window/tab/item/page/input/response/control/widget.rs b/src/app/browser/window/tab/item/page/input/response/control/widget.rs index a878771d..427205c2 100644 --- a/src/app/browser/window/tab/item/page/input/response/control/widget.rs +++ b/src/app/browser/window/tab/item/page/input/response/control/widget.rs @@ -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(); diff --git a/src/app/browser/window/tab/item/page/input/response/form/widget.rs b/src/app/browser/window/tab/item/page/input/response/form/widget.rs index e5be15b6..56ae6216 100644 --- a/src/app/browser/window/tab/item/page/input/response/form/widget.rs +++ b/src/app/browser/window/tab/item/page/input/response/form/widget.rs @@ -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) diff --git a/src/app/browser/window/tab/item/page/input/response/title/widget.rs b/src/app/browser/window/tab/item/page/input/response/title/widget.rs index d38f0177..2bcb3c5a 100644 --- a/src/app/browser/window/tab/item/page/input/response/title/widget.rs +++ b/src/app/browser/window/tab/item/page/input/response/title/widget.rs @@ -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(); diff --git a/src/app/browser/window/tab/item/page/input/widget.rs b/src/app/browser/window/tab/item/page/input/widget.rs index 97c9e753..0032d7e2 100644 --- a/src/app/browser/window/tab/item/page/input/widget.rs +++ b/src/app/browser/window/tab/item/page/input/widget.rs @@ -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(); diff --git a/src/app/browser/window/tab/item/page/search.rs b/src/app/browser/window/tab/item/page/search.rs index 65245b14..b99785ea 100644 --- a/src/app/browser/window/tab/item/page/search.rs +++ b/src/app/browser/window/tab/item/page/search.rs @@ -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)