fenty cart
This commit is contained in:
parent
10e36bcce0
commit
9de4979878
|
@ -122,12 +122,10 @@ function Volume() {
|
||||||
|
|
||||||
|
|
||||||
function BatteryLabel() {
|
function BatteryLabel() {
|
||||||
const value = battery.bind("percent").as(p => p > 0 ? p / 100 : 0)
|
const value = battery.percent();
|
||||||
// const icon = battery.bind("percent").as(p =>
|
// const icon = battery.bind("percent").as(p =>
|
||||||
// `battery-level-${Math.floor(p / 10) * 10}-symbolic`)
|
// `battery-level-${Math.floor(p / 10) * 10}-symbolic`)
|
||||||
|
|
||||||
console.log(value);
|
|
||||||
|
|
||||||
return Widget.Box({
|
return Widget.Box({
|
||||||
class_name: "battery",
|
class_name: "battery",
|
||||||
visible: battery.bind("available"),
|
visible: battery.bind("available"),
|
||||||
|
|
Loading…
Reference in a new issue