mirror of
https://github.com/13hannes11/toolbx-tuner.git
synced 2024-09-03 23:21:00 +02:00
transfer styling from old application
This commit is contained in:
@@ -100,6 +100,7 @@ impl Component for App {
|
|||||||
|
|
||||||
#[local_ref]
|
#[local_ref]
|
||||||
container_box -> gtk::ListBox {
|
container_box -> gtk::ListBox {
|
||||||
|
set_size_request: (200, -1),
|
||||||
set_selection_mode: gtk::SelectionMode::None,
|
set_selection_mode: gtk::SelectionMode::None,
|
||||||
set_valign: Align::Start,
|
set_valign: Align::Start,
|
||||||
set_margin_all: 30,
|
set_margin_all: 30,
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ use relm4::adw::prelude::ActionRowExt;
|
|||||||
use relm4::adw::prelude::PreferencesRowExt;
|
use relm4::adw::prelude::PreferencesRowExt;
|
||||||
use relm4::factory::{FactoryComponent, FactorySender};
|
use relm4::factory::{FactoryComponent, FactorySender};
|
||||||
use relm4::gtk;
|
use relm4::gtk;
|
||||||
|
use relm4::gtk::prelude::WidgetExt;
|
||||||
use relm4_icons::icon_names;
|
use relm4_icons::icon_names;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
@@ -36,13 +37,25 @@ impl FactoryComponent for Container {
|
|||||||
add_prefix = >k::Button {
|
add_prefix = >k::Button {
|
||||||
// TODO: make component with state that either is waiting, play or pause
|
// TODO: make component with state that either is waiting, play or pause
|
||||||
set_icon_name: icon_names::PLAY,
|
set_icon_name: icon_names::PLAY,
|
||||||
|
set_margin_top: 10,
|
||||||
|
set_margin_bottom: 10,
|
||||||
|
set_css_classes: &["circular"],
|
||||||
connect_clicked => ContainerMsg::Start,
|
connect_clicked => ContainerMsg::Start,
|
||||||
},
|
},
|
||||||
|
|
||||||
#[name(add_button)]
|
add_suffix = >k::Box{
|
||||||
add_suffix = >k::Button {
|
gtk::AspectFrame{
|
||||||
set_icon_name: icon_names::TERMINAL,
|
set_ratio: 1.0,
|
||||||
connect_clicked => ContainerMsg::Start,
|
#[name(add_button)]
|
||||||
|
gtk::Button {
|
||||||
|
set_icon_name: icon_names::TERMINAL,
|
||||||
|
set_margin_start: 10,
|
||||||
|
set_margin_top: 10,
|
||||||
|
set_margin_bottom: 10,
|
||||||
|
set_css_classes: &["flat"],
|
||||||
|
connect_clicked => ContainerMsg::Start,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user