Add readme

pull/6/head
axtlos 2 years ago
parent 283bd9b2d0
commit 5e30e1142d

@ -0,0 +1,8 @@
# Jade GUI
The libadwaita/gtk based gui installer using jade as the backend
[![Please do not theme this app](https://stopthemingmy.app/badge.svg)](https://stopthemingmy.app)
![](placeholder)

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

@ -28,8 +28,24 @@ export const JadeGuiWindow = GObject.registerClass({
_init(application) { _init(application) {
super._init({ application }); super._init({ application });
this._quitButton.connect('clicked', () => { this._quitButton.connect('clicked', () => {
log('Quit!'); confirm_quit();
}); });
} }
}); });
function confirm_quit() {
const quitDialog = new Gtk.MessageDialog({
text: "Do you want to try\nCrystal without installing?",
transient_for: JadeGuiWindow,
modal: true,
buttons: Gtk.ButtonsType.Ok,
});
quitDialog.connect("response", () => {
quitDialog.close();
});
quitDialog.present();
}

Loading…
Cancel
Save