import QtQuick
import QtQuick.Layouts
import ZShell.Config
import qs.Daemons
import qs.Components
import qs.Services

MaterialIcon {
	id: mic

	required property bool horizontal

	animate: true
	color: (Audio.sourceMuted ?? false) ? Colors.palette.m3error : Colors.palette.m3onSurface
	fill: 1
	font.pointSize: Tokens.font.size.larger
	text: Audio.sourceMuted ? "mic_off" : "mic"

	Behavior on Layout.maximumWidth {
		Anim {
		}
	}
	Behavior on opacity {
		Anim {
		}
	}
	Behavior on scale {
		Anim {
		}
	}
}
