Skip to content

Add a Gnome app template #938

Open
Open

Description

@UrtsiSantsi

Add a template for Gnome app, similar to gircore-blueprint-template, with support for

  • Blueprint UI
  • GResource with light and dark styles, and some icons
  • Desktop file and icon
  • Translation support (with gettext)
  • Flatpak suport

Activity

  1. UrtsiSantsi commented on Sep 2, 2023

    @UrtsiSantsi
    ContributorAuthor

    The samples in the project are very simplistic and very few in number. For a newcomer templates like gircore-blueprint-template are a great start.

  2. fsobolev commented on Sep 2, 2023

    @fsobolev
    Contributor

    I would take an inspiration from templates in GNOME Builder and in this case at least one thing that is missing in the list is translation with gettext.

  3. UrtsiSantsi commented on Sep 2, 2023

    @UrtsiSantsi
    ContributorAuthor

    Thanks, I added it.

  4. badcel commented on Sep 2, 2023

    @badcel
    Member

    I'm open for contributions here.

    One important thing for me is that the template should still be minimal and easy to adopt or configure to the needs of the user e.g. if not all features are needed.

    Perhaps even a template should start as simple as possible and then be extended step by step with some configuration options.

  5. UrtsiSantsi commented on Sep 2, 2023

    @UrtsiSantsi
    ContributorAuthor

    I'm a newcomer, if I could write all of this, I won't need to open an issue :)
    Having this template (and other) and more samples will help to attract newcomers. Otherwise they will just move on to something easier and more convenient - nobody likes to read a ton of documentation all over the place before they see some result. But if they can easily start and reach to a point where their app is working sufficiently well, they might as well contribute to this project when they find a bug or a missing functionality. And they will also have built some experience working with this technology. Very few people will start contributing to this type of project otherwise without a good reason like work or school requirements and it is evident from the number of contributors to this repo.

  6. badcel commented on Sep 2, 2023

    @badcel
    Member

    Thank you for the feedback. I agree with you. But currently there are still basic things missing as the readme clearly states. Having an easy start surely is important but before I concentrate on such things the foundation must be there.

    At the same time those things like templates are perfectly fine to be contributed as they do not require specific knowledge of e.g. the code generator but “only” of the public api (see samples) and general dotnet knowledge which should be easy to find online.

  7. UrtsiSantsi commented on Sep 2, 2023

    @UrtsiSantsi
    ContributorAuthor

    I'm not blaming you - I know it is a volunteer project, done in your free time.

    At the same time I disagree that it is easy to be done:

    • None of the listed things for the template can be found in the samples and the samples are very few and extremely basic
    • You need to find information for Blueprint compiler, Gtk, Desktop info, Translation with C# and gettext, Flatpak - all of these are on different places with different documentation formats
    • You need to know that these things exist in the first place :)

    For newcomers or people coming from Windows all of that can be a lot.

  8. nlogozzo commented on Sep 11, 2023

    @nlogozzo
    Contributor

    In the mean time, you could look at our application template which does all this while utilizing gir.core and csharp.

  9. badcel commented on Sep 11, 2023

    @badcel
    Member

    Additionally we could link from the use page to your template as a sample as long as there is no proper template available.

    what do you think?

  10. fsobolev commented on Sep 11, 2023

    @fsobolev
    Contributor

    I have an idea for a small tutorial. Not GTK tutorial, but about using extra stuff with gir.core, covering topics mentioned in the first post here. I don't know if the result will be really a minimal template, but at least it will be easier to work with for newcomers than with Nickvision template (not like Nickvision template is too complicated, but it has some specific things that go out of scope for a minimal template). I will find time in a couple of days to work on it.

  11. badcel commented on Sep 11, 2023

    @badcel
    Member

    Great 👍. I think it would be nice to guide users a little more and to have links to the wider eco system which is starting to evolve (e.g. your app template or e.g. BlazorWebview). Perhaps just creating a new eco system page on the homepage collecting useful links.

    I created #950.

  12. UrtsiSantsi commented on Sep 11, 2023

    @UrtsiSantsi
    ContributorAuthor

    In the mean time, you could look at our application template which does all this while utilizing gir.core and csharp.

    @nlogozzo It has a lot of useful things and it is a good reference for more complex apps, but it is not exactly minimal - it has Gnome\non-Gnome split, MVC, it references Aura... For newcomers a simpler template is better start.

  13. amka commented on Apr 12, 2024

    @amka

    Hey! Just wanna let you know I forked the original gircore-blueprint-template and updated it to work properly with Gnome Builder and Flatpak out of the box:

    • Blueprint UI
    • GResource with light and dark styles, and some icons
    • Desktop file and icon
    • Translation support (with gettext)
    • Flatpak support

    The next step is to add GResource support. Will keep you in touch.

    And, of course, any suggestions are welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions