Skip to content

Commit

Permalink
modalDialog.js: Add some support for old themes
Browse files Browse the repository at this point in the history
  • Loading branch information
fredcw authored Dec 25, 2024
1 parent 1f2538a commit 1367305
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion js/ui/modalDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ var ModalDialog = GObject.registerClass({
this.dialogLayout = new Dialog.Dialog(this.backgroundStack, params.styleClass);
this.contentLayout = this.dialogLayout.contentLayout;
this.buttonLayout = this.dialogLayout.buttonLayout;
this.dialogLayout._dialog.add_style_class_name("modal-dialog"); // temporarily add some support for old themes
this.buttonLayout.add_style_class_name("modal-dialog-button-box"); // temporarily add some support for old themes

this.openAndCloseTime = 100;
let enableRadialEffect = true;
Expand Down Expand Up @@ -188,7 +190,9 @@ var ModalDialog = GObject.registerClass({
}

addButton(buttonInfo) {
return this.dialogLayout.addButton(buttonInfo);
const button = this.dialogLayout.addButton(buttonInfo);
button.add_style_class_name("modal-dialog-button"); // temporarily add some support for old themes
return button;
}

_fadeOpen() {
Expand Down

0 comments on commit 1367305

Please sign in to comment.