Flatpak Support
p1u3o opened this issue · 3 comments
p1u3o commented
Flatpak support is relatively easy and can be done by making two files. Although, there are button border issues with newer versions of GTK (elementary/stylesheet#291)
org.gtk.Gtk3theme.elementary-x.appdata.xml
<?xml version="1.0" encoding="UTF-8"?>
<component type="runtime">
<id>org.gtk.Gtk3theme.elementary</id>
<metadata_license>CC0-1.0</metadata_license>
<name>elementary-x stylesheet</name>
<summary>Original elementary theme with some tweaks and OS X window controls.</summary>
<description>
<p>Original elementary theme with some tweaks and OS X window controls.</p>
</description>
<url type="homepage">https://github.com/surajmandalcell/elementary-x</url>
</component>
org.gtk.Gtk3theme.elementary-x.json
{
"id":"org.gtk.Gtk3theme.elementary-x",
"branch": "3.22",
"runtime": "org.gnome.Platform",
"build-extension": true,
"sdk": "org.gnome.Sdk",
"runtime-version": "3.24",
"appstream-compose": false,
"separate-locales": false,
"modules": [
{
"name": "elementary-x",
"buildsystem": "simple",
"build-commands": [
"install -dm755 /usr/share/runtime/share/themes/elementary-x/gtk-3.0",
"cp -aL gtk-3.22/* /usr/share/runtime/share/themes/elementary-x/gtk-3.0",
"cp -a index.theme /usr/share/runtime/share/themes/elementary-x"
],
"sources": [
{
"type": "git",
"url": "git://github.com/surajmandalcell/elementary-x.git",
"branch": "master"
}
]
},
{
"name": "appdata",
"buildsystem": "simple",
"build-commands": [
"mkdir -p ${FLATPAK_DEST}/share/appdata",
"cp org.gtk.Gtk3theme.elementary-x.appdata.xml ${FLATPAK_DEST}/share/appdata",
"appstream-compose --basename=org.gtk.Gtk3theme.elementary-x --prefix=${FLATPAK_DEST} --origin=flatpak org.gtk.Gtk3theme.elementary-x"
],
"sources": [
{
"type": "file",
"path": "org.gtk.Gtk3theme.elementary-x.appdata.xml"
}
]
}
]
}
Compile/Install
flatpak install gnome org.gnome.Sdk 3.24
flatpak install gnome org.gnome.Platform 3.24
flatpak-builder --install build-dir org.gtk.Gtk3theme.elementary-x.json --force-clean
surajmandalcell commented
Oh i did not know that o_o, thanks for informing about flatpak!
Ill add the flatpak support as soon as i fix some todo styling, thanks again!
p1u3o commented
@surajmandalcell daniel (the a with a circle) smi.sh
GammaGames commented
Oh man, this would be awesome.