Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to Blueprint #204

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ debian/.debhelper
*.pyc
/localbuild
.buildconfig
install/
install/
/subprojects/blueprint-compiler
8 changes: 8 additions & 0 deletions subprojects/blueprint-compiler.wrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[wrap-git]
directory = blueprint-compiler
url = https://gitlab.gnome.org/jwestman/blueprint-compiler.git
revision = v0.10.1
depth = 1

[provide]
program_names = blueprint-compiler
22 changes: 22 additions & 0 deletions vanilla_first_setup/gtk/default-conn-check.blp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using Gtk 4.0;

template $VanillaDefaultConnCheck : $AdwBin {
halign: "fill";
valign: "fill";
hexpand: "true";

$AdwStatusPage status_page {
icon-name: "content-loading-symbolic";
title: _("Checking Connection…");
description: _("Please wait until the connection check is done.");

Button btn_recheck {
label: "Check Again";
halign: center;

styles [
"pill",
]
}
}
}
26 changes: 0 additions & 26 deletions vanilla_first_setup/gtk/default-conn-check.ui

This file was deleted.

36 changes: 36 additions & 0 deletions vanilla_first_setup/gtk/default-hostname.blp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using Gtk 4.0;

template $VanillaDefaultHostname : $AdwBin {
halign: "fill";
valign: "center";
hexpand: "true";

Box {
orientation: vertical;

$AdwStatusPage status_page {
icon-name: "computer-symbolic";
title: _("Device Details");
description: _("Provide details about your device");

$AdwPreferencesPage {
$AdwPreferencesGroup {
$AdwEntryRow hostname_entry {
title: _("Device Name");
input-purpose: "name";
}
}
}
}

Button btn_next {
halign: center;
label: _("Next");

styles [
"pill",
"suggested-action",
]
}
}
}
45 changes: 0 additions & 45 deletions vanilla_first_setup/gtk/default-hostname.ui

This file was deleted.

55 changes: 55 additions & 0 deletions vanilla_first_setup/gtk/default-theme.blp
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
using Gtk 4.0;

template $VanillaDefaultTheme : Box {
orientation: vertical;
halign: fill;
valign: center;
hexpand: true;

Box {
valign: center;
spacing: 10;
halign: center;

CheckButton btn_default {
tooltip-text: _("Default");
halign: center;
active: true;

styles [
"theme-selector",
"light",
"card",
]
}

CheckButton btn_dark {
tooltip-text: _("Dark");
halign: center;

styles [
"theme-selector",
"dark",
"card",
]
}
}

$AdwStatusPage {
title: _("Color Scheme");
description: _("Choose a color scheme for your system.");
halign: "fill";
valign: "fill";
hexpand: "true";

Button btn_next {
label: _("Next");
halign: center;

styles [
"pill",
"suggested-action",
]
}
}
}
60 changes: 0 additions & 60 deletions vanilla_first_setup/gtk/default-theme.ui

This file was deleted.

57 changes: 57 additions & 0 deletions vanilla_first_setup/gtk/default-user.blp
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
using Gtk 4.0;

template $VanillaDefaultUser : $AdwBin {
halign: "fill";
valign: "center";
hexpand: "true";

Box {
orientation: vertical;

$AdwAvatar {
valign: "center";
size: "128";
show-initials: "true";
text: bind fullname_entry.text;
}

$AdwStatusPage status_page {
title: _("Create User");
description: _("Provide details for your user account");

$AdwPreferencesPage {
$AdwPreferencesGroup {
$AdwEntryRow fullname_entry {
title: _("Name");
input-purpose: "name";
}

$AdwEntryRow username_entry {
title: _("Username");
input-purpose: "name";
}

$AdwPasswordEntryRow password_entry {
title: _("Password");
input-purpose: "password";
}

$AdwPasswordEntryRow password_confirmation {
title: _("Confirm Password");
input-purpose: "password";
}
}
}
}

Button btn_next {
halign: center;
label: _("Next");

styles [
"pill",
"suggested-action",
]
}
}
}
70 changes: 0 additions & 70 deletions vanilla_first_setup/gtk/default-user.ui

This file was deleted.

Loading