-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
646 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "vala-checkers"] | ||
path = vala-checkers | ||
url = https://gitlab.gnome.org/Rirusha/vala-checkers.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<gresources> | ||
<gresource prefix="/space/rirusha/ReadySet/icons/scalable/actions/"> | ||
<file alias="altmobile-symbolic.svg">assets/icons/altmobile-symbolic.svg</file> | ||
</gresource> | ||
<gresource prefix="/space/rirusha/ReadySet/"> | ||
<file alias="gtk/help-overlay.ui" preprocess="xml-stripblanks">ui/help-overlay.ui</file> | ||
<file>style.css</file> | ||
<file preprocess="xml-stripblanks">ui/base-page.ui</file> | ||
<file preprocess="xml-stripblanks">ui/language-page.ui</file> | ||
<file preprocess="xml-stripblanks">ui/language-row.ui</file> | ||
<file preprocess="xml-stripblanks">ui/languages-box.ui</file> | ||
<file preprocess="xml-stripblanks">ui/nothing-to-show.ui</file> | ||
<file preprocess="xml-stripblanks">ui/welcome-page.ui</file> | ||
<file preprocess="xml-stripblanks">ui/window.ui</file> | ||
</gresource> | ||
</gresources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template $ReadySetBasePage : Adw.NavigationPage { | ||
Adw.ToolbarView toolbar_view { | ||
reveal-bottom-bars: bind template.is-ready; | ||
|
||
[top] | ||
Adw.HeaderBar { | ||
title-widget: Adw.WindowTitle { | ||
title: bind template.title; | ||
}; | ||
|
||
[end] | ||
ToggleButton { | ||
icon-name: "system-search-symbolic"; | ||
active: bind template.search-enabled bidirectional; | ||
visible: bind template.search-is-possible; | ||
} | ||
} | ||
|
||
[bottom] | ||
ListBox { | ||
styles [ | ||
"boxed-list" | ||
] | ||
|
||
selection-mode: none; | ||
margin-start: 12; | ||
margin-top: 6; | ||
margin-bottom: 12; | ||
margin-end: 12; | ||
|
||
Adw.ButtonRow { | ||
styles [ | ||
"suggested-action", | ||
] | ||
|
||
activated => $apply_clicked(); | ||
|
||
title: _("Continue"); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template $ReadySetLanguagePage : $ReadySetBasePage { | ||
title: _("Language"); | ||
search-is-possible: true; | ||
|
||
content: Adw.ToolbarView view { | ||
[top] | ||
Stack title_stack { | ||
hhomogeneous: true; | ||
vhomogeneous: true; | ||
transition-type: crossfade; | ||
transition-duration: 200; | ||
|
||
StackPage { | ||
name: "title"; | ||
child: Label { | ||
styles [ | ||
"title-2" | ||
] | ||
|
||
label: _("Let's start by choosing a language…"); | ||
wrap: true; | ||
justify: center; | ||
hexpand: true; | ||
}; | ||
} | ||
|
||
StackPage { | ||
name: "search"; | ||
child: Adw.Clamp { | ||
maximum-size: 680; | ||
margin-end: 12; | ||
margin-top: 6; | ||
margin-bottom: 6; | ||
margin-start: 12; | ||
|
||
SearchEntry search_entry { | ||
styles [ | ||
"card" | ||
] | ||
|
||
text: bind languages_box.search-query bidirectional; | ||
height-request: 48; | ||
placeholder-text: _("Search language"); | ||
hexpand: true; | ||
} | ||
}; | ||
} | ||
} | ||
|
||
content: ScrolledWindow { | ||
propagate-natural-height: true; | ||
hscrollbar-policy: never; | ||
|
||
Adw.Clamp { | ||
maximum-size: 680; | ||
margin-end: 12; | ||
margin-top: 12; | ||
margin-bottom: 24; | ||
margin-start: 12; | ||
|
||
$ReadySetLanguagesBox languages_box {} | ||
} | ||
}; | ||
|
||
[bottom] | ||
ListBox bottom_list_box { | ||
styles [ | ||
"boxed-list" | ||
] | ||
|
||
selection-mode: none; | ||
margin-start: 12; | ||
margin-top: 6; | ||
margin-bottom: 12; | ||
margin-end: 12; | ||
|
||
Adw.ButtonRow { | ||
title: _("Show more languages"); | ||
start-icon-name: "view-more-symbolic"; | ||
|
||
activated => $on_show_more_activated(); | ||
} | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template $ReadySetLanguageRow : Adw.ActionRow { | ||
activatable: true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template $ReadySetLanguagesBox : Adw.Bin { | ||
Box { | ||
orientation: vertical; | ||
|
||
ListBox languages_listbox { | ||
styles [ | ||
"boxed-list", | ||
] | ||
|
||
selection-mode: none; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template $ReadySetNothingToShow : Adw.Bin { | ||
Box { | ||
orientation: vertical; | ||
spacing: 18; | ||
valign: center; | ||
margin-bottom: 24; | ||
margin-start: 12; | ||
margin-end: 12; | ||
margin-top: 24; | ||
|
||
Image { | ||
styles [ | ||
"icon", | ||
"dim-label", | ||
] | ||
|
||
pixel-size: 120; | ||
margin-bottom: 24; | ||
icon-name: "system-search-symbolic"; | ||
} | ||
|
||
Label { | ||
styles [ | ||
"title-1" | ||
] | ||
|
||
label: _("Nothing to show"); | ||
wrap: true; | ||
hexpand: true; | ||
justify: center; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
using Gtk 4.0; | ||
using Adw 1; | ||
|
||
template $ReadySetWelcomePage : $ReadySetBasePage { | ||
title: _("Welcome"); | ||
is-ready: true; | ||
|
||
content: ScrolledWindow { | ||
propagate-natural-height: true; | ||
hscrollbar-policy: never; | ||
|
||
Adw.Clamp clamp { | ||
maximum-size: 680; | ||
margin-end: 12; | ||
margin-top: 12; | ||
margin-bottom: 24; | ||
margin-start: 12; | ||
|
||
Box { | ||
orientation: vertical; | ||
spacing: 18; | ||
valign: center; | ||
|
||
Image { | ||
styles [ | ||
"icon" | ||
] | ||
|
||
pixel-size: 120; | ||
margin-bottom: 24; | ||
icon-name: "altmobile-symbolic"; | ||
} | ||
|
||
Label { | ||
styles [ | ||
"title-1" | ||
] | ||
|
||
label: _("Welcome to ALT Mobile!"); | ||
wrap: true; | ||
hexpand: true; | ||
justify: center; | ||
} | ||
|
||
Label { | ||
label: _("A free mobile operating system for free people"); | ||
wrap: true; | ||
hexpand: true; | ||
justify: center; | ||
} | ||
} | ||
} | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.