mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-16 14:21:03 +02:00
fix(networkmanager, upower): widget not vertical on left/right bars
This commit is contained in:
parent
e7ffc3704c
commit
a181d4e257
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ use color_eyre::Result;
|
|||
use futures_lite::StreamExt;
|
||||
use futures_signals::signal::SignalExt;
|
||||
use gtk::prelude::ContainerExt;
|
||||
use gtk::{Box as GtkBox, Image, Orientation};
|
||||
use gtk::{Box as GtkBox, Image};
|
||||
use serde::Deserialize;
|
||||
use tokio::sync::mpsc::Receiver;
|
||||
|
||||
|
@ -57,7 +57,7 @@ impl Module<GtkBox> for NetworkManagerModule {
|
|||
context: WidgetContext<ClientState, ()>,
|
||||
info: &ModuleInfo,
|
||||
) -> Result<ModuleParts<GtkBox>> {
|
||||
let container = GtkBox::new(Orientation::Horizontal, 0);
|
||||
let container = GtkBox::new(info.bar_position.orientation(), 0);
|
||||
let icon = Image::new();
|
||||
icon.add_class("icon");
|
||||
container.add(&icon);
|
||||
|
|
|
@ -175,7 +175,7 @@ impl Module<gtk::Button> for UpowerModule {
|
|||
.build();
|
||||
label.add_class("label");
|
||||
|
||||
let container = gtk::Box::new(Orientation::Horizontal, 5);
|
||||
let container = gtk::Box::new(info.bar_position.orientation(), 5);
|
||||
container.add_class("contents");
|
||||
|
||||
let button = Button::new();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue