61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
|
using Gtk 4.0;
|
||
|
using Adw 1;
|
||
|
|
||
|
menu menu {
|
||
|
section {
|
||
|
item {
|
||
|
action: "app.about";
|
||
|
label: "About Realms";
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
template $RealmsWindow : Adw.ApplicationWindow {
|
||
|
default-width: 1000;
|
||
|
default-height: 640;
|
||
|
|
||
|
/* 'width-request and 'height-request' declare minimum window size */
|
||
|
width-request: 400;
|
||
|
height-request: 300;
|
||
|
|
||
|
title: "Realms";
|
||
|
|
||
|
Adw.NavigationView navView {
|
||
|
|
||
|
Adw.NavigationPage {
|
||
|
title: "Realms";
|
||
|
tag: "main";
|
||
|
Adw.ToolbarView {
|
||
|
[top]
|
||
|
Adw.HeaderBar header {
|
||
|
title-widget: Adw.WindowTitle {
|
||
|
title: "Realms";
|
||
|
};
|
||
|
[end]
|
||
|
MenuButton {
|
||
|
can-focus: false;
|
||
|
primary: true;
|
||
|
menu-model: menu;
|
||
|
icon-name: "open-menu-symbolic";
|
||
|
}
|
||
|
}
|
||
|
content: Paned {
|
||
|
resize-end-child: true;
|
||
|
resize-start-child: false;
|
||
|
shrink-start-child: false;
|
||
|
$RealmsView realmsView {}
|
||
|
$RealmInfo {
|
||
|
realm: bind realmsView.selected-realm;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$ConfigureRealm configureRealm {
|
||
|
navigation-view: navView;
|
||
|
colorscheme-chooser: colorChooser;
|
||
|
}
|
||
|
|
||
|
$ColorSchemeChooser colorChooser {}
|
||
|
}
|
||
|
}
|