2022-08-14 18:15:09 +00:00
using Gtk 4.0;
using Adw 1;
2022-08-19 21:10:35 +00:00
template GradienceWelcomeWindow: Adw.Window {
2022-09-25 21:57:26 +00:00
title: _("Welcome to Gradience");
2022-09-25 17:33:59 +00:00
resizable: true;
2022-08-14 18:15:09 +00:00
deletable: true;
modal: true;
2022-08-30 17:30:51 +00:00
default-width: 500;
2022-08-30 17:07:30 +00:00
default-height: 500;
2022-08-14 18:15:09 +00:00
Adw.ToastOverlay toast_overlay {
Adw.Leaflet leaflet {
2022-09-22 08:49:30 +00:00
can-navigate-back: false;
2022-08-14 18:15:09 +00:00
can-unfold: false;
Gtk.Box main_view {
orientation: vertical;
Adw.HeaderBar titlebar {
2022-08-19 23:54:54 +00:00
styles ["flat"]
2022-08-14 18:15:09 +00:00
centering-policy: strict;
[title]
Adw.CarouselIndicatorDots {
styles ["flat"]
carousel: carousel;
orientation: horizontal;
}
}
Gtk.Overlay {
2022-08-19 21:10:35 +00:00
[overlay]
Gtk.Button btn_back {
2022-08-14 18:15:09 +00:00
styles ["circular"]
2022-09-21 19:39:45 +00:00
margin-start: 10;
2022-08-19 21:10:35 +00:00
icon-name: "go-previous-symbolic";
2022-08-14 18:15:09 +00:00
halign: start;
valign: center;
2022-08-19 21:10:35 +00:00
visible: false;
2022-08-14 18:15:09 +00:00
tooltip-text: _("Previous");
}
child: Adw.Carousel carousel {
vexpand: true;
hexpand: true;
allow-scroll-wheel: true;
allow-mouse-drag: true;
2022-08-30 17:30:51 +00:00
allow-long-swipes: false;
2022-09-21 19:39:45 +00:00
margin-start: 10;
margin-end: 10;
2022-08-14 18:15:09 +00:00
Gtk.Box {
orientation: vertical;
vexpand: true;
hexpand: true;
Gtk.Image img_welcome {
2022-08-19 19:14:05 +00:00
resource: "/com/github/GradienceTeam/Gradience/images/welcome.svg";
2022-08-30 17:07:30 +00:00
pixel-size: 256;
2022-08-14 18:15:09 +00:00
}
Adw.StatusPage page_welcome {
title: _("Welcome to Gradience");
2022-09-16 17:27:24 +00:00
description: _("Change the look of Adwaita, with ease");
2022-08-14 18:15:09 +00:00
}
}
2022-09-21 19:39:45 +00:00
Adw.StatusPage page_release {
2022-09-22 05:11:22 +00:00
icon-name: "software-update-available-symbolic";
2022-09-21 19:39:45 +00:00
title: _("What's new in 0.3.0");
2022-09-21 20:57:33 +00:00
description: _("In this release, we added plugin support, a plugin repository, badges, and a quick preset switcher. We also split the preset repository into an official repository and a curated reposoitory.");
2022-09-21 19:39:45 +00:00
}
2022-09-16 20:34:51 +00:00
Adw.StatusPage page_agreement {
vexpand: true;
hexpand: true;
icon-name: "dialog-warning-symbolic";
title: _("Warning");
2022-09-21 15:21:58 +00:00
description: _("Changing the colour scheme can negatively affect contrast and readability. Proceed with caution. Please do not report theming-related issues to app developers.");
2022-09-16 20:34:51 +00:00
Gtk.Button btn_agree {
styles ["suggested-action", "pill"]
2022-09-25 17:36:09 +00:00
label: _("I understand the consequences");
2022-09-16 20:34:51 +00:00
use-underline: true;
halign: center;
}
}
2022-08-19 21:28:32 +00:00
Adw.StatusPage page_gradience {
2022-08-14 18:15:09 +00:00
vexpand: true;
hexpand: true;
2022-08-20 00:19:17 +00:00
icon-name: "larger-brush-symbolic";
title: _("Customize Adwaita Theme");
2022-09-21 15:33:56 +00:00
description: _("Change colours of windows, buttons, lists and more, with advanced features like adding custom CSS");
2022-08-14 18:15:09 +00:00
}
Adw.StatusPage page_configure {
vexpand: true;
hexpand: true;
2022-09-21 15:33:56 +00:00
title: _("Configure Gradience");
description: _("Install adw-gtk3 theme for legacy applications and configure system for theming.");
2022-08-14 18:15:09 +00:00
Adw.PreferencesPage {
Adw.PreferencesGroup {
2022-08-20 16:34:24 +00:00
Adw.ActionRow configure_adw_gtk3 {
2022-09-21 15:33:56 +00:00
title: _("Legacy apps theming");
2022-08-31 23:42:19 +00:00
activatable-widget: switch_adw_gtk3;
2022-08-19 22:50:25 +00:00
[suffix]
2022-08-20 16:34:24 +00:00
Switch switch_adw_gtk3 {
2022-08-19 22:50:25 +00:00
valign: center;
2022-09-21 15:33:56 +00:00
tooltip-text: _("Install adw-gtk3 theme for legacy apps theming");
2022-08-19 22:50:25 +00:00
}
2022-08-14 18:15:09 +00:00
}
2022-08-20 16:25:39 +00:00
Adw.ActionRow configure_system {
2022-09-21 15:33:56 +00:00
title: _("System configuration");
2022-08-31 23:42:19 +00:00
activatable-widget: switch_system;
2022-08-20 16:25:39 +00:00
2022-08-19 22:50:25 +00:00
[suffix]
2022-08-20 16:25:39 +00:00
Switch switch_system {
2022-08-19 22:50:25 +00:00
valign: center;
2022-09-21 15:33:56 +00:00
tooltip-text: _("Configure system for theming, enables Flatpak theme override");
2022-08-19 22:50:25 +00:00
}
2022-08-14 18:15:09 +00:00
}
}
}
}
Adw.StatusPage page_download {
vexpand: true;
hexpand: true;
2022-08-31 23:42:19 +00:00
title: _("Installing Themes");
2022-09-16 17:27:24 +00:00
description: _("Please wait until theme will be installed.");
2022-08-14 18:15:09 +00:00
Gtk.Box {
orientation: vertical;
Gtk.Button btn_install {
styles ["suggested-action", "pill"]
label: _("Continue");
use-underline: true;
halign: center;
}
Gtk.ProgressBar progressbar {
halign: center;
2022-08-19 21:10:35 +00:00
visible: false;
2022-08-14 18:15:09 +00:00
margin-top: 24;
margin-bottom: 24;
}
}
}
Adw.StatusPage page_finish {
vexpand: true;
hexpand: true;
icon-name: "selection-mode-symbolic";
title: _("Done");
2022-09-16 17:27:24 +00:00
description: _("Now you can make your own presets or download some online.");
2022-08-14 18:15:09 +00:00
Gtk.Box {
orientation: vertical;
Gtk.Button label_skip {
2022-09-21 15:33:56 +00:00
label: _("Please finish the setup first");
2022-08-30 17:30:51 +00:00
margin-bottom: 24;
2022-08-19 21:10:35 +00:00
visible: true;
2022-08-14 18:15:09 +00:00
}
Gtk.Button btn_close {
styles ["suggested-action", "pill"]
label: _("Start using Gradience");
use-underline: true;
halign: center;
2022-08-19 21:50:21 +00:00
visible: true;
2022-08-14 18:15:09 +00:00
}
}
}
2022-08-19 21:10:35 +00:00
};
2022-08-14 18:15:09 +00:00
2022-08-19 21:10:35 +00:00
[overlay]
Gtk.Button btn_next {
2022-08-14 18:15:09 +00:00
styles ["circular", "suggested-action"]
2022-09-21 19:39:45 +00:00
margin-end: 10;
2022-08-19 21:10:35 +00:00
icon-name: "go-next-symbolic";
2022-08-14 18:15:09 +00:00
halign: end;
valign: center;
2022-08-19 21:10:35 +00:00
visible: false;
2022-08-14 18:15:09 +00:00
tooltip-text: _("Next");
}
}
}
}
}
2022-08-20 15:38:27 +00:00
}