[AGS] Improve brightness controls
This commit is contained in:
		| @@ -11,28 +11,27 @@ export const BatteryBox = () => { | ||||
|         <box | ||||
|             cssClasses={["battery-info"]} | ||||
|             visible={bind(battery, "isBattery")} | ||||
|         > | ||||
|             <box cssClasses={["battery-box"]}> | ||||
|                 <image | ||||
|                     iconName={bind(battery, "batteryIconName")} | ||||
|                     tooltipText={bind(battery, "energyRate").as(er => | ||||
|                         batteryEnergy(er), | ||||
|                     )} | ||||
|                 /> | ||||
|                 <label | ||||
|                     label={bind(battery, "percentage").as( | ||||
|                         p => ` ${Math.round(p * 100)}%`, | ||||
|                     )} | ||||
|                 /> | ||||
|                 <label | ||||
|                     cssClasses={["time"]} | ||||
|                     hexpand={true} | ||||
|                     halign={Gtk.Align.END} | ||||
|                     visible={bind(battery, "charging").as(c => !c)} | ||||
|                     label={bind(battery, "timeToEmpty").as(t => toTime(t))} | ||||
|                 /> | ||||
|             </box> | ||||
|         </box> | ||||
|             child={ | ||||
|                 <box cssClasses={["battery-box"]}> | ||||
|                     <image | ||||
|                         iconName={bind(battery, "batteryIconName")} | ||||
|                         tooltipText={bind(battery, "energyRate").as(er => | ||||
|                             batteryEnergy(er), | ||||
|                         )} | ||||
|                     /> | ||||
|                     <label | ||||
|                         label={bind(battery, "percentage").as( | ||||
|                             p => ` ${Math.round(p * 100)}%`, | ||||
|                         )} | ||||
|                     /> | ||||
|                     <label | ||||
|                         cssClasses={["time"]} | ||||
|                         visible={bind(battery, "charging").as(c => !c)} | ||||
|                         label={bind(battery, "timeToEmpty").as(t => `(${toTime(t)})`)} | ||||
|                     /> | ||||
|                 </box> | ||||
|             } | ||||
|         ></box> | ||||
|     ); | ||||
| }; | ||||
|  | ||||
|   | ||||
| @@ -59,4 +59,8 @@ window.Bar { | ||||
|       padding: 0; | ||||
|     } | ||||
|   } | ||||
|    | ||||
|   .quick-view-symbol { | ||||
|     margin: 3px; | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user