2024-11-03 23:35:53 -05:00
|
|
|
import { bind } from 'astal';
|
|
|
|
|
|
|
|
import Brightness from '../../../services/brightness';
|
|
|
|
|
|
|
|
export default () => {
|
2024-11-20 23:38:41 -05:00
|
|
|
const brightness = Brightness.get_default();
|
|
|
|
|
2024-11-03 23:35:53 -05:00
|
|
|
return (
|
|
|
|
<box className="bar-item brightness">
|
|
|
|
<overlay>
|
|
|
|
<circularprogress
|
|
|
|
startAt={0.75}
|
|
|
|
endAt={0.75}
|
2024-11-20 23:38:41 -05:00
|
|
|
value={bind(brightness, 'screen')}
|
2024-11-03 23:35:53 -05:00
|
|
|
rounded
|
|
|
|
/>
|
|
|
|
|
2024-11-20 23:38:41 -05:00
|
|
|
<icon icon={bind(brightness, 'screenIcon')} />
|
2024-11-03 23:35:53 -05:00
|
|
|
</overlay>
|
|
|
|
</box>
|
|
|
|
);
|
|
|
|
};
|