Giter VIP home page Giter VIP logo

Comments (22)

rizmut avatar rizmut commented on June 27, 2024 5

Currently I am the maintainer of official icon theme in LibreOffice, I might give a hand to this request.

from zotero-libreoffice-integration.

raffaem avatar raffaem commented on June 27, 2024 1

zotero-colibre.zip This is my work. For large size, I set 24px instead of 26px to match the latest convention changes. Actually, it still needs an extra large size of 32px. Please let me know if that size would like to be added too.

Hi,

upstream is not interested in my PR (see here).

I agree it's better to have the icons of the extensions change automatically when the user switches theme inside LibreOffice.
But this seems not possible with LibreOffice, and I think that we have what we have, and we need to live along with it :)

So I published the extension with your icons bundled on my fork.

If you ever make new icons for new themes, just open an issue there.

It should be trivial to add new icons :)

from zotero-libreoffice-integration.

rizmut avatar rizmut commented on June 27, 2024

Helo, can I work on this request?

Just curious, where the icon definition is placed? The icons itself are placed under build/oxt/icon. I would like to update them to 24px size instead of 26px

from zotero-libreoffice-integration.

adomasven avatar adomasven commented on June 27, 2024

Helo, can I work on this request?

Do you know how to bundle different icons for different themes in an extension? How does libreoffice icon theming work?

Just curious, where the icon definition is placed?

https://github.com/zotero/zotero-libreoffice-integration/blob/master/build/oxt/Addons_AOO4.xcu#L107-L186

The icons itself are placed under build/oxt/icon. I would like to update them to 24px size instead of 26px

The icons are 26x26px because that's the requirement. I cannot find any official LibreOffice docs on this on the current web and LibreOffice docs have always been nigh-impossible to locate, but here's one place that says so. It doesn't make much sense to me either if you ask me, but that's what the docs said when we last updated the icons ourselves.

from zotero-libreoffice-integration.

bijang avatar bijang commented on June 27, 2024

Will the new “Add Note” button be added at some point also? I don't have MS Word, but I presume it is already on that platform, Thank you

from zotero-libreoffice-integration.

dstillman avatar dstillman commented on June 27, 2024

@bijang: Add Note is available on all platforms. If you're not seeing it in LO, reinstall the plugin from the Cite preferences. Post to the forums if you're still having trouble.

from zotero-libreoffice-integration.

bijang avatar bijang commented on June 27, 2024

thank you that's working fine

from zotero-libreoffice-integration.

rizmut avatar rizmut commented on June 27, 2024

Do you know how to bundle different icons for different themes in an extension?

As far as I know, there's no support for extensions to bring different themes currently from within LibreOffice theming mechanism. Another option is extension makers who provide the option to change the theme, but this means adding a new workload to them

How does libreoffice icon theming work?

I have zero understanding about code, so here I can not explain much. But I can bring anyone who interested against the topic to the right person.

The icons are 26x26px because that's the requirement. I cannot find any official LibreOffice docs on this on the current web and LibreOffice docs have always been nigh-impossible to locate, but here's one place that says so. It doesn't make much sense to me either if you ask me, but that's what the docs said when we last updated the icons ourselves.

26px x26px size was "official" icon theme called Galaxy from Sun Microsystem era, the LibreOffice team currently agrees to use 24px as it's standard size in FreeDesktop. But yea, so unfortunate no official docs here.

from zotero-libreoffice-integration.

adomasven avatar adomasven commented on June 27, 2024

As far as I know, there's no support for extensions to bring different themes currently from within LibreOffice theming mechanism.

That was my understanding too.

Another option is extension makers who provide the option to change the theme, but this means adding a new workload to them

I'm afraid we're not interested in it if it requires separate releases.

from zotero-libreoffice-integration.

fitojb avatar fitojb commented on June 27, 2024

The icons are 26x26px because that's the requirement

It was in the Galaxy days, but we have dropped that many years ago, and I changed the Large icons to 24 instead in LibreOffice/core@bea44e5

from zotero-libreoffice-integration.

adomasven avatar adomasven commented on June 27, 2024

@fitojb Are there any up-to-date docs for LibreOffice available somewhere that document modern plugin development?

from zotero-libreoffice-integration.

fitojb avatar fitojb commented on June 27, 2024

@adomasven Have you looked at https://wiki.documentfoundation.org/Development/Extension_Development ? If you’re missing something in particular, please make note of it on the talk page or send questions to the mailing list [email protected]

from zotero-libreoffice-integration.

raffaem avatar raffaem commented on June 27, 2024

Currently I am the maintainer of official icon theme in LibreOffice, I might give a hand to this request.

@rizmut if you can work on it, I will PR here to add them :)

from zotero-libreoffice-integration.

rizmut avatar rizmut commented on June 27, 2024

Oh yes the work is on progress

@rizmut if you can work on it, I will PR here to add them :)

from zotero-libreoffice-integration.

rizmut avatar rizmut commented on June 27, 2024

zotero-colibre.zip
This is my work. For large size, I set 24px instead of 26px to match the latest convention changes. Actually, it still needs an extra large size of 32px. Please let me know if that size would like to be added too.

from zotero-libreoffice-integration.

raffaem avatar raffaem commented on June 27, 2024

I got lost.

Relevant files seem to be in ./build/oxt/icons.

They are not split by LibreOffice theme? So there is the same set of icons for all possible LibreOffice theme?

How plugin icons are supposed to be integrated with the main theme?

Shouldn't this be managed at the theme-level, instead of at the plugin-level?

from zotero-libreoffice-integration.

raffaem avatar raffaem commented on June 27, 2024

zotero-colibre.zip This is my work. For large size, I set 24px instead of 26px to match the latest convention changes. Actually, it still needs an extra large size of 32px. Please let me know if that size would like to be added too.

image

It looks really nice and integrates nicely with the overall colibre theme.

Although I probably would have colored the "Refresh" button in blue, but that's just taste 😁

from zotero-libreoffice-integration.

raffaem avatar raffaem commented on June 27, 2024

@rizmut I don't understand what setDocPrefs_24-a is for. It seems it's not defined in the .xcu files?

from zotero-libreoffice-integration.

rizmut avatar rizmut commented on June 27, 2024

@rizmut I don't understand what setDocPrefs_24-a is for. It seems it's not defined in the .xcu files?

It's just a variation to choose. Either you go with setDocPrefs_24-a or go with setDocPrefs_24

from zotero-libreoffice-integration.

raffaem avatar raffaem commented on June 27, 2024

@rizmut I don't understand what setDocPrefs_24-a is for. It seems it's not defined in the .xcu files?

It's just a variation to choose. Either you go with setDocPrefs_24-a or go with setDocPrefs

Ok, I went with the latter.

I PRed this as promised :D

from zotero-libreoffice-integration.

hydroEng avatar hydroEng commented on June 27, 2024

Ah, what a shame, these icons look amazing @rizmut. Maybe they will be upstreamed in the future 🙏

from zotero-libreoffice-integration.

rizmut avatar rizmut commented on June 27, 2024

Hi,

upstream is not interested in my PR (see here).

I agree it's better to have the icons of the extensions change automatically when the user switches theme inside LibreOffice. But this seems not possible with LibreOffice, and I think that we have what we have, and we need to live along with it :)

Just wondering why upstream reject all of the PR? I means at least incorporating one of icon theme will not be a huge problem for them.

But thank a bunch for your PR. I am really too excited to add more icon themes if proper support exists.

from zotero-libreoffice-integration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.