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
8 changes: 4 additions & 4 deletions data/indicator.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
100% { -gtk-icon-source: -gtk-icontheme("indicator-microphone-muted-symbolic"); }
}

menuitem .image-button,
device-manager .image-button,
player-row .image-button {
background: alpha(@text_color, 0.1);
border: none;
Expand All @@ -39,18 +39,18 @@ player-row .image-button {
min-width: 2.1666rem; /* 26px */
}

menuitem .image-button.toggle,
device-manager .image-button.toggle,
player-row .image-button.toggle {
border-radius: 1em;
}

menuitem .image-button:checked,
device-manager .image-button:checked,
player-row .image-button:checked {
background: @selected_bg_color;
color: @selected_fg_color;
}

menuitem .image-button:disabled,
device-manager .image-button:disabled,
player-row .image-button:disabled {
background: @insensitive_bg_color;
}
1 change: 0 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ shared_module(
'src/Widgets/Scale.vala',
'src/Widgets/PlayerRow.vala',
'src/Widgets/PlayerList.vala',
'src/Widgets/DeviceManagerWidget.vala',
'src/Widgets/DeviceItem.vala',
'src/Services/PulseAudioManager.vala',
'src/Services/MprisClient.vala',
Expand Down
23 changes: 6 additions & 17 deletions src/Indicator.vala
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ public class Sound.Indicator : Wingpanel.Indicator {
private Widgets.PlayerList mpris;
private Widgets.Scale volume_scale;
private Widgets.Scale mic_scale;
private Widgets.DeviceManagerWidget output_device_manager;
private Widgets.DeviceManagerWidget input_device_manager;
private Gtk.Separator mic_separator;
private Notify.Notification? notification;
private Services.VolumeControlPulse volume_control;
Expand Down Expand Up @@ -103,13 +101,6 @@ public class Sound.Indicator : Wingpanel.Indicator {
volume_control.notify["volume"].connect (update_tooltip);
volume_control.notify["mute"].connect (update_tooltip);

output_device_manager = new Widgets.DeviceManagerWidget () {
direction = OUTPUT
};
input_device_manager = new Widgets.DeviceManagerWidget () {
direction = INPUT
};

Notify.init ("wingpanel-indicator-sound");

settings.notify["max-volume"].connect (set_max_volume);
Expand All @@ -127,9 +118,13 @@ public class Sound.Indicator : Wingpanel.Indicator {
volume_adjustment = new Gtk.Adjustment (0, 0, max_volume, 0.01, 0, 0);
mic_adjustment = new Gtk.Adjustment (0, 0, 1, 0.01, 0, 0);

volume_scale = new Widgets.Scale ("audio-volume-high-symbolic", volume_adjustment);
volume_scale = new Widgets.Scale ("audio-volume-high-symbolic", volume_adjustment) {
direction = OUTPUT
};

mic_scale = new Widgets.Scale ("indicator-microphone-symbolic", mic_adjustment);
mic_scale = new Widgets.Scale ("indicator-microphone-symbolic", mic_adjustment) {
direction = INPUT
};

ca_context = CanberraGtk.context_get ();
ca_context.change_props (Canberra.PROP_APPLICATION_NAME, "indicator-sound",
Expand Down Expand Up @@ -357,16 +352,12 @@ public class Sound.Indicator : Wingpanel.Indicator {
mic_scale.show_all ();
mic_separator.no_show_all = false;
mic_separator.show ();
input_device_manager.no_show_all = false;
input_device_manager.show ();
display_widget.show_mic = true;
} else {
mic_scale.no_show_all = true;
mic_scale.hide ();
mic_separator.no_show_all = true;
mic_separator.hide ();
input_device_manager.no_show_all = true;
input_device_manager.hide ();
display_widget.show_mic = false;
}
}
Expand Down Expand Up @@ -431,11 +422,9 @@ public class Sound.Indicator : Wingpanel.Indicator {
main_box.add (new Gtk.Separator (Gtk.Orientation.HORIZONTAL));
}
main_box.add (volume_scale);
main_box.add (output_device_manager);
if (is_in_session) {
main_box.add (new Gtk.Separator (Gtk.Orientation.HORIZONTAL));
main_box.add (mic_scale);
main_box.add (input_device_manager);
main_box.add (mic_separator);
main_box.add (settings_button);
}
Expand Down
135 changes: 0 additions & 135 deletions src/Widgets/DeviceManagerWidget.vala

This file was deleted.

Loading