Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion data/indicator.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,32 @@
*/

.mic-icon {
animation: none;
animation: microphone-recording 1s ease-in-out infinite;
animation-direction: alternate;
border-radius: 100px;
min-width: 24px;
opacity: 1;
padding: 1px;
transition: none;
-gtk-icon-source: -gtk-icontheme("audio-input-microphone-symbolic");
}

.mic-icon.disabled {
animation: microphone-disabled 160ms cubic-bezier(0.4, 0.0, 0.2, 1);
animation-direction: normal;
min-height: 24px;
-gtk-icon-source: -gtk-icontheme("microphone-sensitivity-muted-symbolic");
}

@keyframes microphone-recording {
0% {
background: alpha(@BLUEBERRY_500, 0.5);
}
100% {
background: alpha(@BLUEBERRY_500, 0.8);
}
}

@keyframes microphone-disabled {
0% { -gtk-icon-source: -gtk-icontheme("audio-input-microphone-symbolic"); }
10% { -gtk-icon-source: -gtk-icontheme("microphone-sensitivity-muted-10-symbolic"); opacity: 0.94; }
Expand Down
1 change: 1 addition & 0 deletions src/Widgets/DisplayWidget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public class DisplayWidget : Gtk.Grid {
volume_icon.pixel_size = 24;

var mic_icon = new Gtk.Spinner ();
mic_icon.valign = Gtk.Align.CENTER;
mic_icon.margin_end = 18;

var mic_style_context = mic_icon.get_style_context ();
Expand Down