Files
z-bar-qt/Modules/Bar/Components/StatusIcons/MicWidget.qml
T

29 lines
495 B
QML

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
fontStyle: Tokens.font.icon.small
text: Audio.sourceMuted ? "mic_off" : "mic"
Behavior on Layout.maximumWidth {
Anim {}
}
Behavior on opacity {
Anim {}
}
Behavior on scale {
Anim {}
}
}