Gradience/data/ui/welcome.blp

181 lines
6.8 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-08-14 18:15:09 +00:00
resizable: false;
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 {
can-navigate-back: true;
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"]
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";
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");
description: _("Customize Adwaita with ease");
}
}
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-08-14 18:15:09 +00:00
description: _("Change colors of windows, buttons, lists and more with advanced features like adding custom CSS");
}
Adw.StatusPage page_configure {
vexpand: true;
hexpand: true;
title: _("Configure Themes");
2022-08-14 18:15:09 +00:00
description: _("Install adw-gtk3 theme for legacy applications.");
Adw.PreferencesPage {
Adw.PreferencesGroup {
2022-08-20 16:34:24 +00:00
Adw.ActionRow configure_adw_gtk3 {
2022-08-20 16:25:39 +00:00
title: _("adw-gtk3 theme");
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;
tooltip-text: _("Allow installation");
}
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;
tooltip-text: _("Allow installation");
}
2022-08-14 18:15:09 +00:00
}
}
}
}
Adw.StatusPage page_download {
vexpand: true;
hexpand: true;
title: _("Installing Themes");
description: _("Please wait until themes 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.");
Gtk.Box {
orientation: vertical;
Gtk.Button label_skip {
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-08-19 23:55:55 +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
}