elementary-x icon indicating copy to clipboard operation
elementary-x copied to clipboard

Flatpak Support

Open p1u3o opened this issue 6 years ago • 3 comments

screenshot from 2018-05-29 10 02 47 Flatpak support is relatively easy and can be done by making two files. Although, there are button border issues with newer versions of GTK (https://github.com/elementary/stylesheet/issues/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

p1u3o avatar May 29 '18 09:05 p1u3o

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!

surajmandalcell avatar May 29 '18 10:05 surajmandalcell

@surajmandalcell daniel (the a with a circle) smi.sh

p1u3o avatar May 29 '18 13:05 p1u3o

Oh man, this would be awesome.

GammaGames avatar Dec 07 '18 19:12 GammaGames