Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flatpak Support #6

Open
p1u3o opened this issue May 29, 2018 · 3 comments
Open

Flatpak Support #6

p1u3o opened this issue May 29, 2018 · 3 comments
Labels
enhancement New feature or request fueature New fueature request!

Comments

@p1u3o
Copy link

p1u3o commented May 29, 2018

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 (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
Copy link
Owner

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 surajmandalcell added enhancement New feature or request fueature New fueature request! labels May 29, 2018
@p1u3o
Copy link
Author

p1u3o commented May 29, 2018

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

@GammaGames
Copy link

Oh man, this would be awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fueature New fueature request!
Projects
Development

No branches or pull requests

3 participants