status/volume: Split indicator into output and input
Use the new privacy indicator class for the input one and move it next to the other privacy indicators. While on it move all privacy indicators to the front, following the system-status-indicators mockup. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2840>
This commit is contained in:
@ -388,7 +388,8 @@ class QuickSettings extends PanelMenu.Button {
|
||||
}
|
||||
|
||||
this._system = new SystemStatus.Indicator();
|
||||
this._volume = new VolumeStatus.Indicator();
|
||||
this._volumeOutput = new VolumeStatus.OutputIndicator();
|
||||
this._volumeInput = new VolumeStatus.InputIndicator();
|
||||
this._brightness = new BrightnessStatus.Indicator();
|
||||
this._remoteAccess = new RemoteAccessStatus.RemoteAccessApplet();
|
||||
this._location = new LocationStatus.Indicator();
|
||||
@ -401,10 +402,11 @@ class QuickSettings extends PanelMenu.Button {
|
||||
this._unsafeMode = new UnsafeModeIndicator();
|
||||
this._backgroundApps = new BackgroundAppsStatus.Indicator();
|
||||
|
||||
this._indicators.add_child(this._brightness);
|
||||
this._indicators.add_child(this._remoteAccess);
|
||||
this._indicators.add_child(this._thunderbolt);
|
||||
this._indicators.add_child(this._volumeInput);
|
||||
this._indicators.add_child(this._location);
|
||||
this._indicators.add_child(this._brightness);
|
||||
this._indicators.add_child(this._thunderbolt);
|
||||
this._indicators.add_child(this._nightLight);
|
||||
if (this._network)
|
||||
this._indicators.add_child(this._network);
|
||||
@ -414,12 +416,13 @@ class QuickSettings extends PanelMenu.Button {
|
||||
this._indicators.add_child(this._bluetooth);
|
||||
this._indicators.add_child(this._rfkill);
|
||||
this._indicators.add_child(this._autoRotate);
|
||||
this._indicators.add_child(this._volume);
|
||||
this._indicators.add_child(this._volumeOutput);
|
||||
this._indicators.add_child(this._unsafeMode);
|
||||
this._indicators.add_child(this._system);
|
||||
|
||||
this._addItems(this._system.quickSettingsItems, N_QUICK_SETTINGS_COLUMNS);
|
||||
this._addItems(this._volume.quickSettingsItems, N_QUICK_SETTINGS_COLUMNS);
|
||||
this._addItems(this._volumeOutput.quickSettingsItems, N_QUICK_SETTINGS_COLUMNS);
|
||||
this._addItems(this._volumeInput.quickSettingsItems, N_QUICK_SETTINGS_COLUMNS);
|
||||
this._addItems(this._brightness.quickSettingsItems, N_QUICK_SETTINGS_COLUMNS);
|
||||
|
||||
this._addItems(this._remoteAccess.quickSettingsItems);
|
||||
|
Reference in New Issue
Block a user