mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
feat: Add orientation and direction support for sys info
This commit is contained in:
parent
70b2c592b2
commit
44be58594b
10 changed files with 66 additions and 36 deletions
|
@ -1,5 +1,4 @@
|
|||
use glib::Propagation;
|
||||
use gtk::Orientation;
|
||||
use std::cell::Cell;
|
||||
use std::ops::Neg;
|
||||
|
||||
|
@ -48,9 +47,7 @@ impl CustomWidget for SliderWidget {
|
|||
fn into_widget(self, context: CustomWidgetContext) -> Self::Widget {
|
||||
let scale = build!(self, Self::Widget);
|
||||
|
||||
scale.set_orientation(
|
||||
Orientation::from(self.orientation),
|
||||
);
|
||||
scale.set_orientation(self.orientation.into());
|
||||
|
||||
if let Some(length) = self.length {
|
||||
set_length(&scale, length, context.bar_orientation);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue