Added workspaces, window titles, volume, bluetooth, systray and date/time modules to the panel
This commit is contained in:
15
modules/shared/barItemBox.js
Normal file
15
modules/shared/barItemBox.js
Normal file
@@ -0,0 +1,15 @@
|
||||
export const BarItemBox = (child) => {
|
||||
const computeVisible = () => {
|
||||
if (Object.hasOwnProperty.call(child, "isVis")) {
|
||||
return child.isVis.bind("value");
|
||||
}
|
||||
|
||||
return child.isVisible;
|
||||
}
|
||||
|
||||
return Widget.Box({
|
||||
class_name: "bar_item_box_visible",
|
||||
child: child.component,
|
||||
visible: computeVisible()
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user