Gradience/data/ui/welcome_window.blp

204 lines
8.1 KiB
Text
Raw Normal View History

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"]
2023-02-24 00:13:43 +00:00
margin-start: 12;
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-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";
pixel-size: 300;
2022-08-14 18:15:09 +00:00
}
Adw.StatusPage page_welcome {
title: _("Welcome to Gradience");
description: _("Change the look of Adwaita, with ease");
2022-08-14 18:15:09 +00:00
}
}
Adw.StatusPage page_release {
icon-name: "software-update-available-symbolic";
title: _("What's new in 0.8.0");
description: _("In this release, we added GNOME Shell theming support and reworked how Gradience work internally.");
}
2022-09-16 20:34:51 +00:00
Adw.StatusPage page_agreement {
vexpand: true;
hexpand: true;
icon-name: "dialog-warning-symbolic";
title: _("Warning");
description: _("Changing the color 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"]
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");
description: _("Change colors 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 {
title: _("Legacy Apps Theming");
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 {
title: _("System Configuration");
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;
title: _("Installing Themes");
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");
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");
2022-08-14 18:15:09 +00:00
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"]
2023-02-24 00:13:43 +00:00
margin-end: 12;
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
}