mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 10:41:03 +02:00
feat(music): add css selector for button contents
This commit is contained in:
parent
bc87c7f0d4
commit
2a155b9aa8
2 changed files with 7 additions and 1 deletions
|
@ -154,7 +154,12 @@ impl Module<Button> for MusicModule {
|
|||
info: &ModuleInfo,
|
||||
) -> Result<ModuleWidget<Button>> {
|
||||
let button = Button::new();
|
||||
let button_contents = gtk::Box::new(Orientation::Horizontal, 5);
|
||||
let button_contents = gtk::Box::builder()
|
||||
.orientation(Orientation::Horizontal)
|
||||
.spacing(5)
|
||||
.name("contents")
|
||||
.build();
|
||||
|
||||
button.add(&button_contents);
|
||||
|
||||
let icon_play = new_icon_label(&self.icons.play, info.icon_theme, self.icon_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue