audioDeviceSelection: Adapt to new dialog design
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/962
This commit is contained in:
parent
7388e4006a
commit
eec25367fc
@ -212,21 +212,8 @@
|
|||||||
|
|
||||||
/* Audio selection dialog */
|
/* Audio selection dialog */
|
||||||
.audio-device-selection-dialog {
|
.audio-device-selection-dialog {
|
||||||
spacing: 30px;
|
.modal-dialog-content-box { margin-bottom: 28px; }
|
||||||
}
|
.audio-selection-box { spacing: 20px; }
|
||||||
|
|
||||||
.audio-selection-content {
|
|
||||||
spacing: 20px;
|
|
||||||
padding: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.audio-selection-title {
|
|
||||||
font-weight: bold;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.audio-selection-box {
|
|
||||||
spacing: 20px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.audio-selection-device {
|
.audio-selection-device {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/* exported AudioDeviceSelectionDBus */
|
/* exported AudioDeviceSelectionDBus */
|
||||||
const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
|
const { Clutter, Gio, GLib, GObject, Meta, Shell, St } = imports.gi;
|
||||||
|
|
||||||
|
const Dialog = imports.ui.dialog;
|
||||||
const Main = imports.ui.main;
|
const Main = imports.ui.main;
|
||||||
const ModalDialog = imports.ui.modalDialog;
|
const ModalDialog = imports.ui.modalDialog;
|
||||||
|
|
||||||
@ -36,18 +37,17 @@ var AudioDeviceSelectionDialog = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
_buildLayout() {
|
_buildLayout() {
|
||||||
let title = new St.Label({ style_class: 'audio-selection-title',
|
let content = new Dialog.MessageDialogContent({
|
||||||
text: _("Select Audio Device"),
|
title: _('Select Audio Device'),
|
||||||
x_align: Clutter.ActorAlign.CENTER });
|
});
|
||||||
|
|
||||||
this.contentLayout.style_class = 'audio-selection-content';
|
|
||||||
this.contentLayout.add(title);
|
|
||||||
|
|
||||||
this._selectionBox = new St.BoxLayout({
|
this._selectionBox = new St.BoxLayout({
|
||||||
style_class: 'audio-selection-box',
|
style_class: 'audio-selection-box',
|
||||||
x_expand: true,
|
x_expand: true,
|
||||||
});
|
});
|
||||||
this.contentLayout.add_child(this._selectionBox);
|
content.add_child(this._selectionBox);
|
||||||
|
|
||||||
|
this.contentLayout.add_child(content);
|
||||||
|
|
||||||
if (Main.sessionMode.allowSettings) {
|
if (Main.sessionMode.allowSettings) {
|
||||||
this.addButton({ action: this._openSettings.bind(this),
|
this.addButton({ action: this._openSettings.bind(this),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user