Skip to content

Add some .ico or .bmp files in the installation package. #195

Closed

Description

@vsrawat

I tried to add my script's icon on toolbar, but it goes to Documents folder where there are no .ico .bmp files, and I am not aware where to find those files. So I couldn't add that.

Please consider adding some .ico or .bmp files in the installation package, and clicking on "set icon" in configuration window should go to that specific folder where those ico bmp files are stored in ps installation.

Thanks.

Activity

  1. chcg commented on Apr 2, 2021

    @chcg
    Collaborator

    That sounds strange. If you have no own icons, why should you then want to set one?
    You could find some examples here:
    https://github.com/bruderstein/PythonScript/tree/master/PythonScript/res
    They are compiled as resources into the dll. So it doesn't make sense to distributed them additionally.

  2. vsrawat commented on Apr 2, 2021

    @vsrawat
    Author
  3. chcg commented on Apr 2, 2021

    @chcg
    Collaborator

    So you didn't get what the usage section of the docu mean:

    To edit the script, just hold Ctrl down and click the script in the Scripts menu.

    If you click Configuration, you can assign the script either to a toolbar icon, or to the Python Script menu itself. If you assign a script to the menu, then it will appear immediately, but you will not be able to assign a shortcut to it until next time Notepad++ starts.

    If you assign it to a toolbar icon, then it will only appear on the next start of Notepad++.

    There will be a default icon in the toolbar, if you don't add your custom one for your script. The icons just appear for the toolbar with standard icons set.

    grafik

    There are multiple source to get icons at the web, e.g.
    https://iconarchive.com/show/I-like-buttons-icons-by-mazenl77.html
    , but typically you need to transform them into a bmp file with e.g. windows paint (load .png and save again as .bmp)

  4. Ekopalypse commented on Feb 25, 2023

    @Ekopalypse
    Contributor

    Since this is marked as invalid, can it be closed?
    Providing additional icons doesn't make sense to me, since one usually chooses a particular icon to remind what a particular script does, and given that it's so easy to create your own icons these days, I think it's appropriate to leave that task to the user.

  5. chcg commented on Mar 26, 2023

    @chcg
    Collaborator

    @Ekopalypse I think there was one issue remaining here. Currently it seems just .bmp icons are working fine but not .ico. I wanted to take a closer look at that also it is not directly the issue.

  6. Ekopalypse commented on Dec 27, 2024

    @Ekopalypse
    Contributor

    @chcg

    I'm working on getting .ico files to work as well,

    {40B394FA-F657-4C06-8046-A776E705A5AD}

    but PythonScript doesn't really have a “utility” code module and the required code needs to be added to ShortcutDlg and ConfigFile which don't share other code modules. Is it ok if it is duplicated in this case? Or should I create a utility.h/cpp and include it into both?

  7. chcg commented on Dec 28, 2024

    @chcg
    Collaborator

    @Ekopalypse Both options are fine for me. In case of code duplication a comment on it would be good.

  8. alankilborn commented on Dec 28, 2024

    @alankilborn

    My 2c: Avoid duplication. :-)

  9. added a commit that references this issue on Dec 28, 2024
    6713314
  10. added a commit that references this issue on Dec 30, 2024
    d14c8be
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions