Skip to content

Commit

Permalink
Use gjspack for icons
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnyp committed Oct 3, 2022
1 parent 287811d commit 3a9ad17
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
".flatpak/**": true,
"_build/**": true
},
"editor.formatOnSave": true,
"mesonbuild.configureOnOpen": false,
"mesonbuild.buildFolder": "_build",
"mesonbuild.mesonPath": "/home/sonny/Projects/Playhouse/.flatpak/meson.sh",
"editor.formatOnSave": true
"mesonbuild.mesonPath": "/home/sonny/Projects/Playhouse/.flatpak/meson.sh"
}
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 2 additions & 1 deletion data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ if compile_schemas.found()
)
endif

install_subdir('icons/hicolor', install_dir : join_paths(get_option('datadir'), 'icons'))
install_data('icons/re.sonny.Playhouse-symbolic.svg', install_dir: join_paths(get_option('datadir'), 'icons/hicolor/symbolic/apps'))
install_data('icons/re.sonny.Playhouse.svg', install_dir: join_paths(get_option('datadir'), 'icons/hicolor/scalable/apps'))
14 changes: 6 additions & 8 deletions po/POTFILES
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,17 @@ data/re.sonny.Playhouse.desktop
data/re.sonny.Playhouse.gschema.xml
data/re.sonny.Playhouse.metainfo.xml

src/util.js
src/Shortcuts.js
troll/src/util.js
src/utils.js
src/Devtools.js
src/WebView.js
troll/src/widgets/ThemeSelector.blp
troll/src/widgets/ThemeSelector.js
src/window.blp
src/window.js
src/about.js
src/ShortcutsWindow.blp
src/ShortcutsWindow.js
src/application.js
src/main.js
src/window.blp
src/ShortcutsWindow.blp

troll/src/util.js
troll/src/widgets/ThemeSelector.blp
troll/src/widgets/ThemeSelector.js
src/utils.js
1 change: 0 additions & 1 deletion re.sonny.Playhouse.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"--share=ipc",
"--socket=fallback-x11",
"--socket=wayland",
"--require-version=1.1.2",
"--device=dri",
"--share=network"
],
Expand Down
1 change: 0 additions & 1 deletion src/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export default function Application() {
const application = new Adw.Application({
application_id: "re.sonny.Playhouse",
// flags: Gio.ApplicationFlags.HANDLES_OPEN,
resource_base_path: "/re/sonny/Playhouse/src",
});

application.connect("activate", () => {
Expand Down
2 changes: 1 addition & 1 deletion src/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ setConsoleLogDomain(pkg.name);
GLib.set_application_name("Playhouse");

const loop = new GLib.MainLoop(null, false);
import("resource:///re/sonny/Playhouse/src/main.js")
import("resource:///re/sonny/Playhouse/main.js")
.then((main) => {
// Workaround for issue
// https://gitlab.gnome.org/GNOME/gjs/-/issues/468
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 2 additions & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ gresource = custom_target('gjspack',
gjspack,
'--appid=' + app_id,
'--prefix', '/re/sonny/Playhouse',
'--resource-root', meson.project_source_root(),
'--project-root', meson.source_root(),
'--resource-root', meson.project_source_root() / 'src',
'--blueprint-compiler', blueprint_compiler,
'--no-executable',
'@INPUT0@',
Expand Down
6 changes: 6 additions & 0 deletions src/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ import resource from "./window.blp";

import { prepareSourceView, settings, createDataDir } from "./utils.js";

import "./icons/css-symbolic.svg" assert { type: "icon" };
import "./icons/devtools-symbolic.svg" assert { type: "icon" };
import "./icons/html-symbolic.svg" assert { type: "icon" };
import "./icons/javascript-symbolic.svg" assert { type: "icon" };
import "./icons/preview-symbolic.svg" assert { type: "icon" };

const scheme_manager = Source.StyleSchemeManager.get_default();
const style_manager = Adw.StyleManager.get_default();

Expand Down
2 changes: 1 addition & 1 deletion troll

0 comments on commit 3a9ad17

Please sign in to comment.