Skip to content

Commit

Permalink
Update blueprint-compiler, format .blp files
Browse files Browse the repository at this point in the history
  • Loading branch information
kra-mo committed Mar 30, 2024
1 parent 7fc4365 commit dfec323
Show file tree
Hide file tree
Showing 13 changed files with 302 additions and 271 deletions.
253 changes: 127 additions & 126 deletions hyperplane/gtk/guide.blp
Original file line number Diff line number Diff line change
@@ -1,154 +1,155 @@
using Gtk 4.0;
using Adw 1;

template $HypGuide : Adw.Dialog {
title: _("Welcome to Hyperplane");
content-height: 520;
content-width: 700;
WindowHandle {
Adw.ToolbarView {
[top]
Adw.HeaderBar {
[title]
Adw.CarouselIndicatorLines {
carousel: carousel;
}
}
template $HypGuide: Adw.Dialog {
title: _("Welcome to Hyperplane");
content-height: 520;
content-width: 700;

WindowHandle {
Adw.ToolbarView {
[top]
Adw.HeaderBar {
[title]
Adw.CarouselIndicatorLines {
carousel: carousel;
}
}

Adw.Carousel carousel {
interactive: false;
Adw.Carousel carousel {
interactive: false;

Adw.StatusPage page_1 {
title: _("Welcome to Hyperplane");
description: _("This guide will help you learn its features");
Button button_1 {
halign: center;
label: _("Start");
Adw.StatusPage page_1 {
title: _("Welcome to Hyperplane");
description: _("This guide will help you learn its features");

styles [
"pill",
"suggested-action",
]
Button button_1 {
halign: center;
label: _("Start");

clicked => $_next_page();
}
}
styles [
"pill",
"suggested-action",
]

clicked => $_next_page();
}
}

ScrolledWindow {
hexpand: true;
ScrolledWindow {
hexpand: true;

Box {
orientation: vertical;
valign: center;
Box {
orientation: vertical;
valign: center;

Picture tags_picture {
content-fit: scale_down;
}
Picture tags_picture {
content-fit: scale_down;
}

Adw.StatusPage {
title: _("Organize by Categories");
description: _("Categories allow you to organize your files and folders however you like,\nan item can be in any category and you can access your categories in any order");
Adw.StatusPage {
title: _("Organize by Categories");
description: _("Categories allow you to organize your files and folders however you like,\nan item can be in any category and you can access your categories in any order");

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

styles [
"pill",
"suggested-action",
]
styles [
"pill",
"suggested-action",
]

clicked => $_next_page();
}
}
}
}
clicked => $_next_page();
}
}
}
}

ScrolledWindow {
hexpand: true;

Box {
orientation: vertical;
valign: center;

ScrolledWindow {
hexpand: true;
Picture folders_picture {
content-fit: scale_down;
}

Adw.StatusPage {
title: _("You Own Your Files");
description: _("Categories are simply stored as folders on disk\nso you can easily access them even outside Hyperplane");

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

Box {
orientation: vertical;
valign: center;
styles [
"pill",
"suggested-action",
]

clicked => $_next_page();
}
}
}
}

Picture folders_picture {
content-fit: scale_down;
}
ScrolledWindow {
hexpand: true;

Adw.StatusPage {
title: _("You Own Your Files");
description: _("Categories are simply stored as folders on disk\nso you can easily access them even outside Hyperplane");
Box {
orientation: vertical;
valign: center;

Button button_3 {
halign: center;
label: _("Next");
Adw.Clamp {
maximum-size: 120;

styles [
"pill",
"suggested-action",
]
Overlay {
[overlay]
Image {
margin-top: 6;
icon-size: large;
icon-name: "preferences-system-privacy-symbolic";

clicked => $_next_page();
}
}
}
styles [
"blue-icon-light-only"
]
}

ScrolledWindow {
hexpand: true;

Box {
orientation: vertical;
valign: center;

Adw.Clamp {
maximum-size: 120;

Overlay {

[overlay]
Image {
margin-top: 6;
icon-size: large;
icon-name: "preferences-system-privacy-symbolic";

styles [
"blue-icon-light-only"
]
}

Picture folder_picture {
content-fit: fill;
halign: center;
valign: center;

styles [
"item-thumbnail",
"dark-blue-background",
]
}
}
}

Adw.StatusPage {
title: _("Transparent");
description: _("Hyperplane will not move files automatically when editing categories\nso all file operations are explicit");

Button button_4 {
halign: center;
label: _("Show Hyperplane");

styles [
"pill",
"suggested-action",
]

action-name: "window.close";
}
}
}
Picture folder_picture {
content-fit: fill;
halign: center;
valign: center;

styles [
"item-thumbnail",
"dark-blue-background",
]
}
}
}

Adw.StatusPage {
title: _("Transparent");
description: _("Hyperplane will not move files automatically when editing categories\nso all file operations are explicit");

Button button_4 {
halign: center;
label: _("Show Hyperplane");

styles [
"pill",
"suggested-action",
]

action-name: "window.close";
}
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion hyperplane/gtk/help-overlay.blp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ using Gtk 4.0;
ShortcutsWindow help_overlay {
modal: true;
// TODO: Figure out a way to make page action shortcuts work without specifying accels manually

ShortcutsSection {
section-name: "shortcuts";
max-height: 10;
Expand Down
3 changes: 1 addition & 2 deletions hyperplane/gtk/item.blp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Gtk 4.0;
using Adw 1;

template $HypItem : Adw.Bin {
template $HypItem: Adw.Bin {
Box box {
Overlay overlay {
overflow: hidden;
Expand Down Expand Up @@ -133,7 +133,6 @@ template $HypItem : Adw.Bin {
}
}


Box labels_box {
orientation: vertical;
valign: center;
Expand Down
2 changes: 1 addition & 1 deletion hyperplane/gtk/items-page.blp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Gtk 4.0;
using Adw 1;

template $HypItemsPage : Adw.NavigationPage {
template $HypItemsPage: Adw.NavigationPage {
ScrolledWindow scrolled_window {}
}

Expand Down
Loading

0 comments on commit dfec323

Please sign in to comment.