an-anime-game-launcher/assets/ui/main.blp
Observer KRypt0n_ 002c77a9c1
Several changes
- updated core library and components library
- added (likely working) updates pre-downloading functionality
- moved to `anyhow::Result` in lots of places
2022-09-26 15:08:29 +02:00

157 lines
4.6 KiB
Text

using Gtk 4.0;
using Adw 1;
Adw.ApplicationWindow window {
default-width: 900;
default-height: 600;
content: Adw.ToastOverlay toast_overlay {
Adw.Leaflet leaflet {
can-navigate-back: true;
can-unfold: false;
Gtk.Box {
orientation: vertical;
hexpand: true;
Adw.HeaderBar {
title-widget: Adw.WindowTitle {
title: "An Anime Game Launcher";
};
[end]
Gtk.MenuButton menu {
menu-model: app_menu;
icon-name: "open-menu-symbolic";
halign: end;
valign: center;
margin-start: 12;
}
}
Adw.StatusPage status_page {
icon-name: "image-loading-symbolic";
title: "Loading data";
vexpand: true;
}
Adw.PreferencesPage launcher_content {
visible: false;
Adw.PreferencesGroup {
Gtk.Image icon {
resource: "/org/app/assets/images/icon.png";
vexpand: true;
margin-top: 48;
}
Gtk.Label {
label: "An Anime Game Launcher";
margin-top: 32;
styles ["title-1"]
}
}
Adw.PreferencesGroup launch_game_group {
vexpand: true;
valign: center;
Gtk.Box {
halign: center;
margin-top: 64;
spacing: 8;
Gtk.Button predownload_game {
icon-name: "document-save-symbolic";
tooltip-text: "Pre-download 3.1.0 update (15 GB)";
hexpand: false;
visible: false;
styles ["warning"]
}
Gtk.Button launch_game {
label: "Launch";
hexpand: false;
width-request: 200;
styles ["suggested-action"]
}
Gtk.Button open_preferences {
icon-name: "emblem-system-symbolic";
}
}
}
Adw.PreferencesGroup progress_bar_group {
vexpand: true;
valign: center;
visible: false;
Gtk.Box {
halign: center;
margin-top: 64;
spacing: 20;
Gtk.ProgressBar progress_bar {
show-text: true;
width-request: 360;
valign: center;
}
Gtk.Button {
label: "Pause";
sensitive: false;
tooltip-text: "Work in progress";
}
}
}
}
}
}
};
}
Adw.AboutWindow about {
application-name: "An Anime Game Launcher";
application-icon: "moe.launcher.an-anime-game-launcher-gtk";
website: "https://github.com/an-anime-team/an-anime-game-launcher-gtk";
issue-url: "https://github.com/an-anime-team/an-anime-game-launcher-gtk/issues";
modal: true;
transient-for: window;
}
menu app_menu {
section {
submenu {
label: "Open";
item {
label: "Launcher folder";
action: "open-launcher-folder.open-launcher-folder";
}
item {
label: "Game folder";
action: "open-game-folder.open-game-folder";
}
item {
label: "Config file";
action: "open-config-file.open-config-file";
}
}
}
section {
item ("About", "show-about-dialog.show-about-dialog")
}
}