Added jobwizard gui stuff
This commit is contained in:
parent
6f6778b5eb
commit
acdac59b3b
|
|
@ -0,0 +1 @@
|
|||
/subprojects/blueprint-compiler
|
||||
|
|
@ -8,8 +8,6 @@ i18n = import('i18n')
|
|||
gnome = import('gnome')
|
||||
|
||||
|
||||
|
||||
|
||||
subdir('data')
|
||||
subdir('src')
|
||||
subdir('po')
|
||||
|
|
|
|||
|
|
@ -5,4 +5,4 @@ data/me.winsdominoes.JobWizardDesktop.metainfo.xml.in
|
|||
data/me.winsdominoes.JobWizardDesktop.gschema.xml
|
||||
src/main.js
|
||||
src/window.js
|
||||
src/window.ui
|
||||
src/window.blp
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="16px" viewBox="0 0 16 16" width="16px"><path d="m 8 1 c -1.65625 0 -3 1.34375 -3 3 s 1.34375 3 3 3 s 3 -1.34375 3 -3 s -1.34375 -3 -3 -3 z m -1.5 7 c -2.492188 0 -4.5 2.007812 -4.5 4.5 v 1.5 c 0 1 1 1 1 1 h 10 s 1 0 1 -1 v -1.5 c 0 -2.492188 -2.007812 -4.5 -4.5 -4.5 z m 0 0" fill="#9b9b9d"/></svg>
|
||||
|
After Width: | Height: | Size: 386 B |
|
|
@ -3,5 +3,6 @@
|
|||
<gresource prefix="/me/winsdominoes/JobWizardDesktop">
|
||||
<file preprocess="xml-stripblanks">window.ui</file>
|
||||
<file preprocess="xml-stripblanks">shortcuts-dialog.ui</file>
|
||||
<file preprocess="xml-stripblanks">icons/person-symbolic.svg</file>
|
||||
</gresource>
|
||||
</gresources>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,20 @@
|
|||
pkgdatadir = get_option('datadir') / meson.project_name()
|
||||
gnome = import('gnome')
|
||||
blueprints = custom_target('blueprints',
|
||||
input: files(
|
||||
'window.blp',
|
||||
'shortcuts-dialog.blp',
|
||||
),
|
||||
output: '.',
|
||||
command: [find_program('blueprint-compiler'), 'batch-compile', '@OUTPUT@', '@CURRENT_SOURCE_DIR@', '@INPUT@'],
|
||||
)
|
||||
|
||||
src_res = gnome.compile_resources('me.winsdominoes.JobWizardDesktop.src',
|
||||
'me.winsdominoes.JobWizardDesktop.src.gresource.xml',
|
||||
gresource_bundle: true,
|
||||
install: true,
|
||||
install_dir: pkgdatadir,
|
||||
dependencies: blueprints,
|
||||
)
|
||||
|
||||
data_res = gnome.compile_resources('me.winsdominoes.JobWizardDesktop.data',
|
||||
|
|
@ -13,6 +22,7 @@ data_res = gnome.compile_resources('me.winsdominoes.JobWizardDesktop.data',
|
|||
gresource_bundle: true,
|
||||
install: true,
|
||||
install_dir: pkgdatadir,
|
||||
dependencies: blueprints,
|
||||
)
|
||||
|
||||
bin_conf = configuration_data()
|
||||
|
|
@ -31,3 +41,5 @@ configure_file(
|
|||
install: true,
|
||||
install_dir: get_option('bindir')
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
$AdwShortcutsDialog shortcuts_dialog {
|
||||
$AdwShortcutsSection {
|
||||
title: _("Shortcuts");
|
||||
|
||||
$AdwShortcutsItem {
|
||||
title: C_("shortcut window", "Show Shortcuts");
|
||||
action-name: "app.shortcuts";
|
||||
}
|
||||
|
||||
$AdwShortcutsItem {
|
||||
title: C_("shortcut window", "Quit");
|
||||
action-name: "app.quit";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,79 @@
|
|||
using Gtk 4.0;
|
||||
using Adw 1;
|
||||
|
||||
template $JobwizarddesktopJsWindow: $AdwApplicationWindow {
|
||||
title: _("JobWizard Desktop Edition");
|
||||
default-width: "800";
|
||||
default-height: "600";
|
||||
|
||||
content: $AdwToolbarView {
|
||||
[top]
|
||||
$AdwHeaderBar {
|
||||
[end]
|
||||
MenuButton {
|
||||
primary: true;
|
||||
icon-name: "open-menu-symbolic";
|
||||
tooltip-text: _("Main Menu");
|
||||
menu-model: primary_menu;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
content: Adw.StatusPage {
|
||||
title: "JobWizard Desktop Edition";
|
||||
description: "Let's get started!";
|
||||
// Try using a custom icon instead of cafe-symbolic
|
||||
icon-name: "person-symbolic";
|
||||
|
||||
Adw.Clamp main {
|
||||
Box {
|
||||
halign: center;
|
||||
orientation: vertical;
|
||||
|
||||
Label {
|
||||
label: _("Login");
|
||||
halign: start;
|
||||
|
||||
styles [
|
||||
"heading",
|
||||
]
|
||||
}
|
||||
|
||||
Entry entry_completion {
|
||||
max-width-chars: 100;
|
||||
// margin-bottom: 8;
|
||||
placeholder-text: "Enter email";
|
||||
}
|
||||
|
||||
Button suggested {
|
||||
name: "login_button";
|
||||
label: _("Login");
|
||||
|
||||
styles [
|
||||
"suggested-action",
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
menu primary_menu {
|
||||
section {
|
||||
item {
|
||||
label: _("_Preferences");
|
||||
action: "app.preferences";
|
||||
}
|
||||
|
||||
item {
|
||||
label: _("_Keyboard Shortcuts");
|
||||
action: "app.shortcuts";
|
||||
}
|
||||
|
||||
item {
|
||||
label: _("_About Jobwizarddesktop-js");
|
||||
action: "app.about";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
[wrap-git]
|
||||
directory = blueprint-compiler
|
||||
url = https://gitlab.gnome.org/GNOME/blueprint-compiler.git
|
||||
revision = v0.18.0
|
||||
depth = 1
|
||||
|
||||
[provide]
|
||||
program_names = blueprint-compiler
|
||||
Loading…
Reference in New Issue