Branch View toolbar icon

Features wanted...
m48tx
Posts: 236
Joined: 07 May 2010 18:07

Re: Branch View toolbar icon

Post by m48tx » 21 Mar 2019 15:53

It appears the icon has changed to something nice in version 114. Thank you very much, Don.

sj515064
Posts: 51
Joined: 21 Feb 2019 06:14

Re: Branch View toolbar icon

Post by sj515064 » 21 Mar 2019 16:29

Preferences regarding icons are rather subjective.

I agree with highend that a SC which changes the icon in only one session is less useful.

The simple solution to this problem is what has been mentioned by SammaySarkar, that is, enabling users to specify custom icon files in the ini, which will then be read upon startup. And using a tweak to point to a folder is a good idea!

Borut
Posts: 1376
Joined: 19 Oct 2010 19:29

Re: Branch View toolbar icon

Post by Borut » 21 Mar 2019 16:44

Is there a mechanism for defining that a certain script should be executed at start time?

Does patchimage() support xyplorer native variables in the [file] argument?
Win 7 Pro 64bit

highend
Posts: 8678
Joined: 06 Feb 2011 00:33

Re: Branch View toolbar icon

Post by highend » 21 Mar 2019 16:46

Is there a mechanism for defining that a certain script should be executed at start time?
/script="..."?
One of my scripts helped you out? Please donate via Paypal or highend (at) web (dot) de

eil
Posts: 1081
Joined: 13 Jan 2011 19:44

Re: Branch View toolbar icon

Post by eil » 21 Mar 2019 17:26

admin wrote:
21 Mar 2019 14:36
Better idea: You can state folder (relative to <xydata>) in a new tweak, e.g. "PatchImagesPath=Patch", and place image files there, one for each button you want to patch, e.g. "flatview.png". That's it. XY handles the rest on startup.
rather good solution!
though it will be cool to have Toolbar Themes one day too. :whistle:

admin
Site Admin
Posts: 48689
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Branch View toolbar icon

Post by admin » 21 Mar 2019 19:29

PatchImagesPath tweak done. 8)

In case you want the cherries back:
Attachments
flatview-Cherries-24 x 24.png
flatview-Cherries-24 x 24.png (1.07 KiB) Viewed 455 times
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Wear DIY masks! 😷

Papoulka
Posts: 455
Joined: 13 Jul 2013 23:41

Re: Branch View toolbar icon

Post by Papoulka » 21 Mar 2019 21:15

By chance, a few days ago, I finally cleaned up years of cruft from my long-neglected XY icon folder. And around then picked up v19.80.0111 just to stay current, with hardly a glance at the change log.

Some time later I noticed the cherries. My icon cleanup had somehow corrupted a built-in image! Which had been there a long time... and was perfectly good... Seemed impossible but there it was.

Much troubleshooting later I gave up. Must be some weird .ini file issue, and hacking around in there could create worse problems. Decided to live with it.

SammaySarkar
Posts: 4228
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: Branch View toolbar icon

Post by SammaySarkar » 22 Mar 2019 07:39

Don, it will be great if separate images can be defined for dark mode. Here's a possible option:

Code: Select all

    * Patch Internal Images: Now you can assign images exclusive to dark mode.
      Just add "d" to the image key, separated by a period. For example, these
      files both work for the Branch View button; the first one applies when
      dark mode is enabled, the second one otherwise:
        flatview.d.png
        flatview.png
      The flag for dark mode comes before size definition:
        flatview.d,1-Cherries-16 x 16.png
        flatview.d,2-Cherries-24 x 24.png
Please?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 48689
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: Branch View toolbar icon

Post by admin » 22 Mar 2019 07:48

That would be a major effort I'm afraid. It's not impossible, but for now you have to find images that work in both modes. :|
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Wear DIY masks! 😷

Post Reply