import QtQuick
import QtQuick.Layouts
import Quickshell
import qs.Commons
import qs.Services
import qs.Widgets

NIconButton {
  id: root

  property ShellScreen screen
  property real scaling: 1.0

  sizeRatio: 0.8

  icon: "coffee"
  tooltipText: IdleInhibitorService.isInhibited ? "Disable keep awake" : "Enable keep awake"
  colorBg: Color.mSurfaceVariant
  colorFg: IdleInhibitorService.isInhibited ? Color.mPrimary : Color.mOnSurface
  colorBorder: Color.transparent
  onClicked: {
    IdleInhibitorService.manualToggle()
  }
}
